Class Java.Type
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
org.codehaus.janino.Java.Type
- All Implemented Interfaces:
Java.Locatable
- Direct Known Subclasses:
Java.ArrayType, Java.PrimitiveType, Java.ReferenceType, Java.RvalueMemberType, Java.SimpleType
- Enclosing class:
Java
Representation of a Java type.
-
Field Summary
FieldsFields inherited from class Java.Located
NOWHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <R, EX extends Throwable>
Raccept(Visitor.TypeVisitor<R, EX> visitor) voidsetEnclosingScope(Java.Scope enclosingScope) Sets the enclosing scope for this object and all subordinateJava.Typeobjects.toType()Methods inherited from class Java.Atom
accept, toLvalue, toLvalueOrCompileException, toRvalue, toRvalueOrCompileException, toString, toTypeOrCompileExceptionMethods inherited from class Java.Located
getLocation, throwCompileException
-
Field Details
-
enclosingScope
-
-
Constructor Details
-
Type
-
-
Method Details
-
setEnclosingScope
Sets the enclosing scope for this object and all subordinateJava.Typeobjects. -
getEnclosingScope
- Returns:
- The enclosing scope (as previously set by
setEnclosingScope(Java.Scope))
-
toType
-
accept
@Nullable public abstract <R, EX extends Throwable> R accept(Visitor.TypeVisitor<R, EX> visitor) throws EX- Throws:
EX
-