Package org.aspectj.weaver.patterns
Class ExactAnnotationFieldTypePattern
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.AnnotationTypePattern
-
- org.aspectj.weaver.patterns.ExactAnnotationTypePattern
-
- org.aspectj.weaver.patterns.ExactAnnotationFieldTypePattern
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
public class ExactAnnotationFieldTypePattern extends ExactAnnotationTypePattern
-
-
Field Summary
-
Fields inherited from class org.aspectj.weaver.patterns.ExactAnnotationTypePattern
bindingPattern, formalName, resolved
-
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 Constructor Description ExactAnnotationFieldTypePattern(ExactAnnotationTypePattern p, String formalName)ExactAnnotationFieldTypePattern(UnresolvedType annotationType, String formalName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(PatternNodeVisitor visitor, Object data)booleanequals(Object obj)FuzzyBooleanfastMatches(AnnotatedElement annotated)UnresolvedTypegetAnnotationType()MapgetAnnotationValues()ResolvedTypegetResolvedAnnotationType()inthashCode()FuzzyBooleanmatches(AnnotatedElement annotated)FuzzyBooleanmatches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)FuzzyBooleanmatchesRuntimeType(AnnotatedElement annotated)AnnotationTypePatternparameterizeWith(Map typeVariableMap, World w)static AnnotationTypePatternread(VersionedDataInputStream s, ISourceContext context)voidresolve(World world)AnnotationTypePatternresolveBindings(IScope scope, Bindings bindings, boolean allowBinding)StringtoString()voidwrite(CompressingDataOutputStream s)-
Methods inherited from class org.aspectj.weaver.patterns.ExactAnnotationTypePattern
maybeGetSimpleName, verifyIsAnnotationType
-
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
-
-
-
-
Constructor Detail
-
ExactAnnotationFieldTypePattern
public ExactAnnotationFieldTypePattern(ExactAnnotationTypePattern p, String formalName)
-
ExactAnnotationFieldTypePattern
public ExactAnnotationFieldTypePattern(UnresolvedType annotationType, String formalName)
-
-
Method Detail
-
resolveBindings
public AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)
- Overrides:
resolveBindingsin classExactAnnotationTypePattern
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Overrides:
writein classExactAnnotationTypePattern- Throws:
IOException
-
read
public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Overrides:
acceptin classExactAnnotationTypePattern
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classExactAnnotationTypePattern
-
hashCode
public int hashCode()
- Overrides:
hashCodein classExactAnnotationTypePattern
-
fastMatches
public FuzzyBoolean fastMatches(AnnotatedElement annotated)
- Overrides:
fastMatchesin classExactAnnotationTypePattern
-
getAnnotationType
public UnresolvedType getAnnotationType()
- Overrides:
getAnnotationTypein classExactAnnotationTypePattern
-
getAnnotationValues
public Map getAnnotationValues()
- Overrides:
getAnnotationValuesin classExactAnnotationTypePattern
-
getResolvedAnnotationType
public ResolvedType getResolvedAnnotationType()
- Overrides:
getResolvedAnnotationTypein classExactAnnotationTypePattern
-
matches
public FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)
- Overrides:
matchesin classExactAnnotationTypePattern
-
matches
public FuzzyBoolean matches(AnnotatedElement annotated)
- Overrides:
matchesin classExactAnnotationTypePattern
-
matchesRuntimeType
public FuzzyBoolean matchesRuntimeType(AnnotatedElement annotated)
- Overrides:
matchesRuntimeTypein classExactAnnotationTypePattern
-
parameterizeWith
public AnnotationTypePattern parameterizeWith(Map typeVariableMap, World w)
- Overrides:
parameterizeWithin classExactAnnotationTypePattern
-
resolve
public void resolve(World world)
- Overrides:
resolvein classExactAnnotationTypePattern
-
toString
public String toString()
- Overrides:
toStringin classExactAnnotationTypePattern
-
-