org.quattor.pan.statement
Class IncludeStatement
java.lang.Object
org.quattor.pan.statement.Statement
org.quattor.pan.statement.IncludeStatement
- Direct Known Subclasses:
- ComputedIncludeStatement, StaticIncludeStatement
public abstract class IncludeStatement
- extends Statement
Executes another referenced template whose name is either a constant or
computed from a DML expression. This superclass is used to collect the common
functionality of the static and computed include statements.
- Author:
- loomis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncludeStatement
protected IncludeStatement(SourceRange sourceRange)
- Constructor which must be called by subclasses. The IncludeStatement
itself is abstract, so a direct instance of this class cannot be created.
- Parameters:
sourceRange - source location of this statement
newIncludeStatement
public static IncludeStatement newIncludeStatement(SourceRange sourceRange,
Operation dml)
throws SyntaxException
- Throws:
SyntaxException
executeWithNamedTemplate
protected void executeWithNamedTemplate(Context context,
java.lang.String name)
throws EvaluationException
- This is a utility method which performs an include from a fixed template
name. The validity of the name should be checked by the subclass; this
avoids unnecessary regular expression matching.
- Parameters:
context - evaluation context to usename - fixed template name
- Throws:
EvaluationException
Copyright © 2011 Quattor. All Rights Reserved.