org.quattor.pan.statement
Class ConstantAssignmentStatement
java.lang.Object
org.quattor.pan.statement.Statement
org.quattor.pan.statement.AssignmentStatement
org.quattor.pan.statement.ConstantAssignmentStatement
public class ConstantAssignmentStatement
- extends AssignmentStatement
Assigns either a constant or computed value to an absolute path. If the value
is Null, then the path is deleted.
- Author:
- loomis
|
Constructor Summary |
protected |
ConstantAssignmentStatement(SourceRange sourceRange,
Path path,
Element value,
boolean conditional,
boolean modifiable)
This constructor creates a new AbsoluteAssignmentStatement that assigns a
constant value (Element) to the associated path. |
|
Method Summary |
void |
execute(Context context)
Execute this Statement within the given context. |
java.lang.String |
toString()
Return a reasonable string representation of this statement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
value
protected final Element value
ConstantAssignmentStatement
protected ConstantAssignmentStatement(SourceRange sourceRange,
Path path,
Element value,
boolean conditional,
boolean modifiable)
throws SyntaxException
- This constructor creates a new AbsoluteAssignmentStatement that assigns a
constant value (Element) to the associated path.
- Parameters:
sourceRange - source location of this statementpath - machine configuration path (non-external) to modifyvalue - constant Element value to assign to pathconditional - flag indicating if this is a conditional assignment (i.e. if
the value already exists, don't do anything)modifiable - flag indicating if the path can be further modified (i.e.
'final' functionality)
- Throws:
SyntaxException
execute
public void execute(Context context)
throws EvaluationException
- Description copied from class:
Statement
- Execute this Statement within the given context.
- Specified by:
execute in class Statement
- Parameters:
context - DML context to use for the evalution of this statement
- Throws:
EvaluationException
toString
public java.lang.String toString()
- Return a reasonable string representation of this statement.
- Overrides:
toString in class java.lang.Object
- Returns:
- String representation of this statement
Copyright © 2011 Quattor. All Rights Reserved.