Modifier and Type | Field and Description |
---|---|
protected Expr |
size
The size of the constructed array
|
protected java.lang.String |
type
The type of the constructed array
|
Constructor and Description |
---|
NewArrayExpr(int lineNum,
java.lang.String type,
Expr size)
NewArrayExpr constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
getExprType, setExprType
getLineNum
protected java.lang.String type
protected Expr size
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 arraypublic java.lang.String getType()
public Expr getSize()