Package org.aspectj.weaver.patterns
Class SignaturePattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.SignaturePattern
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation,ISignaturePattern
-
Field Summary
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, startFields inherited from interface org.aspectj.weaver.patterns.ISignaturePattern
AND, NOT, OR, PATTERN -
Constructor Summary
ConstructorsConstructorDescriptionSignaturePattern(MemberKind kind, ModifiersPattern modifiers, TypePattern returnType, TypePattern declaringType, NamePattern name, TypePatternList parameterTypes, ThrowsPattern throwsPattern, AnnotationTypePattern annotationPattern) -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data)booleancouldEverMatch(ResolvedType type)booleandeclaringTypeMatchAllowingForCovariance(Member member, UnresolvedType shadowDeclaringType, World world, TypePattern returnTypePattern, ResolvedType sigReturn)booleanreturn true if last argument in params is an Object[] but the modifiers say this method was declared with varargs (Object...).getKind()getName()inthashCode()booleanbooleanbooleanbooleanparameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)return a copy of this signature pattern in which every type variable reference is replaced by the corresponding entry in the map.voidpostRead(ResolvedType enclosingType)static SignaturePatternread(VersionedDataInputStream s, ISourceContext context)resolveBindings(IScope scope, Bindings bindings)toString()voidMethods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
Constructor Details
-
SignaturePattern
public SignaturePattern(MemberKind kind, ModifiersPattern modifiers, TypePattern returnType, TypePattern declaringType, NamePattern name, TypePatternList parameterTypes, ThrowsPattern throwsPattern, AnnotationTypePattern annotationPattern)
-
-
Method Details
-
resolveBindings
- Specified by:
resolveBindingsin interfaceISignaturePattern
-
postRead
-
parameterizeWith
return a copy of this signature pattern in which every type variable reference is replaced by the corresponding entry in the map.- Specified by:
parameterizeWithin interfaceISignaturePattern
-
matches
- Specified by:
matchesin interfaceISignaturePattern
-
declaringTypeMatchAllowingForCovariance
public boolean declaringTypeMatchAllowingForCovariance(Member member, UnresolvedType shadowDeclaringType, World world, TypePattern returnTypePattern, ResolvedType sigReturn) -
getName
-
getDeclaringType
-
getKind
-
toString
-
equals
-
hashCode
public int hashCode() -
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static SignaturePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException- Throws:
IOException
-
getModifiers
- Returns:
-
getParameterTypes
- Returns:
-
getReturnType
- Returns:
-
getThrowsPattern
- Returns:
-
getAnnotationPattern
return true if last argument in params is an Object[] but the modifiers say this method was declared with varargs (Object...). We shouldn't be matching if this is the case. -
isStarAnnotation
public boolean isStarAnnotation()- Specified by:
isStarAnnotationin interfaceISignaturePattern
-
accept
- Specified by:
acceptin classPatternNode
-
isExactDeclaringTypePattern
public boolean isExactDeclaringTypePattern() -
isMatchOnAnyName
public boolean isMatchOnAnyName()- Specified by:
isMatchOnAnyNamein interfaceISignaturePattern
-
getExactDeclaringTypes
- Specified by:
getExactDeclaringTypesin interfaceISignaturePattern
-
couldEverMatch
- Specified by:
couldEverMatchin interfaceISignaturePattern
-