Package org.aspectj.weaver.patterns
Class ExactAnnotationTypePattern
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.AnnotationTypePattern
-
- org.aspectj.weaver.patterns.ExactAnnotationTypePattern
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
- Direct Known Subclasses:
BindingAnnotationFieldTypePattern,BindingAnnotationTypePattern,ExactAnnotationFieldTypePattern
public class ExactAnnotationTypePattern extends AnnotationTypePattern
-
-
Field Summary
Fields Modifier and Type Field Description protected UnresolvedTypeannotationTypeprotected booleanbindingPatternprotected StringformalNameprotected booleanresolved-
Fields inherited from class org.aspectj.weaver.patterns.AnnotationTypePattern
AND, ANY, ANY_KEY, BINDING, BINDINGFIELD, BINDINGFIELD2, ELLIPSIS, ELLIPSIS_KEY, EXACT, EXACTFIELD, NONE, NOT, OR, WILD
-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExactAnnotationTypePattern(String formalName)ExactAnnotationTypePattern(UnresolvedType annotationType, Map<String,String> annotationValues)
-
Method Summary
-
Methods inherited from class org.aspectj.weaver.patterns.AnnotationTypePattern
isAny, isForParameterAnnotationMatch, remapAdviceFormals, setForParameterAnnotationMatch
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
-
-
-
Field Detail
-
annotationType
protected UnresolvedType annotationType
-
formalName
protected String formalName
-
resolved
protected boolean resolved
-
bindingPattern
protected boolean bindingPattern
-
-
Constructor Detail
-
ExactAnnotationTypePattern
public ExactAnnotationTypePattern(UnresolvedType annotationType, Map<String,String> annotationValues)
-
ExactAnnotationTypePattern
protected ExactAnnotationTypePattern(String formalName)
-
-
Method Detail
-
getResolvedAnnotationType
public ResolvedType getResolvedAnnotationType()
-
getAnnotationType
public UnresolvedType getAnnotationType()
-
fastMatches
public FuzzyBoolean fastMatches(AnnotatedElement annotated)
- Overrides:
fastMatchesin classAnnotationTypePattern
-
matches
public FuzzyBoolean matches(AnnotatedElement annotated)
- Specified by:
matchesin classAnnotationTypePattern
-
matches
public FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)
- Specified by:
matchesin classAnnotationTypePattern
-
matchesRuntimeType
public FuzzyBoolean matchesRuntimeType(AnnotatedElement annotated)
-
resolve
public void resolve(World world)
- Specified by:
resolvein classAnnotationTypePattern
-
resolveBindings
public AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)
- Overrides:
resolveBindingsin classAnnotationTypePattern
-
parameterizeWith
public AnnotationTypePattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
- Specified by:
parameterizeWithin classAnnotationTypePattern
-
maybeGetSimpleName
protected String maybeGetSimpleName()
-
verifyIsAnnotationType
protected void verifyIsAnnotationType(ResolvedType type, IScope scope)
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
-