Package org.codehaus.janino
Class Java.SimpleType
- java.lang.Object
-
- org.codehaus.janino.Java.Located
-
- org.codehaus.janino.Java.Atom
-
- org.codehaus.janino.Java.Type
-
- org.codehaus.janino.Java.SimpleType
-
- All Implemented Interfaces:
Java.Locatable
- Enclosing class:
- Java
public static final class Java.SimpleType extends Java.Type
This class is not used when code is parsed; it is intended for "programmatic" types.
-
-
Field Summary
Fields Modifier and Type Field Description IType
iType
-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Constructor Description SimpleType(Location location, IType iType)
-
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.Scope
getEnclosingScope()
void
setEnclosingScope(Java.Scope enclosingScope)
Sets the enclosing scope for this object and all subordinateJava.Type
objects.java.lang.String
toString()
-
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
-
iType
public final IType iType
-
-
Method Detail
-
setEnclosingScope
public void setEnclosingScope(Java.Scope enclosingScope)
Description copied from class:Java.Type
Sets the enclosing scope for this object and all subordinateJava.Type
objects.- Overrides:
setEnclosingScope
in classJava.Type
-
getEnclosingScope
public Java.Scope getEnclosingScope()
- Overrides:
getEnclosingScope
in classJava.Type
- Returns:
- The enclosing scope (as previously set by
Java.Type.setEnclosingScope(Java.Scope)
)
-
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
-
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
-
-