Class Java.VariableDeclarator

  • All Implemented Interfaces:
    Java.Locatable
    Enclosing class:
    Java

    public static final class Java.VariableDeclarator
    extends Java.Located
    Used by FieldDeclaration and LocalVariableDeclarationStatement.
    • Field Detail

      • name

        public final java.lang.String name
        The name of this field or local variable.
      • brackets

        public final int brackets
        The number of "[]"s after the name.
    • Method Detail

      • setEnclosingScope

        public void setEnclosingScope​(Java.Scope s)
        Sets the immediately enclosing scope for the (optional) initializer.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object