Class BinaryStubData.TypeAnno
java.lang.Object
org.checkerframework.framework.stub.BinaryStubData.TypeAnno
- Enclosing class:
BinaryStubData
Represents a type annotation with its type path, or a marker for a plain wildcard
?
(see UNBOUNDED_WILDCARD).-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intIndex intoBinaryStubData.annotationPoolof the annotation record, orUNBOUNDED_WILDCARD.final BinaryStubData.TypePathStep[]Type-path steps locating the annotated component.static final intannoIndexof a marker: a type annotation that carries no annotation and whose path locates a plain wildcard?. -
Constructor Summary
ConstructorsConstructorDescriptionTypeAnno(int annoIndex, BinaryStubData.TypePathStep[] path) Constructs a TypeAnno. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this is a marker for a plain wildcard?rather than an annotation.
-
Field Details
-
UNBOUNDED_WILDCARD
public static final int UNBOUNDED_WILDCARDannoIndexof a marker: a type annotation that carries no annotation and whose path locates a plain wildcard?. Defined once inBinaryStubWriter.TYPE_ANNO_UNBOUNDED_WILDCARD, which says what the reader does with it.- See Also:
-
annoIndex
public final int annoIndexIndex intoBinaryStubData.annotationPoolof the annotation record, orUNBOUNDED_WILDCARD. -
path
Type-path steps locating the annotated component.
-
-
Constructor Details
-
TypeAnno
Constructs a TypeAnno.- Parameters:
annoIndex- index into the annotation pool of the annotation record, orUNBOUNDED_WILDCARDpath- type-path steps locating the annotated component
-
-
Method Details
-
isUnboundedWildcard
public boolean isUnboundedWildcard()Returns true if this is a marker for a plain wildcard?rather than an annotation.- Returns:
- true if
annoIndexisUNBOUNDED_WILDCARD
-