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
public static final class Java.ArrayType extends Java.Type implements Java.TypeArgument
Representation of a JLS7 10.1 "array type".
-
-
Field Summary
Fields Modifier and Type Field Description Java.Type
componentType
The (declared) type of the array's components.-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
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.TypeArgumentVisitor<R,EX> visitor)
Invokes the "visit...()
" method ofVisitor.TypeArgumentVisitor
for the concreteJava.TypeArgument
type.<R,EX extends java.lang.Throwable>
Raccept(Visitor.TypeVisitor<R,EX> visitor)
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.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 Detail
-
componentType
public final Java.Type componentType
The (declared) type of the array's components.
-
-
Constructor Detail
-
ArrayType
public ArrayType(Java.Type componentType)
-
-
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.- Specified by:
setEnclosingScope
in interfaceJava.TypeArgument
- Overrides:
setEnclosingScope
in classJava.Type
-
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
-
accept
@Nullable public <R,EX extends java.lang.Throwable> R accept(Visitor.TypeArgumentVisitor<R,EX> visitor) throws EX extends java.lang.Throwable
Description copied from interface:Java.TypeArgument
Invokes the "visit...()
" method ofVisitor.TypeArgumentVisitor
for the concreteJava.TypeArgument
type.- Specified by:
accept
in interfaceJava.TypeArgument
- Throws:
EX extends java.lang.Throwable
-
-