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
A TypeCategoryTypePattern matches on the category of a type, one of class/interface/aspect/inner/anonymous/enum/annotation, and
these are specified in the pointcut via isClass() isInterface() isAspect() isInner() isAnonymous() isEnum() isAnnotation().
- Since:
- 1.6.9
- Author:
- Andy Clement
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.weaver.patterns.TypePattern
TypePattern.MatchKind
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static int
static int
static int
static int
static int
static int
static int
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
-
Method Summary
Modifier and TypeMethodDescriptionaccept(PatternNodeVisitor visitor, Object data)
boolean
int
int
hashCode()
protected boolean
matchesExactly(ResolvedType type)
protected boolean
matchesExactly(ResolvedType type, ResolvedType annotatedType)
matchesInstanceof(ResolvedType type)
parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w)
return a version of this type pattern in which all type variable references have been replaced by their corresponding entry in the map.static TypePattern
read(VersionedDataInputStream s, ISourceContext context)
void
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 Details
-
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
-
-
Constructor Details
-
TypeCategoryTypePattern
public TypeCategoryTypePattern(int category)
-
-
Method Details
-
getTypeCategory
public int getTypeCategory() -
matchesExactly
- Specified by:
matchesExactly
in classTypePattern
-
matchesExactly
- Specified by:
matchesExactly
in classTypePattern
-
matchesInstanceof
- Specified by:
matchesInstanceof
in classTypePattern
-
parameterizeWith
Description copied from class:TypePattern
return a version of this type pattern in which all type variable references have been replaced by their corresponding entry in the map.- Specified by:
parameterizeWith
in classTypePattern
-
accept
- Specified by:
accept
in classPatternNode
-
equals
-
hashCode
public int hashCode() -
write
- Specified by:
write
in classPatternNode
- Throws:
IOException
-
read
public static TypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException- Throws:
IOException
-