janino.net

org.codehaus.janino
Class Java.VariableDeclarator

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.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 Summary
 int brackets
          The number of '[]'s after the name.
 Java.LocalVariable localVariable
          Used only if the variable declarator declares a local variable.
 String name
          The name of this field or local variable.
 Java.ArrayInitializerOrRvalue optionalInitializer
          The initializer for the variable, if any.
 
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
 
Constructor Summary
Java.VariableDeclarator(Location location, String name, int brackets, Java.ArrayInitializerOrRvalue optionalInitializer)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final String name
The name of this field or local variable.


brackets

public final int brackets
The number of '[]'s after the name.


optionalInitializer

public final Java.ArrayInitializerOrRvalue optionalInitializer
The initializer for the variable, if any.


localVariable

public Java.LocalVariable localVariable
Used only if the variable declarator declares a local variable.

Constructor Detail

Java.VariableDeclarator

public Java.VariableDeclarator(Location location,
                               String name,
                               int brackets,
                               Java.ArrayInitializerOrRvalue optionalInitializer)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

janino.net