public abstract class AbstractAssignment extends AbstractUnaryExpression
Modifier and Type | Field and Description |
---|---|
protected boolean |
isLocal
True if the assignment assign a local variable.
|
expr
block, root
STRUCT_ARRAY, STRUCT_SCALAR, STRUCT_STRUCTURE, TYPE_BOOL, TYPE_DYNAMIC, TYPE_FLOAT, TYPE_INTEGER, TYPE_NUMERIC, TYPE_STRING, TYPE_UNDEF
Constructor and Description |
---|
AbstractAssignment(Expression root) |
Modifier and Type | Method and Description |
---|---|
void |
addLocalVariable(LocalVariable var)
Add a local variable.
|
void |
addLocalVariable(LocalVariable var,
boolean isCreated)
Add a local variable.
|
void |
addVariable(Variable var)
Add a variable.
|
void |
addVariable(Variable var,
boolean isCreated)
Add a variable.
|
boolean |
isCreated()
Return true if the assignment creates the variable.
|
boolean |
isLocal()
Return true if the assignment assign a local variable.
|
getVariables
clone, evalAsBoolean, evalAsFloat, evalAsInt, getParentBlock, getRoot, setParentBlock, setRoot
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpression, setExpression
clone, eval, evalAsBoolean, evalAsFloat, evalAsInt, getExpressionName, getLocalVariable, getLocalVariables, getParentBlock, getResultStructure, getResultType, getRoot, getVariable, getVariable, getVariables, hasVariable, hasVariable, removeVariable, setParentBlock
public AbstractAssignment(Expression root)
public boolean isLocal()
public boolean isCreated()
public void addLocalVariable(LocalVariable var)
var
- the variablepublic void addLocalVariable(LocalVariable var, boolean isCreated)
var
- the variableisCreated
- true if the assignment creates a local variablepublic void addVariable(Variable var, boolean isCreated)
var
- the variableisCreated
- true if the assignment creates a local variablepublic void addVariable(Variable var)
var
- the variableCopyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence