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 JavaTM "basic type" (obviously equaivalent to a "primitive type") (JLS 4.2).


Field Summary
static int BOOLEAN
           
static int BYTE
           
static int CHAR
           
static int DOUBLE
           
static int FLOAT
           
 int index
           
static int INT
           
static int LONG
           
static int SHORT
           
static int VOID
           
 
Constructor Summary
Java.BasicType(Location location, int index)
           
 
Method Summary
 void accept(Visitor.AtomVisitor visitor)
           
 void accept(Visitor.TypeVisitor visitor)
           
 java.lang.String toString()
           
 
Methods inherited from class org.codehaus.janino.Java.Type
getEnclosingScope, setEnclosingScope, toType
 
Methods inherited from class org.codehaus.janino.Java.Atom
toLvalue, toLvalueOrPE, toRvalue, toRvalueOrPE, toTypeOrPE
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwParseException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

index

public int index

VOID

public static final int VOID
See Also:
Constant Field Values

BYTE

public static final int BYTE
See Also:
Constant Field Values

SHORT

public static final int SHORT
See Also:
Constant Field Values

CHAR

public static final int CHAR
See Also:
Constant Field Values

INT

public static final int INT
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

FLOAT

public static final int FLOAT
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values
Constructor Detail

Java.BasicType

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

toString

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

accept

public final void accept(Visitor.TypeVisitor visitor)
Specified by:
accept in class Java.Type

accept

public final void accept(Visitor.AtomVisitor visitor)
Specified by:
accept in class Java.Atom

janino.net