| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Annotate | |
| pack-priv final Attr | |
| pack-priv final Log | |
| pack-priv final Names | |
| pack-priv final Symtab | |
| protected static final Context. | |
| pack-priv final Types |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public TypeAnnotations. | annotationTargetType(JCTree pos, Attribute.
Determine whether an annotation is a declaration annotation, a type annotation, or both (or none, i.e a non-annotation masquerading as one). |
| private TypeAnnotations. | |
| public static TypeAnnotations | |
| public void | organizeTypeAnnotationsBodies(JCTree.
This version only visits types in bodies, that is, field initializers, top-level blocks, and method bodies, and should be called from Attr. |
| public void | organizeTypeAnnotationsSignatures(final Env<AttrContext> env, final JCTree.
Separate type annotations from declaration annotations and determine the correct positions for type annotations. |
| public void | organizeTypeAnnotationsSignaturesForLocalVarType(final Env<AttrContext> env, final JCTree.
|
| private TypeAnnotations. | |
| public void |
| annotate | back to summary |
|---|---|
| pack-priv final Annotate annotate | |
| attr | back to summary |
|---|---|
| pack-priv final Attr attr | |
| log | back to summary |
|---|---|
| pack-priv final Log log | |
| names | back to summary |
|---|---|
| pack-priv final Names names | |
| syms | back to summary |
|---|---|
| pack-priv final Symtab syms | |
| typeAnnosKey | back to summary |
|---|---|
| protected static final Context. | |
| types | back to summary |
|---|---|
| pack-priv final Types types | |
| TypeAnnotations | back to summary |
|---|---|
protected TypeAnnotations(Context context)
| |
| annotationTargets | back to summary |
|---|---|
| public List | |
| annotationTargetType | back to summary |
|---|---|
| public TypeAnnotations. Determine whether an annotation is a declaration annotation, a type annotation, or both (or none, i.e a non-annotation masquerading as one). | |
| combineAnnotationType | back to summary |
|---|---|
| private TypeAnnotations. | |
| instance | back to summary |
|---|---|
| public static TypeAnnotations instance(Context context) | |
| organizeTypeAnnotationsBodies | back to summary |
|---|---|
| public void organizeTypeAnnotationsBodies(JCTree. This version only visits types in bodies, that is, field initializers, top-level blocks, and method bodies, and should be called from Attr. | |
| organizeTypeAnnotationsSignatures | back to summary |
|---|---|
| public void organizeTypeAnnotationsSignatures(final Env<AttrContext> env, final JCTree. Separate type annotations from declaration annotations and determine the correct positions for type annotations. This version only visits types in signatures and should be called from MemberEnter. | |
| organizeTypeAnnotationsSignaturesForLocalVarType | back to summary |
|---|---|
| public void organizeTypeAnnotationsSignaturesForLocalVarType(final Env<AttrContext> env, final JCTree. | |
| targetToAnnotationType | back to summary |
|---|---|
| private TypeAnnotations. | |
| validateTypeAnnotationsSignatures | back to summary |
|---|---|
| public void validateTypeAnnotationsSignatures(final Env<AttrContext> env, final JCTree. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeAnnotations. | |
| public static final TypeAnnotations. | |
| public static final TypeAnnotations. | |
| public static final TypeAnnotations. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TypeAnnotations. | |
| public static TypeAnnotations. |
| BOTH | back to summary |
|---|---|
| public static final TypeAnnotations. | |
| DECLARATION | back to summary |
|---|---|
| public static final TypeAnnotations. | |
| NONE | back to summary |
|---|---|
| public static final TypeAnnotations. | |
| TYPE | back to summary |
|---|---|
| public static final TypeAnnotations. | |
| AnnotationType | back to summary |
|---|---|
| private AnnotationType() | |
| valueOf | back to summary |
|---|---|
| public static TypeAnnotations. | |
| values | back to summary |
|---|---|
| public static TypeAnnotations. | |
| Modifier and Type | Field and Description |
|---|---|
| private final JCTree | |
| private JCTree. | |
| private List | |
| private boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private JCTree | |
| private void | |
| private ListBuffer | |
| private int | |
| private JCTree | |
| protected JCTree | |
| private void | |
| protected void | |
| private TypeAnnotationPosition | resolveFrame(JCTree tree, JCTree frame, List<JCTree> path, JCTree.
|
| private Type | rewriteArrayType(JCTree typetree, Type.
Create a copy of the |
| public void | scan(JCTree tree)
Overrides com. Visitor method: Scan a single node. |
| private void | separateAnnotationsKinds(JCTree pos, JCTree typetree, Type type, Symbol sym, TypeAnnotationPosition typeAnnotationPosition)
Separates type annotations from declaration annotations. |
| private void | |
| public String | |
| private Attribute. | |
| private Type | typeWithAnnotations(final JCTree typetree, final Type type, final List<Attribute.
|
| private Type | Returns: A copy of type that contains the annotations.The type to copy. type, final Type The type to stop at. stopAt, final List<Attribute.The annotations to insert. annotationsReturn a copy of the first type that only differs by inserting the annotations to the left-most/inner-most type or the type given by stopAt. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | visitMethodDef(final JCTree.
Overrides com. Resolve declaration vs. type annotations in methods and then determine the positions. |
| public void | |
| public void | |
| public void | |
| public void | visitVarDef(final JCTree.
Overrides com. Resolve declaration vs. type annotations in variable declarations and then determine the positions. |
| contextTree | back to summary |
|---|---|
| private final JCTree contextTree | |
| currentLambda | back to summary |
|---|---|
| private JCTree. | |
| frames | back to summary |
|---|---|
| private List<JCTree> frames | |
| isInClass | back to summary |
|---|---|
| private boolean isInClass | |
| sigOnly | back to summary |
|---|---|
| private final boolean sigOnly | |
| TypeAnnotationPositions | back to summary |
|---|---|
| pack-priv TypeAnnotationPositions(JCTree contextTree, boolean sigOnly) | |
| appendTypeAnnotationsToOwner | back to summary |
|---|---|
| private void appendTypeAnnotationsToOwner(Symbol sym, List<Attribute. | |
| arrayElemTypeTree | back to summary |
|---|---|
| private JCTree arrayElemTypeTree(JCTree typetree) | |
| findPosition | back to summary |
|---|---|
| private void findPosition(JCTree tree, JCTree frame, List<JCTree. | |
| locateNestedTypes | back to summary |
|---|---|
| private ListBuffer | |
| methodParamIndex | back to summary |
|---|---|
| private int methodParamIndex(List<JCTree> path, JCTree param) | |
| peek2 | back to summary |
|---|---|
| private JCTree peek2() | |
| pop | back to summary |
|---|---|
| protected JCTree pop() | |
| propagateNewClassAnnotationsToOwner | back to summary |
|---|---|
| private void propagateNewClassAnnotationsToOwner(JCTree. | |
| push | back to summary |
|---|---|
| protected void push(JCTree t) | |
| resolveFrame | back to summary |
|---|---|
| private TypeAnnotationPosition resolveFrame(JCTree tree, JCTree frame, List<JCTree> path, JCTree. | |
| rewriteArrayType | back to summary |
|---|---|
| private Type rewriteArrayType(JCTree typetree, Type. Create a copy of the | |
| scan | back to summary |
|---|---|
| public void scan(JCTree tree) Overrides com. Doc from com. Visitor method: Scan a single node.
| |
| separateAnnotationsKinds | back to summary |
|---|---|
| private void separateAnnotationsKinds(JCTree pos, JCTree typetree, Type type, Symbol sym, TypeAnnotationPosition typeAnnotationPosition) Separates type annotations from declaration annotations. This step is needed because in certain locations (where declaration and type annotations can be mixed, e.g. the type of a field) we never build an JCAnnotatedType. This step finds these annotations and marks them as if they were part of the type. | |
| setTypeAnnotationPos | back to summary |
|---|---|
| private void setTypeAnnotationPos(List<JCTree. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| toTypeCompound | back to summary |
|---|---|
| private Attribute. | |
| typeWithAnnotations | back to summary |
|---|---|
| private Type typeWithAnnotations(final JCTree typetree, final Type type, final List<Attribute. | |
| typeWithAnnotations | back to summary |
|---|---|
| private Type typeWithAnnotations(final Type type, final Type stopAt, final List<Attribute. Return a copy of the first type that only differs by inserting the annotations to the left-most/inner-most type or the type given by stopAt. We need the stopAt parameter to know where on a type to put the annotations. If we have nested classes Outer > Middle > Inner, and we have the source type "@A Middle.Inner", we will invoke this method with type = Outer.Middle.Inner, stopAt = Middle.Inner, and annotations = @A. | |
| visitAnnotatedType | back to summary |
|---|---|
| public void visitAnnotatedType(JCTree. Overrides com.
| |
| visitBlock | back to summary |
|---|---|
| public void visitBlock(JCTree. Overrides com.
| |
| visitClassDef | back to summary |
|---|---|
| public void visitClassDef(JCTree. Overrides com.
| |
| visitLambda | back to summary |
|---|---|
| public void visitLambda(JCTree. | |
| visitMethodDef | back to summary |
|---|---|
| public void visitMethodDef(final JCTree. Overrides com. Resolve declaration vs. type annotations in methods and then determine the positions.
| |
| visitNewArray | back to summary |
|---|---|
| public void visitNewArray(JCTree. Overrides com.
| |
| visitNewClass | back to summary |
|---|---|
| public void visitNewClass(JCTree. Overrides com.
| |
| visitTypeParameter | back to summary |
|---|---|
| public void visitTypeParameter(JCTree. Overrides com.
| |
| visitVarDef | back to summary |
|---|---|
| public void visitVarDef(final JCTree. Overrides com. Resolve declaration vs. type annotations in variable declarations and then determine the positions.
| |