Package com.google.turbine.tree
Class Tree.VarDecl
- java.lang.Object
-
- com.google.turbine.tree.Tree
-
- com.google.turbine.tree.Tree.VarDecl
-
-
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 VarDecl(int position, java.util.Set<TurbineModifier> mods, com.google.common.collect.ImmutableList<Tree.Anno> annos, Tree ty, Tree.Ident name, java.util.Optional<Tree.Expression> init, @Nullable java.lang.String javadoc)
-
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)com.google.common.collect.ImmutableList<Tree.Anno>annos()java.util.Optional<Tree.Expression>init()@Nullable java.lang.Stringjavadoc()A javadoc comment, excluding the opening and closing delimiters but including all interior characters and whitespace.Tree.Kindkind()com.google.common.collect.ImmutableSet<TurbineModifier>mods()Tree.Identname()Treety()
-
-
-
Constructor Detail
-
VarDecl
public VarDecl(int position, java.util.Set<TurbineModifier> mods, com.google.common.collect.ImmutableList<Tree.Anno> annos, Tree ty, Tree.Ident name, java.util.Optional<Tree.Expression> init, @Nullable java.lang.String javadoc)
-
-
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)
-
mods
public com.google.common.collect.ImmutableSet<TurbineModifier> mods()
-
annos
public com.google.common.collect.ImmutableList<Tree.Anno> annos()
-
ty
public Tree ty()
-
name
public Tree.Ident name()
-
init
public java.util.Optional<Tree.Expression> init()
-
javadoc
public @Nullable java.lang.String javadoc()
A javadoc comment, excluding the opening and closing delimiters but including all interior characters and whitespace.
-
-