Package com.google.turbine.tree
Class Tree.Literal
- java.lang.Object
-
- com.google.turbine.tree.Tree
-
- com.google.turbine.tree.Tree.Expression
-
- com.google.turbine.tree.Tree.Literal
-
- Enclosing class:
- Tree
public static class Tree.Literal extends Tree.Expression
A JLS 3.10 literal expression.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.turbine.tree.Tree
Tree.Anno, Tree.AnnoExpr, Tree.ArrayInit, Tree.ArrTy, Tree.Assign, Tree.Binary, Tree.ClassLiteral, Tree.ClassTy, Tree.CompUnit, Tree.Conditional, Tree.ConstVarName, Tree.Expression, Tree.Ident, Tree.ImportDecl, Tree.Kind, Tree.Literal, Tree.MethDecl, Tree.ModDecl, Tree.ModDirective, Tree.ModExports, Tree.ModOpens, Tree.ModProvides, Tree.ModRequires, Tree.ModUses, Tree.Paren, Tree.PkgDecl, Tree.PrimTy, Tree.TyDecl, Tree.TyParam, Tree.Type, Tree.TypeCast, Tree.Unary, Tree.VarDecl, Tree.Visitor<I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object>, Tree.VoidTy, Tree.WildTy
-
-
Constructor Summary
Constructors Constructor Description Literal(int position, TurbineConstantTypeKind tykind, Const value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object>
Oaccept(Tree.Visitor<I,O> visitor, I input)Tree.Kindkind()TurbineConstantTypeKindtykind()Constvalue()
-
-
-
Constructor Detail
-
Literal
public Literal(int position, TurbineConstantTypeKind tykind, Const value)
-
-
Method Detail
-
accept
public <I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object> O accept(Tree.Visitor<I,O> visitor, I input)
-
tykind
public TurbineConstantTypeKind tykind()
-
value
public Const value()
-
-