|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.compiler.classfmt.TypeAnnotationWalker
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.NonNullDefaultAwareTypeAnnotationWalker
public class NonNullDefaultAwareTypeAnnotationWalker
A type annotation walker that adds missing NonNull annotations according to the current default.
| Field Summary |
|---|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.TypeAnnotationWalker |
|---|
EMPTY_ANNOTATION_WALKER, matches, NO_ANNOTATIONS, pathPtr, typeAnnotations |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.TypeAnnotationWalker |
|---|
toField, toNextArrayDimension, toNextDetail, toNextNestedType, toReceiver, toSupertype, toTarget, toThrows, toWildcardBound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NonNullDefaultAwareTypeAnnotationWalker(IBinaryTypeAnnotation[] typeAnnotations,
int defaultNullness,
LookupEnvironment environment)
public NonNullDefaultAwareTypeAnnotationWalker(int defaultNullness,
LookupEnvironment environment)
| Method Detail |
|---|
protected TypeAnnotationWalker restrict(long newMatches,
int newPathPtr)
restrict in class TypeAnnotationWalkerpublic TypeAnnotationWalker toMethodParameter(short index)
TypeAnnotationWalker
toMethodParameter in class TypeAnnotationWalkerpublic TypeAnnotationWalker toMethodReturn()
TypeAnnotationWalker
toMethodReturn in class TypeAnnotationWalkerpublic TypeAnnotationWalker toTypeBound(short boundIndex)
TypeAnnotationWalkerTypeAnnotationWalker.toTypeParameterBounds(boolean, int): walk to the bounds
of the previously selected type parameter.
toTypeBound in class TypeAnnotationWalker
public 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)
TypeAnnotationWalker
toTypeArgument in class TypeAnnotationWalker
public TypeAnnotationWalker toTypeParameter(boolean isClassTypeParameter,
int rank)
TypeAnnotationWalker
toTypeParameter 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)
TypeAnnotationWalker
getAnnotationsAtCursor in class TypeAnnotationWalker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||