Web Site

org.codehaus.janino
Class Java.BasicType

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.Atom
          extended byorg.codehaus.janino.Java.Type
              extended byorg.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
 String toString()
           
 void visit(org.codehaus.janino.Visitor.AtomVisitor visitor)
           
 void visit(org.codehaus.janino.Visitor.TypeVisitor visitor)
           
 
Methods inherited from class org.codehaus.janino.Java.Type
toType
 
Methods inherited from class org.codehaus.janino.Java.Atom
getLocation, throwParseException, toLvalue, toLvalueOrPE, toRvalue, toRvalueOrPE, toTypeOrPE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

index

public int index
Constructor Detail

Java.BasicType

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

toString

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

visit

public final void visit(org.codehaus.janino.Visitor.TypeVisitor visitor)
Specified by:
visit in class Java.Type

visit

public final void visit(org.codehaus.janino.Visitor.AtomVisitor visitor)
Specified by:
visit in class Java.Atom

Web Site