Klasse TypeAnnotationWalker
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.TypeAnnotationWalker
- Alle implementierten Schnittstellen:
ITypeAnnotationWalker
- Bekannte direkte Unterklassen:
NonNullDefaultAwareTypeAnnotationWalker
Type annotation walker implementation based an actual annotations decoded from a .class file.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected final longprotected final intprotected final IBinaryTypeAnnotation[]Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.env.ITypeAnnotationWalker
EMPTY_ANNOTATION_WALKER, NO_ANNOTATIONS -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungTypeAnnotationWalker(IBinaryTypeAnnotation[] typeAnnotations) protectedTypeAnnotationWalker(IBinaryTypeAnnotation[] typeAnnotations, long matchBits, int pathPtr) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAnnotationsAtCursor(int currentTypeId, boolean mayApplyArrayContentsDefaultNullness) Retrieve the type annotations at the current position reached by invocations of toXYZ() methods.protected ITypeAnnotationWalkerrestrict(long newMatches, int newPathPtr) toField()Walk to a field.toMethodParameter(short index) Walk to the index'th visible formal method parameter (i.e., not counting synthetic args).Walk to the return type of a method.Descend down one level of array dimensions.protected ITypeAnnotationWalkertoNextDetail(int detailKind) Descend down one level of type nesting.Walk to the receiver type of a method.toSupertype(short index, char[] superTypeSignature) Walk to the specified supertype either index based or name based:protected ITypeAnnotationWalkertoTarget(int targetType) toThrows(int index) Walk to the throws type at the given index.toTypeArgument(int rank) Walk to the type argument of the given rank.toTypeBound(short boundIndex) Detail ofITypeAnnotationWalker.toTypeParameterBounds(boolean, int): walk to the bounds of the previously selected type parameter.toTypeParameter(boolean isClassTypeParameter, int rank) Walk to the type parameter of the given rank.toTypeParameterBounds(boolean isClassTypeParameter, int parameterRank) Walk to the bounds of a type parameter of either a class or a method (signaled by isClassTypeParameter).Walk to the bound of a wildcard.
-
Felddetails
-
typeAnnotations
-
matches
protected final long matches -
pathPtr
protected final int pathPtr
-
-
Konstruktordetails
-
TypeAnnotationWalker
-
TypeAnnotationWalker
protected TypeAnnotationWalker(IBinaryTypeAnnotation[] typeAnnotations, long matchBits, int pathPtr)
-
-
Methodendetails
-
restrict
-
toField
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerWalk to a field.- Angegeben von:
toFieldin SchnittstelleITypeAnnotationWalker
-
toMethodReturn
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerWalk to the return type of a method.- Angegeben von:
toMethodReturnin SchnittstelleITypeAnnotationWalker
-
toReceiver
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerWalk to the receiver type of a method. Note: Type annotations on receiver are not currently used by the compiler.- Angegeben von:
toReceiverin SchnittstelleITypeAnnotationWalker
-
toTarget
-
toTypeParameter
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerWalk to the type parameter of the given rank.- Angegeben von:
toTypeParameterin SchnittstelleITypeAnnotationWalker- Parameter:
isClassTypeParameter- whether we are looking for a class type parameter (else: method type parameter)rank- rank of the type parameter
-
toTypeParameterBounds
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerWalk to the bounds of a type parameter of either a class or a method (signaled by isClassTypeParameter). Clients must then callITypeAnnotationWalker.toTypeBound(short)on the resulting walker.- Angegeben von:
toTypeParameterBoundsin SchnittstelleITypeAnnotationWalker- Parameter:
isClassTypeParameter- whether we are looking at a class type parameter (else: method type parameter)parameterRank- rank of the type parameter.
-
toTypeBound
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerDetail ofITypeAnnotationWalker.toTypeParameterBounds(boolean, int): walk to the bounds of the previously selected type parameter.- Angegeben von:
toTypeBoundin SchnittstelleITypeAnnotationWalker
-
toSupertype
Walk to the specified supertype either index based or name based:(superTypesSignature is ignored in this implementation).
- Angegeben von:
toSupertypein SchnittstelleITypeAnnotationWalker- Parameter:
index- -1 is superclass, else index into the list of superinterfacessuperTypeSignature- name and type arguments of the super type to visit
-
toMethodParameter
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerWalk to the index'th visible formal method parameter (i.e., not counting synthetic args).- Angegeben von:
toMethodParameterin SchnittstelleITypeAnnotationWalker
-
toThrows
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerWalk to the throws type at the given index.- Angegeben von:
toThrowsin SchnittstelleITypeAnnotationWalker
-
toTypeArgument
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerWalk to the type argument of the given rank.- Angegeben von:
toTypeArgumentin SchnittstelleITypeAnnotationWalker
-
toWildcardBound
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerWalk to the bound of a wildcard.- Angegeben von:
toWildcardBoundin SchnittstelleITypeAnnotationWalker
-
toNextArrayDimension
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerDescend down one level of array dimensions.- Angegeben von:
toNextArrayDimensionin SchnittstelleITypeAnnotationWalker
-
toNextNestedType
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerDescend down one level of type nesting.- Angegeben von:
toNextNestedTypein SchnittstelleITypeAnnotationWalker
-
toNextDetail
-
getAnnotationsAtCursor
public IBinaryAnnotation[] getAnnotationsAtCursor(int currentTypeId, boolean mayApplyArrayContentsDefaultNullness) Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalkerRetrieve the type annotations at the current position reached by invocations of toXYZ() methods.- Angegeben von:
getAnnotationsAtCursorin SchnittstelleITypeAnnotationWalker- Parameter:
currentTypeId- the id of the type being annotated; 0 signals don't care / unknown; -1 signals if annotating a wildcard or a use of a type variable.
-