public class ArrayAccessSetExpr extends OwnableExpr
array[10] = "x"
Constructor and Description |
---|
ArrayAccessSetExpr(String variableName,
Expr elementIndex) |
ArrayAccessSetExpr(String owner,
String variableName,
Expr elementIndex) |
Modifier and Type | Method and Description |
---|---|
Expr |
getElementIndex() |
String |
getVariableName() |
void |
setVariableName(String variableName) |
void |
visit(ASTNodeVisitor v)
Visits the
ASTNode . |
getOwner, isParent, setOwner, setParent
addChild, appendFlag, becomeParentOf, getAttribute, getAttributes, getChildren, getFlags, getLineNumber, getParentNode, getSourceLine, hasAttribute, hasFlag, isMemberAccessChild, isRootNode, setAttribute, setAttributes, setChildren, setFlags, setLineNumber, setMemberAccess, setParentNode, setSourceLine, toString
public ArrayAccessSetExpr(String variableName, Expr elementIndex)
variableName
- elementIndex
- public void visit(ASTNodeVisitor v) throws EvalException
ASTNode
ASTNode
.visit
in class ASTNode
EvalException
public String getVariableName()
public void setVariableName(String variableName)
variableName
- the variableName to setpublic Expr getElementIndex()
Copyright © 2010–2015. All rights reserved.