public abstract class AbstractAssignment extends AbstractUnaryExpression
| Modifier and Type | Field and Description | 
|---|---|
protected boolean | 
isLocal
True if the assignment assign a local variable. 
 | 
exprblock, rootSTRUCT_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. 
 | 
getVariablesclone, evalAsBoolean, evalAsFloat, evalAsInt, getParentBlock, getRoot, setParentBlock, setRootequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExpression, setExpressionclone, eval, evalAsBoolean, evalAsFloat, evalAsInt, getExpressionName, getLocalVariable, getLocalVariables, getParentBlock, getResultStructure, getResultType, getRoot, getVariable, getVariable, getVariables, hasVariable, hasVariable, removeVariable, setParentBlockpublic 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