| Modifier and Type | Class and Description |
|---|---|
| private class | SignaturePattern.TypePatternVisitor
Class which visits the nodes in the TypePattern tree until an ExactTypePattern is found. |
| Modifier and Type | Field and Description |
|---|---|
| private AnnotationTypePattern | |
| private int | |
| private static final int | |
| private TypePattern | |
| private transient int | |
| private transient boolean | |
| private MemberKind | |
| private ModifiersPattern | |
| private NamePattern | |
| private static final int | |
| private TypePatternList | |
| private TypePattern | |
| private ThrowsPattern |
| Access | Constructor and Description |
|---|---|
| public | SignaturePattern(MemberKind kind, ModifiersPattern modifiers, TypePattern returnType, TypePattern declaringType, NamePattern name, TypePatternList parameterTypes, ThrowsPattern throwsPattern, AnnotationTypePattern annotationPattern)
|
| Modifier and Type | Method and Description |
|---|---|
| public Object | accept(PatternNodeVisitor visitor, Object data)
Implements abstract org. |
| private void | checkForIncorrectTargetKind(PatternNode patternNode, IScope scope, boolean targetsOtherThanTypeAllowed)
|
| private void | checkForIncorrectTargetKind(PatternNode patternNode, IScope scope, boolean targetsOtherThanTypeAllowed, boolean parameterTargettingAnnotationsAllowed)
|
| public boolean | |
| public boolean | declaringTypeMatchAllowingForCovariance(Member member, UnresolvedType shadowDeclaringType, World world, TypePattern returnTypePattern, ResolvedType sigReturn)
|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| private ResolvedMember | |
| public AnnotationTypePattern | getAnnotationPattern()
return true if last argument in params is an Object[] but the modifiers say this method was declared with varargs (Object...). |
| public TypePattern | |
| public List | |
| public MemberKind | |
| public ModifiersPattern | |
| public NamePattern | |
| public TypePatternList | |
| public TypePattern | |
| public ThrowsPattern | |
| public int | |
| public boolean | |
| private boolean | Returns: true if a parameter type pattern wants to match on a parameter annotationDetermine if any pattern in the parameter type pattern list is attempting to match on parameter annotations. |
| public boolean | |
| private boolean | isParameterAnnotationMatching(TypePattern tp)
Walk the simple structure of a type pattern and determine if any leaf node is involved in parameter annotation matching. |
| private boolean | |
| public boolean | |
| public boolean | matches(Member joinPointSignature, World world, boolean allowBridgeMethods)
Implements org. |
| private FuzzyBoolean | |
| private FuzzyBoolean | matchesExactly(JoinPointSignature aMember, World inAWorld, boolean allowBridgeMethods, boolean subjectMatch)
|
| private FuzzyBoolean | matchesExactlyConstructor(JoinPointSignature aConstructor, World world)
match on declaring type, parameter types, throws types |
| private FuzzyBoolean | matchesExactlyField(JoinPointSignature aField, World world)
Matches on name, declaring type, field type |
| private FuzzyBoolean | matchesExactlyMethod(JoinPointSignature aMethod, World world, boolean subjectMatch)
Matches on name, declaring type, return type, parameter types, throws types |
| private FuzzyBoolean | matchesExactlyStaticInitialization(JoinPointSignature aMember, World world)
Matches on declaring type |
| private boolean | matchesVarArgs(JoinPointSignature aMethodOrConstructor, World inAWorld)
We've matched against this method or constructor so far, but without considering varargs (which has been matched as a simple array thus far). |
| public SignaturePattern | parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w)
Implements org. |
| private boolean | Returns: true if it is impossible for the joinpoint to match this signaturethe joinpoint to quickly match against methodJoinpoint)Quickly detect if the joinpoint absolutely cannot match becaused the method parameters at the joinpoint cannot match against this signature pattern. |
| public void | |
| public static SignaturePattern | |
| private void | reportUnmatchedTargetKindMessage(AnnotationTargetKind[] annotationTargetKinds, PatternNode node, IScope scope, boolean checkMatchesMemberKindName)
|
| public SignaturePattern | resolveBindings(IScope scope, Bindings bindings)
Implements org. |
| public String | |
| public Object | traverse(PatternNodeVisitor visitor, Object data)
|
| private boolean | |
| public void | write(CompressingDataOutputStream s)
Implements abstract org. |
| annotationPattern | back to summary |
|---|---|
| private AnnotationTypePattern annotationPattern | |
| bits | back to summary |
|---|---|
| private int bits | |
| CHECKED_FOR_PARAMETER_ANNOTATION_MATCHING | back to summary |
|---|---|
| private static final int CHECKED_FOR_PARAMETER_ANNOTATION_MATCHING | |
| declaringType | back to summary |
|---|---|
| private TypePattern declaringType | |
| hashcode | back to summary |
|---|---|
| private transient int hashcode | |
| isExactDeclaringTypePattern | back to summary |
|---|---|
| private transient boolean isExactDeclaringTypePattern | |
| kind | back to summary |
|---|---|
| private MemberKind kind | |
| modifiers | back to summary |
|---|---|
| private ModifiersPattern modifiers | |
| name | back to summary |
|---|---|
| private NamePattern name | |
| PARAMETER_ANNOTATION_MATCHING | back to summary |
|---|---|
| private static final int PARAMETER_ANNOTATION_MATCHING | |
| parameterTypes | back to summary |
|---|---|
| private TypePatternList parameterTypes | |
| returnType | back to summary |
|---|---|
| private TypePattern returnType | |
| throwsPattern | back to summary |
|---|---|
| private ThrowsPattern throwsPattern | |
| SignaturePattern | back to summary |
|---|---|
| public SignaturePattern(MemberKind kind, ModifiersPattern modifiers, TypePattern returnType, TypePattern declaringType, NamePattern name, TypePatternList parameterTypes, ThrowsPattern throwsPattern, AnnotationTypePattern annotationPattern) | |
| accept | back to summary |
|---|---|
| public Object accept(PatternNodeVisitor visitor, Object data) Implements abstract org.
| |
| checkForIncorrectTargetKind | back to summary |
|---|---|
| private void checkForIncorrectTargetKind(PatternNode patternNode, IScope scope, boolean targetsOtherThanTypeAllowed) | |
| checkForIncorrectTargetKind | back to summary |
|---|---|
| private void checkForIncorrectTargetKind(PatternNode patternNode, IScope scope, boolean targetsOtherThanTypeAllowed, boolean parameterTargettingAnnotationsAllowed) | |
| couldEverMatch | back to summary |
|---|---|
| public boolean couldEverMatch(ResolvedType type) Implements org.
| |
| declaringTypeMatchAllowingForCovariance | back to summary |
|---|---|
| public boolean declaringTypeMatchAllowingForCovariance(Member member, UnresolvedType shadowDeclaringType, World world, TypePattern returnTypePattern, ResolvedType sigReturn) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| findMethod | back to summary |
|---|---|
| private ResolvedMember findMethod(ResolvedType aspectType, ResolvedMember ajcMethod) | |
| getAnnotationPattern | back to summary |
|---|---|
| public AnnotationTypePattern 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. | |
| getDeclaringType | back to summary |
|---|---|
| public TypePattern getDeclaringType() | |
| getExactDeclaringTypes | back to summary |
|---|---|
| public List Implements org.
| |
| getKind | back to summary |
|---|---|
| public MemberKind getKind() | |
| getModifiers | back to summary |
|---|---|
| public ModifiersPattern getModifiers() | |
| getName | back to summary |
|---|---|
| public NamePattern getName() | |
| getParameterTypes | back to summary |
|---|---|
| public TypePatternList getParameterTypes() | |
| getReturnType | back to summary |
|---|---|
| public TypePattern getReturnType() | |
| getThrowsPattern | back to summary |
|---|---|
| public ThrowsPattern getThrowsPattern() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isExactDeclaringTypePattern | back to summary |
|---|---|
| public boolean isExactDeclaringTypePattern() | |
| isMatchingParameterAnnotations | back to summary |
|---|---|
| private boolean isMatchingParameterAnnotations() Determine if any pattern in the parameter type pattern list is attempting to match on parameter annotations.
| |
| isMatchOnAnyName | back to summary |
|---|---|
| public boolean isMatchOnAnyName() Implements org.
| |
| isParameterAnnotationMatching | back to summary |
|---|---|
| private boolean isParameterAnnotationMatching(TypePattern tp) Walk the simple structure of a type pattern and determine if any leaf node is involved in parameter annotation matching. | |
| isParameterAnnotationMatching | back to summary |
|---|---|
| private boolean isParameterAnnotationMatching(AnnotationTypePattern tp) | |
| isStarAnnotation | back to summary |
|---|---|
| public boolean isStarAnnotation() Implements org.
| |
| matches | back to summary |
|---|---|
| public boolean matches(Member joinPointSignature, World world, boolean allowBridgeMethods) Implements org.
| |
| matchesAnnotations | back to summary |
|---|---|
| private FuzzyBoolean matchesAnnotations(ResolvedMember member, World world) | |
| matchesExactly | back to summary |
|---|---|
| private FuzzyBoolean matchesExactly(JoinPointSignature aMember, World inAWorld, boolean allowBridgeMethods, boolean subjectMatch) | |
| matchesExactlyConstructor | back to summary |
|---|---|
| private FuzzyBoolean matchesExactlyConstructor(JoinPointSignature aConstructor, World world) match on declaring type, parameter types, throws types | |
| matchesExactlyField | back to summary |
|---|---|
| private FuzzyBoolean matchesExactlyField(JoinPointSignature aField, World world) Matches on name, declaring type, field type | |
| matchesExactlyMethod | back to summary |
|---|---|
| private FuzzyBoolean matchesExactlyMethod(JoinPointSignature aMethod, World world, boolean subjectMatch) Matches on name, declaring type, return type, parameter types, throws types | |
| matchesExactlyStaticInitialization | back to summary |
|---|---|
| private FuzzyBoolean matchesExactlyStaticInitialization(JoinPointSignature aMember, World world) Matches on declaring type | |
| matchesVarArgs | back to summary |
|---|---|
| private boolean matchesVarArgs(JoinPointSignature aMethodOrConstructor, World inAWorld) We've matched against this method or constructor so far, but without considering varargs (which has been matched as a simple array thus far). Now we do the additional checks to see if the parties agree on whether the last parameter is varargs or a straight array. | |
| parameterizeWith | back to summary |
|---|---|
| public SignaturePattern parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) Implements org. return a copy of this signature pattern in which every type variable reference is replaced by the corresponding entry in the map.
| |
| parametersCannotMatch | back to summary |
|---|---|
| private boolean parametersCannotMatch(JoinPointSignature methodJoinpoint) Quickly detect if the joinpoint absolutely cannot match becaused the method parameters at the joinpoint cannot match against this signature pattern.
| |
| postRead | back to summary |
|---|---|
| public void postRead(ResolvedType enclosingType) | |
| read | back to summary |
|---|---|
| public static SignaturePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException | |
| reportUnmatchedTargetKindMessage | back to summary |
|---|---|
| private void reportUnmatchedTargetKindMessage(AnnotationTargetKind[] annotationTargetKinds, PatternNode node, IScope scope, boolean checkMatchesMemberKindName) | |
| resolveBindings | back to summary |
|---|---|
| public SignaturePattern resolveBindings(IScope scope, Bindings bindings) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| traverse | back to summary |
|---|---|
| public Object traverse(PatternNodeVisitor visitor, Object data) | |
| wantToMatchAnnotationPattern | back to summary |
|---|---|
| private boolean wantToMatchAnnotationPattern() | |
| write | back to summary |
|---|---|
| public void write(CompressingDataOutputStream s) throws IOException Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private boolean | |
| private IScope | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | TypePatternVisitor(IScope scope, boolean targetsOtherThanTypeAllowed, boolean parameterTargettingAnnotationsAllowed)
|
| incorrectTargetKinds | back to summary |
|---|---|
| private Map<ExactAnnotationTypePattern, AnnotationTargetKind[]> incorrectTargetKinds | |
| parameterTargettingAnnotationsAllowed | back to summary |
|---|---|
| private boolean parameterTargettingAnnotationsAllowed | |
| scope | back to summary |
|---|---|
| private IScope scope | |
| targetsOtherThanTypeAllowed | back to summary |
|---|---|
| private boolean targetsOtherThanTypeAllowed | |
| TypePatternVisitor | back to summary |
|---|---|
| public TypePatternVisitor(IScope scope, boolean targetsOtherThanTypeAllowed, boolean parameterTargettingAnnotationsAllowed) | |
| containedIncorrectTargetKind | back to summary |
|---|---|
| public boolean containedIncorrectTargetKind() | |
| getIncorrectTargetKinds | back to summary |
|---|---|
| public Map | |
| visit | back to summary |
|---|---|
| public Object visit(WildAnnotationTypePattern node, Object data) Overrides org. Implements org.
| |
| visit | back to summary |
|---|---|
| public Object visit(ExactAnnotationTypePattern node, Object data) Overrides org. Implements org. Do the ExactAnnotationTypePatterns have the incorrect target?
| |
| visit | back to summary |
|---|---|
| public Object visit(ExactTypePattern node, Object data) Overrides org. Implements org.
| |
| visit | back to summary |
|---|---|
| public Object visit(AndTypePattern node, Object data) Overrides org. Implements org.
| |
| visit | back to summary |
|---|---|
| public Object visit(OrTypePattern node, Object data) Overrides org. Implements org.
| |
| visit | back to summary |
|---|---|
| public Object visit(AnyWithAnnotationTypePattern node, Object data) Overrides org. Implements org.
| |