Class Java.ReferenceType
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
org.codehaus.janino.Java.Type
org.codehaus.janino.Java.ReferenceType
- All Implemented Interfaces:
Java.Locatable, Java.TypeArgument
- Enclosing class:
Java
Representation of a JLS7 4.3 reference type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Java.Annotation[]The "type annotations" of this type, see JLS9, 9.7.4.final String[]The list of (dot-separated) identifiers that pose the reference type, e.g.final Java.TypeArgument[]The optional type arguments of the reference type.Fields inherited from class Java.Located
NOWHERE -
Constructor Summary
ConstructorsConstructorDescriptionReferenceType(Location location, Java.Annotation[] annotations, String[] identifiers, Java.TypeArgument[] typeArguments) -
Method Summary
Modifier and TypeMethodDescription<R, EX extends Throwable>
Raccept(Visitor.AtomVisitor<R, EX> visitor) <R, EX extends Throwable>
Raccept(Visitor.TypeArgumentVisitor<R, EX> visitor) Invokes the "visit...()" method ofVisitor.TypeArgumentVisitorfor the concreteJava.TypeArgumenttype.<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.toString()Methods inherited from class Java.Type
getEnclosingScope, toTypeMethods inherited from class Java.Atom
toLvalue, toLvalueOrCompileException, toRvalue, toRvalueOrCompileException, toTypeOrCompileExceptionMethods inherited from class Java.Located
getLocation, throwCompileException
-
Field Details
-
annotations
The "type annotations" of this type, see JLS9, 9.7.4. -
identifiers
The list of (dot-separated) identifiers that pose the reference type, e.g. "java", "util", "Map". -
typeArguments
The optional type arguments of the reference type.
-
-
Constructor Details
-
ReferenceType
public ReferenceType(Location location, Java.Annotation[] annotations, String[] identifiers, @Nullable Java.TypeArgument[] typeArguments)
-
-
Method Details
-
setEnclosingScope
Description copied from class:Java.TypeSets the enclosing scope for this object and all subordinateJava.Typeobjects.- Specified by:
setEnclosingScopein interfaceJava.TypeArgument- Overrides:
setEnclosingScopein classJava.Type
-
toString
-
accept
Description copied from class:Java.Atom -
accept
Description copied from class:Java.Type -
accept
@Nullable public <R, EX extends Throwable> R accept(Visitor.TypeArgumentVisitor<R, EX> visitor) throws EXDescription copied from interface:Java.TypeArgumentInvokes the "visit...()" method ofVisitor.TypeArgumentVisitorfor the concreteJava.TypeArgumenttype.- Specified by:
acceptin interfaceJava.TypeArgument- Throws:
EX
-