janino.net

org.codehaus.janino
Class Java.BasicType

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.Java.Atom
          extended by org.codehaus.janino.Java.Type
              extended by org.codehaus.janino.Java.BasicType
All Implemented Interfaces:
Java.Locatable
Enclosing class:
Java

public static final class Java.BasicType
extends Java.Type

Representation of a JLS7 18 "basic type" (obviously equivalent to a JLS7 4.2 "primitive type").


Field Summary
static int BOOLEAN
          Value representing the BOOLEAN type.
static int BYTE
          Value representing the BYTE type.
static int CHAR
          Value representing the CHAR type.
static int DOUBLE
          Value representing the DOUBLE type.
static int FLOAT
          Value representing the FLOAT type.
 int index
          One of VOID, BYTE and consorts.
static int INT
          Value representing the INT type.
static int LONG
          Value representing the LONG type.
static int SHORT
          Value representing the SHORT type.
static int VOID
          Value representing the VOID type.
 
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
 
Constructor Summary
Java.BasicType(Location location, int index)
           
 
Method Summary
 void accept(Visitor.AtomVisitor visitor)
          Invokes the 'visit...()' method of Visitor.AtomVisitor for the concrete Java.Atom type.
 void accept(Visitor.TypeVisitor visitor)
          Invokes the 'visit...()' method of Visitor.TypeVisitor for the concrete Java.Type type.
 String toString()
           
 
Methods inherited from class org.codehaus.janino.Java.Type
getEnclosingScope, setEnclosingScope, toType
 
Methods inherited from class org.codehaus.janino.Java.Atom
toLvalue, toLvalueOrCompileException, toRvalue, toRvalueOrCompileException, toTypeOrCompileException
 
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

index

public final int index
One of VOID, BYTE and consorts.


VOID

public static final int VOID
Value representing the VOID type.

See Also:
Constant Field Values

BYTE

public static final int BYTE
Value representing the BYTE type.

See Also:
Constant Field Values

SHORT

public static final int SHORT
Value representing the SHORT type.

See Also:
Constant Field Values

CHAR

public static final int CHAR
Value representing the CHAR type.

See Also:
Constant Field Values

INT

public static final int INT
Value representing the INT type.

See Also:
Constant Field Values

LONG

public static final int LONG
Value representing the LONG type.

See Also:
Constant Field Values

FLOAT

public static final int FLOAT
Value representing the FLOAT type.

See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
Value representing the DOUBLE type.

See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
Value representing the BOOLEAN type.

See Also:
Constant Field Values
Constructor Detail

Java.BasicType

public Java.BasicType(Location location,
                      int index)
Method Detail

toString

public String toString()
Specified by:
toString in class Java.Atom

accept

public void accept(Visitor.TypeVisitor visitor)
Description copied from class: Java.Type
Invokes the 'visit...()' method of Visitor.TypeVisitor for the concrete Java.Type type.

Specified by:
accept in class Java.Type

accept

public void accept(Visitor.AtomVisitor visitor)
Description copied from class: Java.Atom
Invokes the 'visit...()' method of Visitor.AtomVisitor for the concrete Java.Atom type.

Specified by:
accept in class Java.Atom

janino.net