Class Tree

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Tree.Anno
      A JLS 9.7 annotation.
      static class  Tree.AnnoExpr
      An annotation in an expression context, e.g.
      static class  Tree.ArrayInit
      JLS 10.6 array initializer.
      static class  Tree.ArrTy
      An array type.
      static class  Tree.Assign
      A JLS 15.26 assignment expression.
      static class  Tree.Binary
      A JLS 15.17 - 14.24 binary expression.
      static class  Tree.ClassLiteral
      A JLS 15.8.2 class literal.
      static class  Tree.ClassTy
      A class, enum, interface, or annotation Tree.Type.
      static class  Tree.CompUnit
      A JLS 7.3 compilation unit.
      static class  Tree.Conditional
      A JLS 15.25 conditional expression.
      static class  Tree.ConstVarName
      A JLS 6.5.6.1 simple name that refers to a JSL 4.12.4 constant variable.
      static class  Tree.Expression
      An expression.
      static class  Tree.Ident
      An identifier.
      static class  Tree.ImportDecl
      A JLS 7.5 import declaration.
      static class  Tree.Kind
      Tree kind.
      static class  Tree.Literal
      A JLS 3.10 literal expression.
      static class  Tree.MethDecl
      A JLS 8.4 method declaration.
      static class  Tree.ModDecl
      A JLS 7.7 module declaration.
      static class  Tree.ModDirective
      A kind of module directive.
      static class  Tree.ModExports
      A JLS 7.7.2 module exports directive.
      static class  Tree.ModOpens
      A JLS 7.7.2 module opens directive.
      static class  Tree.ModProvides
      A JLS 7.7.4 module uses directive.
      static class  Tree.ModRequires
      A JLS 7.7.1 module requires directive.
      static class  Tree.ModUses
      A JLS 7.7.3 module uses directive.
      static class  Tree.Paren
      A JLS 15.8.5 parenthesized expression.
      static class  Tree.PkgDecl
      A JLS 7.4 package declaration.
      static class  Tree.PrimTy
      A primitive type.
      static class  Tree.TyDecl
      A JLS 7.6 or 8.5 type declaration.
      static class  Tree.TyParam
      A JLS 4.4.
      static class  Tree.Type
      A type use.
      static class  Tree.TypeCast
      A JLS 15.16 cast expression.
      static class  Tree.Unary
      A JLS 15.14 - 14.15 unary expression.
      static class  Tree.VarDecl
      A JLS 8.3 field declaration, JLS 8.4.1 formal method parameter, or JLS 14.4 variable.
      static interface  Tree.Visitor<I extends @Nullable java.lang.Object,​O extends @Nullable java.lang.Object>
      A visitor for Trees.
      static class  Tree.VoidTy
      The void type, used only for void-returning methods.
      static class  Tree.WildTy
      A wildcard type, possibly with an upper or lower bound.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Tree​(int position)  
    • Constructor Detail

      • Tree

        protected Tree​(int position)
    • Method Detail

      • 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:
        toString in class java.lang.Object