Package org.codehaus.janino
Class Java.PrimitiveType
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.Atom
-
- org.codehaus.janino.Java.Type
-
- org.codehaus.janino.Java.PrimitiveType
-
- All Implemented Interfaces:
Java.Locatable
- Enclosing class:
- Java
public static final class Java.PrimitiveType extends Java.Type
Representation of a JLS7 4.2 "primitive type", i.e a primitive type "usage", which has a location.
-
-
Field Summary
Fields Modifier and Type Field Description Java.Primitive
primitive
One ofJava.Primitive.VOID
,Java.Primitive.BYTE
and consorts.-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Constructor Description PrimitiveType(Location location, Java.Primitive primitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,EX extends java.lang.Throwable>
Raccept(Visitor.AtomVisitor<R,EX> visitor)
<R,EX extends java.lang.Throwable>
Raccept(Visitor.TypeVisitor<R,EX> 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
-
primitive
public final Java.Primitive primitive
One ofJava.Primitive.VOID
,Java.Primitive.BYTE
and consorts.
-
-
Constructor Detail
-
PrimitiveType
public PrimitiveType(Location location, Java.Primitive primitive)
-
-
Method Detail
-
accept
@Nullable public <R,EX extends java.lang.Throwable> R accept(Visitor.TypeVisitor<R,EX> visitor) throws EX extends java.lang.Throwable
Description copied from class:Java.Type
-
accept
@Nullable public <R,EX extends java.lang.Throwable> R accept(Visitor.AtomVisitor<R,EX> visitor) throws EX extends java.lang.Throwable
Description copied from class:Java.Atom
-
-