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, start
Fields inherited from interface org.aspectj.weaver.patterns.ISignaturePattern
AND, NOT, OR, PATTERN
-
Constructor Summary
ConstructorDescriptionSignaturePattern(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)
boolean
couldEverMatch(ResolvedType type)
boolean
declaringTypeMatchAllowingForCovariance(Member member, UnresolvedType shadowDeclaringType, World world, TypePattern returnTypePattern, ResolvedType sigReturn)
boolean
return true if last argument in params is an Object[] but the modifiers say this method was declared with varargs (Object...).getKind()
getName()
int
hashCode()
boolean
boolean
boolean
boolean
parameterizeWith(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.void
postRead(ResolvedType enclosingType)
static SignaturePattern
read(VersionedDataInputStream s, ISourceContext context)
resolveBindings(IScope scope, Bindings bindings)
toString()
void
Methods 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:
resolveBindings
in 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:
parameterizeWith
in interfaceISignaturePattern
-
matches
- Specified by:
matches
in 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:
write
in 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:
isStarAnnotation
in interfaceISignaturePattern
-
accept
- Specified by:
accept
in classPatternNode
-
isExactDeclaringTypePattern
public boolean isExactDeclaringTypePattern() -
isMatchOnAnyName
public boolean isMatchOnAnyName()- Specified by:
isMatchOnAnyName
in interfaceISignaturePattern
-
getExactDeclaringTypes
- Specified by:
getExactDeclaringTypes
in interfaceISignaturePattern
-
couldEverMatch
- Specified by:
couldEverMatch
in interfaceISignaturePattern
-