|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
org.codehaus.janino.Java.Rvalue
org.codehaus.janino.Java.NewArray
public static final class Java.NewArray
Representation of a JLS7 15.10 'array creation expression'.
| Field Summary | |
|---|---|
Java.Rvalue[] |
dimExprs
The sizes of the first dimensions to instantiate. |
int |
dims
The count of additional dimensions that the array should have. |
Java.Type |
type
The component type of the ( dimExprs.length + dims)-dimensional array to
instantiate. |
| Fields inherited from class org.codehaus.janino.Java.Located |
|---|
NOWHERE |
| Constructor Summary | |
|---|---|
Java.NewArray(Location location,
Java.Type type,
Java.Rvalue[] dimExprs,
int dims)
Create a new array with dimension dimExprs.length + dims e.g. byte[12][][] is created with new NewArray( null, Java.BasicType(NULL, Java.BasicType.BYTE), new Rvalue[] { new Java.Literal(null, Integer.valueOf(12) }, 2 ) |
|
| Method Summary | |
|---|---|
void |
accept(Visitor.AtomVisitor visitor)
Invokes the ' visit...()' method of Visitor.AtomVisitor for the concrete Java.Atom type. |
void |
accept(Visitor.ElementValueVisitor visitor)
Invokes the ' visit...()' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type. |
void |
accept(Visitor.RvalueVisitor visitor)
Invokes the ' visit...()' method of Visitor.RvalueVisitor for the concrete Java.Rvalue
type. |
String |
toString()
|
| Methods inherited from class org.codehaus.janino.Java.Rvalue |
|---|
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue |
| Methods inherited from class org.codehaus.janino.Java.Atom |
|---|
toLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileException |
| Methods inherited from class org.codehaus.janino.Java.Located |
|---|
getLocation, throwCompileException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.codehaus.janino.Java.Locatable |
|---|
getLocation, throwCompileException |
| Field Detail |
|---|
public final Java.Type type
dimExprs.length + dims)-dimensional array to
instantiate.
public final Java.Rvalue[] dimExprs
public final int dims
| Constructor Detail |
|---|
public Java.NewArray(Location location,
Java.Type type,
Java.Rvalue[] dimExprs,
int dims)
e.g. byte[12][][] is created with
new NewArray(
null,
Java.BasicType(NULL, Java.BasicType.BYTE),
new Rvalue[] { new Java.Literal(null, Integer.valueOf(12) },
2
)
location - the location of this elementtype - the base type of the arraydimExprs - sizes for dimensions being allocated with specific sizesdims - the number of dimensions that are not yet allocated| Method Detail |
|---|
public String toString()
toString in class Java.Atompublic void accept(Visitor.AtomVisitor visitor)
Java.Atomvisit...()' method of Visitor.AtomVisitor for the concrete Java.Atom type.
accept in class Java.Atompublic void accept(Visitor.RvalueVisitor visitor)
Java.Rvaluevisit...()' method of Visitor.RvalueVisitor for the concrete Java.Rvalue
type.
accept in class Java.Rvaluepublic void accept(Visitor.ElementValueVisitor visitor)
Java.ElementValuevisit...()' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type.
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||