Package org.codehaus.janino
Class Java.BasicType
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.Atom
-
- org.codehaus.janino.Java.Type
-
- 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 Java™ "basic type" (obviously equaivalent to a "primitive type") (JLS 4.2).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, toLvalueOrCompileException, toRvalue, toRvalueOrCompileException, toTypeOrCompileException
-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
-
-
-
Field Detail
-
index
public final 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
-
BasicType
public BasicType(Location location, int index)
-
-
Method Detail
-
accept
public void accept(Visitor.TypeVisitor visitor)
-
accept
public void accept(Visitor.AtomVisitor visitor)
-
-