Package org.codehaus.janino
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 org.codehaus.janino.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.TypeArgumentVisitor
for the concreteJava.TypeArgument
type.<R,
EX extends Throwable>
Raccept
(Visitor.TypeVisitor<R, EX> visitor) void
setEnclosingScope
(Java.Scope enclosingScope) Sets the enclosing scope for this object and all subordinateJava.Type
objects.toString()
Methods inherited from class org.codehaus.janino.Java.Type
getEnclosingScope, 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 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.Type
Sets the enclosing scope for this object and all subordinateJava.Type
objects.- Specified by:
setEnclosingScope
in interfaceJava.TypeArgument
- Overrides:
setEnclosingScope
in 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.TypeArgument
Invokes the "visit...()
" method ofVisitor.TypeArgumentVisitor
for the concreteJava.TypeArgument
type.- Specified by:
accept
in interfaceJava.TypeArgument
- Throws:
EX
-