org.aspectj.weaver.patterns
Class BindingAnnotationFieldTypePattern
java.lang.Object
org.aspectj.weaver.patterns.PatternNode
org.aspectj.weaver.patterns.AnnotationTypePattern
org.aspectj.weaver.patterns.ExactAnnotationTypePattern
org.aspectj.weaver.patterns.BindingAnnotationFieldTypePattern
- All Implemented Interfaces:
- IHasPosition, IHasSourceLocation, BindingPattern
public class BindingAnnotationFieldTypePattern
- extends ExactAnnotationTypePattern
- implements BindingPattern
Represents an attempt to bind the field of an annotation within a pointcut. For example:
before(Level lev): execution(* *(..)) && @annotation(TraceAnnotation(lev))
This binding annotation type pattern will be for 'lev'.
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 |
Methods inherited from class org.aspectj.weaver.patterns.ExactAnnotationTypePattern |
accept, fastMatches, getAnnotationType, getAnnotationValues, getResolvedAnnotationType, matches, matchesRuntimeType, maybeGetSimpleName, resolve, resolveBindings, toString, verifyIsAnnotationType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
formalIndex
protected int formalIndex
BindingAnnotationFieldTypePattern
public BindingAnnotationFieldTypePattern(UnresolvedType formalType,
int formalIndex,
UnresolvedType theAnnotationType)
resolveBinding
public void resolveBinding(World world)
parameterizeWith
public AnnotationTypePattern parameterizeWith(java.util.Map typeVariableMap,
World w)
- Overrides:
parameterizeWith
in class ExactAnnotationTypePattern
getFormalIndex
public int getFormalIndex()
- Specified by:
getFormalIndex
in interface BindingPattern
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class ExactAnnotationTypePattern
hashCode
public int hashCode()
- Overrides:
hashCode
in class ExactAnnotationTypePattern
remapAdviceFormals
public AnnotationTypePattern remapAdviceFormals(IntMap bindings)
- Overrides:
remapAdviceFormals
in class AnnotationTypePattern
write
public void write(CompressingDataOutputStream s)
throws java.io.IOException
- Overrides:
write
in class ExactAnnotationTypePattern
- Throws:
java.io.IOException
read
public static AnnotationTypePattern read(VersionedDataInputStream s,
ISourceContext context)
throws java.io.IOException
- Throws:
java.io.IOException
read2
public static AnnotationTypePattern read2(VersionedDataInputStream s,
ISourceContext context)
throws java.io.IOException
- Throws:
java.io.IOException
matches
public FuzzyBoolean matches(AnnotatedElement annotated,
ResolvedType[] parameterAnnotations)
- Overrides:
matches
in class ExactAnnotationTypePattern
getFormalType
public UnresolvedType getFormalType()