org.quattor.pan.statement
Class AssignmentStatement

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

public abstract class AssignmentStatement
extends Statement

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  boolean conditional
           
protected  boolean modifiable
           
protected  Path path
           
 
Constructor Summary
protected AssignmentStatement(SourceRange sourceRange, Path path, boolean conditional, boolean modifiable)
           
 
Method Summary
static AssignmentStatement createAssignmentStatement(SourceRange sourceRange, Path path, Element value, boolean conditional, boolean modifiable)
           
static AssignmentStatement createAssignmentStatement(SourceRange sourceRange, Path path, Operation dml, boolean conditional, boolean modifiable)
           
 boolean isAbsolute()
           
 boolean 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

path

protected final Path path

conditional

protected final boolean conditional

modifiable

protected final boolean modifiable
Constructor Detail

AssignmentStatement

protected AssignmentStatement(SourceRange sourceRange,
                              Path path,
                              boolean conditional,
                              boolean modifiable)
                       throws SyntaxException
Throws:
SyntaxException
Method Detail

isAbsolute

public boolean isAbsolute()

isRelative

public boolean isRelative()

createAssignmentStatement

public static AssignmentStatement createAssignmentStatement(SourceRange sourceRange,
                                                            Path path,
                                                            Element value,
                                                            boolean conditional,
                                                            boolean modifiable)
                                                     throws SyntaxException
Throws:
SyntaxException

createAssignmentStatement

public static AssignmentStatement createAssignmentStatement(SourceRange sourceRange,
                                                            Path path,
                                                            Operation dml,
                                                            boolean conditional,
                                                            boolean modifiable)
                                                     throws SyntaxException
Throws:
SyntaxException


Copyright © 2011 Quattor. All Rights Reserved.