org.aspectj.weaver.patterns
Class WildAnnotationTypePattern

java.lang.Object
  extended by org.aspectj.weaver.patterns.PatternNode
      extended by org.aspectj.weaver.patterns.AnnotationTypePattern
          extended by org.aspectj.weaver.patterns.WildAnnotationTypePattern
All Implemented Interfaces:
IHasPosition, IHasSourceLocation

public class WildAnnotationTypePattern
extends AnnotationTypePattern


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, WILD
 
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
 
Constructor Summary
WildAnnotationTypePattern(TypePattern typePattern)
           
WildAnnotationTypePattern(TypePattern typePattern, java.util.Map<java.lang.String,java.lang.String> annotationValues)
           
 
Method Summary
 java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
           
 boolean equals(java.lang.Object obj)
           
 TypePattern getTypePattern()
           
 int hashCode()
           
 FuzzyBoolean matches(AnnotatedElement annotated)
           
 FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations)
           
 AnnotationTypePattern parameterizeWith(java.util.Map typeVariableMap, World w)
           
static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context)
           
 void resolve(World world)
           
protected  void resolveAnnotationValues(ResolvedType annotationType, IScope scope)
          Resolve any annotation values specified, checking they are all well formed (valid names, valid values)
 AnnotationTypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding)
          This can modify in place, or return a new TypePattern if the type changes.
 java.lang.String toString()
           
 void write(CompressingDataOutputStream s)
           
 
Methods inherited from class org.aspectj.weaver.patterns.AnnotationTypePattern
fastMatches, isAny, isForParameterAnnotationMatch, remapAdviceFormals, setForParameterAnnotationMatch
 
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WildAnnotationTypePattern

public WildAnnotationTypePattern(TypePattern typePattern)

WildAnnotationTypePattern

public WildAnnotationTypePattern(TypePattern typePattern,
                                 java.util.Map<java.lang.String,java.lang.String> annotationValues)
Method Detail

getTypePattern

public TypePattern getTypePattern()

matches

public FuzzyBoolean matches(AnnotatedElement annotated)
Specified by:
matches in class AnnotationTypePattern

resolveAnnotationValues

protected void resolveAnnotationValues(ResolvedType annotationType,
                                       IScope scope)
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 specified
scope - the scope within which to resolve type references (eg. Color.GREEN)

matches

public FuzzyBoolean matches(AnnotatedElement annotated,
                            ResolvedType[] parameterAnnotations)
Specified by:
matches in class AnnotationTypePattern

resolve

public void resolve(World world)
Specified by:
resolve in class AnnotationTypePattern

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:
resolveBindings in class AnnotationTypePattern

parameterizeWith

public AnnotationTypePattern parameterizeWith(java.util.Map typeVariableMap,
                                              World w)
Specified by:
parameterizeWith in class AnnotationTypePattern

write

public void write(CompressingDataOutputStream s)
           throws java.io.IOException
Specified by:
write in class PatternNode
Throws:
java.io.IOException

read

public static AnnotationTypePattern read(VersionedDataInputStream s,
                                         ISourceContext context)
                                  throws java.io.IOException
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

accept

public java.lang.Object accept(PatternNodeVisitor visitor,
                               java.lang.Object data)
Specified by:
accept in class PatternNode