org.quattor.pan.statement
Class VariableStatement
java.lang.Object
org.quattor.pan.statement.Statement
org.quattor.pan.statement.VariableStatement
- Direct Known Subclasses:
- ComputedVariableStatement, ConstantVariableStatement
public abstract class VariableStatement
- extends Statement
Sets a global variable to a constant or computed value.
- Author:
- loomis
|
Constructor Summary |
protected |
VariableStatement(SourceRange sourceRange,
java.lang.String name,
boolean conditional,
boolean modifiable)
Creates a VariableStatement which assign a global variable to the result
of a DML block. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected final java.lang.String name
conditional
protected final boolean conditional
modifiable
protected final boolean modifiable
VariableStatement
protected VariableStatement(SourceRange sourceRange,
java.lang.String name,
boolean conditional,
boolean modifiable)
throws SyntaxException
- Creates a VariableStatement which assign a global variable to the result
of a DML block.
- Parameters:
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)
- Throws:
SyntaxException
getInstance
public static VariableStatement getInstance(SourceRange sourceRange,
java.lang.String name,
Operation dml,
boolean conditional,
boolean modifiable)
throws SyntaxException
- Throws:
SyntaxException
convertLoadpathVariable
public static java.util.List<java.lang.String> convertLoadpathVariable(Element element)
- Convert the given element (which should be the "LOADPATH" global
variable) to a list of strings. The list can be used in the template
loading method.
- Parameters:
element - element to convert to list of string (should be "LOADPATH"
global variable)
Copyright © 2011 Quattor. All Rights Reserved.