org.quattor.pan.statement
Class ComputedAssignmentStatement

java.lang.Object
  extended by org.quattor.pan.statement.Statement
      extended by org.quattor.pan.statement.AssignmentStatement
          extended by org.quattor.pan.statement.ComputedAssignmentStatement
Direct Known Subclasses:
AbsoluteAssignmentStatement, RelativeAssignmentStatement

public abstract class ComputedAssignmentStatement
extends AssignmentStatement

Assigns a constant or computed value to a path. If the computed value is Null, then the corresponding path will be removed. This is an abstract super class for absolute and relative assignment statements.

Author:
loomis

Field Summary
protected  Operation dml
           
 
Fields inherited from class org.quattor.pan.statement.AssignmentStatement
conditional, modifiable, path
 
Constructor Summary
protected ComputedAssignmentStatement(SourceRange sourceRange, Path path, Operation dml, boolean conditional, boolean modifiable)
          This constructor creates a new AssignmentStatement which assigns a constant value (Element) to the associated path.
 
Method Summary
 
Methods inherited from class org.quattor.pan.statement.AssignmentStatement
createAssignmentStatement, createAssignmentStatement, isAbsolute, isRelative
 
Methods inherited from class org.quattor.pan.statement.Statement
execute, getSourceRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dml

protected final Operation dml
Constructor Detail

ComputedAssignmentStatement

protected ComputedAssignmentStatement(SourceRange sourceRange,
                                      Path path,
                                      Operation dml,
                                      boolean conditional,
                                      boolean modifiable)
                               throws SyntaxException
This constructor creates a new AssignmentStatement which assigns a constant value (Element) 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


Copyright © 2011 Quattor. All Rights Reserved.