org.quattor.pan.statement
Class ConstantVariableStatement

java.lang.Object
  extended by org.quattor.pan.statement.Statement
      extended by org.quattor.pan.statement.VariableStatement
          extended by org.quattor.pan.statement.ConstantVariableStatement
Direct Known Subclasses:
ConstantLoadpathStatement

public class ConstantVariableStatement
extends VariableStatement

Sets a global variable to a constant or computed value.

Author:
loomis

Field Summary
protected  Element value
           
 
Fields inherited from class org.quattor.pan.statement.VariableStatement
conditional, modifiable, name
 
Constructor Summary
protected ConstantVariableStatement(SourceRange sourceRange, java.lang.String name, Element value, boolean conditional, boolean modifiable)
           
 
Method Summary
 void execute(Context context)
          Execute this Statement within the given context.
 java.lang.String toString()
           
 
Methods inherited from class org.quattor.pan.statement.VariableStatement
convertLoadpathVariable, getInstance
 
Methods inherited from class org.quattor.pan.statement.Statement
getSourceRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected final Element value
Constructor Detail

ConstantVariableStatement

protected ConstantVariableStatement(SourceRange sourceRange,
                                    java.lang.String name,
                                    Element value,
                                    boolean conditional,
                                    boolean modifiable)
                             throws SyntaxException
Throws:
SyntaxException
Method Detail

execute

public void execute(Context context)
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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 Quattor. All Rights Reserved.