org.quattor.pan.statement
Class StaticIncludeStatement

java.lang.Object
  extended by org.quattor.pan.statement.Statement
      extended by org.quattor.pan.statement.IncludeStatement
          extended by org.quattor.pan.statement.StaticIncludeStatement

public class StaticIncludeStatement
extends IncludeStatement

Executes a template identified by a constant string.

Author:
loomis

Constructor Summary
StaticIncludeStatement(SourceRange sourceRange, java.lang.String name)
          Constructs a StaticIncludeStatement from the given template name.
 
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.IncludeStatement
executeWithNamedTemplate, newIncludeStatement
 
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

StaticIncludeStatement

public StaticIncludeStatement(SourceRange sourceRange,
                              java.lang.String name)
                       throws SyntaxException
Constructs a StaticIncludeStatement from the given template name. If the name is invalid, a SyntaxException will be thrown.

Parameters:
sourceRange - source location of this statement
name - name of the template to include
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.