public class NonNullDefaultAwareTypeAnnotationWalker extends TypeAnnotationWalker
EMPTY_ANNOTATION_WALKER, matches, NO_ANNOTATIONS, pathPtr, typeAnnotations| Constructor and Description |
|---|
NonNullDefaultAwareTypeAnnotationWalker(IBinaryTypeAnnotation[] typeAnnotations,
int defaultNullness,
LookupEnvironment environment)
Create initial walker with non-empty type annotations.
|
NonNullDefaultAwareTypeAnnotationWalker(int defaultNullness,
LookupEnvironment environment)
Create an initial walker without 'real' type annotations, but with a nonnull default.
|
| Modifier and Type | Method and Description |
|---|---|
IBinaryAnnotation[] |
getAnnotationsAtCursor(int currentTypeId)
Retrieve the type annotations at the current position
reached by invocations of toXYZ() methods.
|
protected TypeAnnotationWalker |
restrict(long newMatches,
int newPathPtr) |
TypeAnnotationWalker |
toMethodParameter(short index)
Walk to the index'th visible formal method parameter (i.e., not counting synthetic args).
|
TypeAnnotationWalker |
toMethodReturn()
Walk to the return type of a method.
|
TypeAnnotationWalker |
toTypeArgument(int rank)
Walk to the type argument of the given rank.
|
TypeAnnotationWalker |
toTypeBound(short boundIndex)
Detail of
TypeAnnotationWalker.toTypeParameterBounds(boolean, int): walk to the bounds
of the previously selected type parameter. |
TypeAnnotationWalker |
toTypeParameter(boolean isClassTypeParameter,
int rank)
Walk to the type parameter of the given rank.
|
TypeAnnotationWalker |
toTypeParameterBounds(boolean isClassTypeParameter,
int parameterRank)
Walk to the bounds of a type parameter of either a class or a method (signaled by isClassTypeParameter).
|
toField, toNextArrayDimension, toNextDetail, toNextNestedType, toReceiver, toSupertype, toTarget, toThrows, toWildcardBoundpublic NonNullDefaultAwareTypeAnnotationWalker(IBinaryTypeAnnotation[] typeAnnotations, int defaultNullness, LookupEnvironment environment)
public NonNullDefaultAwareTypeAnnotationWalker(int defaultNullness,
LookupEnvironment environment)
protected TypeAnnotationWalker restrict(long newMatches, int newPathPtr)
restrict in class TypeAnnotationWalkerpublic TypeAnnotationWalker toMethodParameter(short index)
TypeAnnotationWalkertoMethodParameter in class TypeAnnotationWalkerpublic TypeAnnotationWalker toMethodReturn()
TypeAnnotationWalkertoMethodReturn in class TypeAnnotationWalkerpublic TypeAnnotationWalker toTypeBound(short boundIndex)
TypeAnnotationWalkerTypeAnnotationWalker.toTypeParameterBounds(boolean, int): walk to the bounds
of the previously selected type parameter.toTypeBound in class TypeAnnotationWalkerpublic TypeAnnotationWalker toTypeParameterBounds(boolean isClassTypeParameter, int parameterRank)
TypeAnnotationWalkerTypeAnnotationWalker.toTypeBound(short) on the resulting walker.toTypeParameterBounds in class TypeAnnotationWalkerisClassTypeParameter - whether we are looking at a class type parameter (else: method type type parameter)parameterRank - rank of the type parameter.public TypeAnnotationWalker toTypeArgument(int rank)
TypeAnnotationWalkertoTypeArgument in class TypeAnnotationWalkerpublic TypeAnnotationWalker toTypeParameter(boolean isClassTypeParameter, int rank)
TypeAnnotationWalkertoTypeParameter in class TypeAnnotationWalkerisClassTypeParameter - whether we are looking for a class type parameter (else: method type type parameter)rank - rank of the type parameterpublic IBinaryAnnotation[] getAnnotationsAtCursor(int currentTypeId)
TypeAnnotationWalkergetAnnotationsAtCursor in class TypeAnnotationWalker