org.quattor.pan.statement
Class BindStatement

java.lang.Object
  extended by org.quattor.pan.statement.Statement
      extended by org.quattor.pan.statement.BindStatement

public class BindStatement
extends Statement

Associates a FullType (which may have a validation function) to a path.

Author:
loomis

Constructor Summary
BindStatement(SourceRange sourceRange, Path path, FullType fullType)
          This constructor creates a new BindStatement which associates a FullType to a particular, absolute 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 org.quattor.pan.statement.Statement
getSourceRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindStatement

public BindStatement(SourceRange sourceRange,
                     Path path,
                     FullType fullType)
              throws SyntaxException
This constructor creates a new BindStatement which associates a FullType to a particular, absolute path.

Parameters:
sourceRange - source location of this statement
path - absolute Path to associate with the FullType
fullType - type to associate with the Path
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()
Return a reasonable string representation of this statement.

Overrides:
toString in class java.lang.Object
Returns:
String representation of this BindStatement


Copyright © 2011 Quattor. All Rights Reserved.