org.quattor.pan.statement
Class AbsoluteAssignmentStatement

java.lang.Object
  extended by org.quattor.pan.statement.Statement
      extended by org.quattor.pan.statement.AssignmentStatement
          extended by org.quattor.pan.statement.ComputedAssignmentStatement
              extended by org.quattor.pan.statement.AbsoluteAssignmentStatement

public class AbsoluteAssignmentStatement
extends ComputedAssignmentStatement

Assigns either a constant or computed value to an absolute path. If the value is Null, then the path is deleted.

Author:
loomis

Field Summary
 
Fields inherited from class org.quattor.pan.statement.ComputedAssignmentStatement
dml
 
Fields inherited from class org.quattor.pan.statement.AssignmentStatement
conditional, modifiable, path
 
Constructor Summary
protected AbsoluteAssignmentStatement(SourceRange sourceRange, Path path, Operation dml, boolean conditional, boolean modifiable)
          This constructor creates a new AbsoluteAssignmentStatement that assigns a the result of a DML block to the associated path.
 
Method Summary
 void execute(Context context)
          Execute this Statement within the given context.
 
Methods inherited from class org.quattor.pan.statement.AssignmentStatement
createAssignmentStatement, createAssignmentStatement, isAbsolute, isRelative
 
Methods inherited from class org.quattor.pan.statement.Statement
getSourceRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsoluteAssignmentStatement

protected AbsoluteAssignmentStatement(SourceRange sourceRange,
                                      Path path,
                                      Operation dml,
                                      boolean conditional,
                                      boolean modifiable)
                               throws SyntaxException
This constructor creates a new AbsoluteAssignmentStatement that assigns a the result of a DML block to the associated path.

Parameters:
sourceRange - source location of this statement
path - machine configuration path (non-external) to modify
dml - DML block to evaluate for the path's value
conditional - 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
Method Detail

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


Copyright © 2011 Quattor. All Rights Reserved.