public abstract class VariableStatement extends Statement
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
conditional |
protected boolean |
modifiable |
protected String |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
VariableStatement(SourceRange sourceRange,
String name,
boolean conditional,
boolean modifiable)
Creates a VariableStatement which assign a global variable to the result
of a DML block.
|
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
convertLoadpathVariable(Element element)
Convert the given element (which should be the "LOADPATH" global
variable) to a list of strings.
|
static VariableStatement |
getInstance(SourceRange sourceRange,
String name,
Operation dml,
boolean conditional,
boolean modifiable) |
execute, getSourceRangeprotected final String name
protected final boolean conditional
protected final boolean modifiable
protected VariableStatement(SourceRange sourceRange, String name, boolean conditional, boolean modifiable) throws SyntaxException
sourceRange - source location of this statementname - name of the global variableconditional - flag indicating if this is a conditional assignmentmodifiable - flag indicating if the variable can be modified after this
statement executes (i.e. final functionality)SyntaxExceptionpublic static VariableStatement getInstance(SourceRange sourceRange, String name, Operation dml, boolean conditional, boolean modifiable) throws SyntaxException
SyntaxExceptionpublic static List<String> convertLoadpathVariable(Element element)
element - element to convert to list of string (should be "LOADPATH"
global variable)Copyright © 2014 Quattor. All Rights Reserved.