|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectast.ASTNode
ast.Expr
ast.NewArrayExpr
public class NewArrayExpr
The NewArrayExpr class represents a new array expression (constructing new arrays). It contains a type name (type) to be constructed and a size expression (size).
ASTNode
,
Expr
Field Summary | |
---|---|
protected Expr |
size
The size of the constructed array |
protected java.lang.String |
type
The type of the constructed array |
Fields inherited from class ast.ASTNode |
---|
charNum, lineNum, lineStr |
Constructor Summary | |
---|---|
NewArrayExpr(int lineNum,
java.lang.String type,
Expr size)
NewArrayExpr constructor |
Method Summary | |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method |
Expr |
getSize()
Get the construction size expression |
java.lang.String |
getType()
Get the type of the constructed array |
Methods inherited from class ast.Expr |
---|
getExprType, setExprType |
Methods inherited from class ast.ASTNode |
---|
getLineNum |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String type
protected Expr size
Constructor Detail |
---|
public NewArrayExpr(int lineNum, java.lang.String type, Expr size)
lineNum
- source line number corresponding to this AST nodetype
- the type of the constructed arraysize
- the size of the constructed arrayMethod Detail |
---|
public java.lang.String getType()
public Expr getSize()
public java.lang.Object accept(visitor.Visitor v, java.lang.Object o)
accept
in class Expr
v
- visitor objecto
- object to pass down
Visitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |