Package org.aspectj.weaver.patterns
Class WildAnnotationTypePattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.AnnotationTypePattern
org.aspectj.weaver.patterns.WildAnnotationTypePattern
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
- Author:
- colyer, Andy Clement
-
Field Summary
Fields inherited from class org.aspectj.weaver.patterns.AnnotationTypePattern
AND, ANY, ANY_KEY, BINDING, BINDINGFIELD, BINDINGFIELD2, ELLIPSIS, ELLIPSIS_KEY, EXACT, EXACTFIELD, NONE, NOT, OR, WILDFields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start -
Constructor Summary
ConstructorsConstructorDescriptionWildAnnotationTypePattern(TypePattern typePattern)WildAnnotationTypePattern(TypePattern typePattern, Map<String,String> annotationValues) -
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data)booleaninthashCode()matches(AnnotatedElement annotated)matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)static AnnotationTypePatternread(VersionedDataInputStream s, ISourceContext context)voidprotected voidresolveAnnotationValues(ResolvedType annotationType, IScope scope)Resolve any annotation values specified, checking they are all well formed (valid names, valid values)resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)This can modify in place, or return a new TypePattern if the type changes.toString()voidMethods inherited from class org.aspectj.weaver.patterns.AnnotationTypePattern
fastMatches, isAny, isForParameterAnnotationMatch, remapAdviceFormals, setForParameterAnnotationMatchMethods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
Constructor Details
-
WildAnnotationTypePattern
-
WildAnnotationTypePattern
-
-
Method Details
-
getTypePattern
-
matches
- Specified by:
matchesin classAnnotationTypePattern
-
resolveAnnotationValues
Resolve any annotation values specified, checking they are all well formed (valid names, valid values)- Parameters:
annotationType- the annotation type for which the values have been specifiedscope- the scope within which to resolve type references (eg. Color.GREEN)
-
matches
- Specified by:
matchesin classAnnotationTypePattern
-
resolve
- Specified by:
resolvein classAnnotationTypePattern
-
resolveBindings
public AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)This can modify in place, or return a new TypePattern if the type changes.- Overrides:
resolveBindingsin classAnnotationTypePattern
-
parameterizeWith
public AnnotationTypePattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)- Specified by:
parameterizeWithin classAnnotationTypePattern
-
write
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
accept
- Specified by:
acceptin classPatternNode
-