Package com.google.turbine.tree
Class Tree
- java.lang.Object
-
- com.google.turbine.tree.Tree
-
- Direct Known Subclasses:
Tree.Anno,Tree.CompUnit,Tree.Expression,Tree.Ident,Tree.ImportDecl,Tree.MethDecl,Tree.ModDecl,Tree.ModDirective,Tree.PkgDecl,Tree.TyDecl,Tree.TyParam,Tree.Type,Tree.VarDecl
public abstract class Tree extends java.lang.ObjectAn AST node.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTree.AnnoA JLS 9.7 annotation.static classTree.AnnoExprAn annotation in an expression context, e.g.static classTree.ArrayInitJLS 10.6 array initializer.static classTree.ArrTyAn array type.static classTree.AssignA JLS 15.26 assignment expression.static classTree.BinaryA JLS 15.17 - 14.24 binary expression.static classTree.ClassLiteralA JLS 15.8.2 class literal.static classTree.ClassTyA class, enum, interface, or annotationTree.Type.static classTree.CompUnitA JLS 7.3 compilation unit.static classTree.ConditionalA JLS 15.25 conditional expression.static classTree.ConstVarNameA JLS 6.5.6.1 simple name that refers to a JSL 4.12.4 constant variable.static classTree.ExpressionAn expression.static classTree.IdentAn identifier.static classTree.ImportDeclA JLS 7.5 import declaration.static classTree.KindTree kind.static classTree.LiteralA JLS 3.10 literal expression.static classTree.MethDeclA JLS 8.4 method declaration.static classTree.ModDeclA JLS 7.7 module declaration.static classTree.ModDirectiveA kind of module directive.static classTree.ModExportsA JLS 7.7.2 module exports directive.static classTree.ModOpensA JLS 7.7.2 module opens directive.static classTree.ModProvidesA JLS 7.7.4 module uses directive.static classTree.ModRequiresA JLS 7.7.1 module requires directive.static classTree.ModUsesA JLS 7.7.3 module uses directive.static classTree.ParenA JLS 15.8.5 parenthesized expression.static classTree.PkgDeclA JLS 7.4 package declaration.static classTree.PrimTyA primitive type.static classTree.TyDeclA JLS 7.6 or 8.5 type declaration.static classTree.TyParamA JLS 4.4.static classTree.TypeA type use.static classTree.TypeCastA JLS 15.16 cast expression.static classTree.UnaryA JLS 15.14 - 14.15 unary expression.static classTree.VarDeclA JLS 8.3 field declaration, JLS 8.4.1 formal method parameter, or JLS 14.4 variable.static interfaceTree.Visitor<I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object>A visitor forTrees.static classTree.VoidTyThe void type, used only for void-returning methods.static classTree.WildTyA wildcard type, possibly with an upper or lower bound.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTree(int position)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object>
Oaccept(Tree.Visitor<I,O> visitor, I input)abstract Tree.Kindkind()intposition()java.lang.StringtoString()
-
-
-
Method Detail
-
kind
public abstract Tree.Kind kind()
-
accept
public abstract <I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object> O accept(Tree.Visitor<I,O> visitor, I input)
-
position
public int position()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-