Package org.aspectj.weaver.patterns
Class TypeCategoryTypePattern
- java.lang.Object
-
- org.aspectj.weaver.patterns.PatternNode
-
- org.aspectj.weaver.patterns.TypePattern
-
- org.aspectj.weaver.patterns.TypeCategoryTypePattern
-
- All Implemented Interfaces:
IHasPosition,IHasSourceLocation
public class TypeCategoryTypePattern extends TypePattern
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.aspectj.weaver.patterns.TypePattern
TypePattern.MatchKind
-
-
Field Summary
Fields Modifier and Type Field Description static intABSTRACTstatic intANNOTATIONstatic intANONYMOUSstatic intASPECTstatic intCLASSstatic intENUMstatic intFINALstatic intINNERstatic intINTERFACE-
Fields inherited from class org.aspectj.weaver.patterns.TypePattern
AND, annotationPattern, ANY, ANY_KEY, ANY_WITH_ANNO, BINDING, DYNAMIC, ELLIPSIS, ELLIPSIS_KEY, EXACT, HAS_MEMBER, includeSubtypes, isVarArgs, NO, NO_KEY, NOT, OR, STATIC, TYPE_CATEGORY, typeParameters, WILD
-
Fields inherited from class org.aspectj.weaver.patterns.PatternNode
end, sourceContext, start
-
-
Constructor Summary
Constructors Constructor Description TypeCategoryTypePattern(int category)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(PatternNodeVisitor visitor, Object data)booleanequals(Object other)intgetTypeCategory()inthashCode()protected booleanmatchesExactly(ResolvedType type)protected booleanmatchesExactly(ResolvedType type, ResolvedType annotatedType)FuzzyBooleanmatchesInstanceof(ResolvedType type)TypePatternparameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)static TypePatternread(VersionedDataInputStream s, ISourceContext context)voidwrite(CompressingDataOutputStream s)-
Methods inherited from class org.aspectj.weaver.patterns.TypePattern
couldEverMatchSameTypesAs, getAnnotationPattern, getExactType, getTypeParameters, hasFailedResolution, isArray, isBangVoid, isEllipsis, isIncludeSubtypes, isStar, isStarAnnotation, isVarArgs, isVoid, matches, matchesStatically, matchesSubtypes, matchesSubtypes, notExactType, postRead, remapAdviceFormals, resolve, resolveBindings, resolveExactType, setAnnotationTypePattern, setIsVarArgs, setTypeParameters
-
Methods inherited from class org.aspectj.weaver.patterns.PatternNode
copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocation
-
-
-
-
Field Detail
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
INTERFACE
public static final int INTERFACE
- See Also:
- Constant Field Values
-
ASPECT
public static final int ASPECT
- See Also:
- Constant Field Values
-
INNER
public static final int INNER
- See Also:
- Constant Field Values
-
ANONYMOUS
public static final int ANONYMOUS
- See Also:
- Constant Field Values
-
ENUM
public static final int ENUM
- See Also:
- Constant Field Values
-
ANNOTATION
public static final int ANNOTATION
- See Also:
- Constant Field Values
-
FINAL
public static final int FINAL
- See Also:
- Constant Field Values
-
ABSTRACT
public static final int ABSTRACT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeCategory
public int getTypeCategory()
-
matchesExactly
protected boolean matchesExactly(ResolvedType type)
- Specified by:
matchesExactlyin classTypePattern
-
matchesExactly
protected boolean matchesExactly(ResolvedType type, ResolvedType annotatedType)
- Specified by:
matchesExactlyin classTypePattern
-
matchesInstanceof
public FuzzyBoolean matchesInstanceof(ResolvedType type)
- Specified by:
matchesInstanceofin classTypePattern
-
parameterizeWith
public TypePattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
- Specified by:
parameterizeWithin classTypePattern
-
accept
public Object accept(PatternNodeVisitor visitor, Object data)
- Specified by:
acceptin classPatternNode
-
write
public void write(CompressingDataOutputStream s) throws IOException
- Specified by:
writein classPatternNode- Throws:
IOException
-
read
public static TypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException
- Throws:
IOException
-
-