Package org.codehaus.janino
Class Java.ArrayType
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
org.codehaus.janino.Java.Type
org.codehaus.janino.Java.ArrayType
- All Implemented Interfaces:
Java.Locatable
,Java.TypeArgument
- Enclosing class:
Java
Representation of a JLS7 10.1 "array type".
-
Field Summary
FieldsFields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
Constructors -
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
-
componentType
The (declared) type of the array's components.
-
-
Constructor Details
-
ArrayType
-
-
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
-