|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.runtime.directive.Directive
org.apache.velocity.runtime.directive.Stop
public class Stop
This class implements the #stop directive which allows a user to stop the merging and rendering process. The #stop directive will accept a single message argument with info about the reason for stopping.
| Field Summary |
|---|
| Fields inherited from class org.apache.velocity.runtime.directive.Directive |
|---|
rsvc |
| Fields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants |
|---|
BLOCK, LINE |
| Constructor Summary | |
|---|---|
Stop()
|
|
| Method Summary | |
|---|---|
void |
checkArgs(ArrayList<Integer> argtypes,
Token t,
String templateName)
Called by the parser to check the argument types |
String |
getName()
Return name of this directive. |
int |
getType()
Return type of this directive. |
void |
init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
How this directive is to be initialized. |
boolean |
isScopeProvided()
Since there is no processing of content, there is never a need for an internal scope. |
boolean |
render(InternalContextAdapter context,
Writer writer,
Node node)
How this directive is to be rendered |
| Methods inherited from class org.apache.velocity.runtime.directive.Directive |
|---|
getColumn, getLine, getScopeName, getTemplateName, makeScope, postRender, preRender, setLocation, setLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stop()
| Method Detail |
|---|
public String getName()
getName in class Directivepublic int getType()
getType in class Directivepublic boolean isScopeProvided()
isScopeProvided in class Directive
public void init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
Directive
init in class Directive
public boolean render(InternalContextAdapter context,
Writer writer,
Node node)
Directive
render in class Directive
public void checkArgs(ArrayList<Integer> argtypes,
Token t,
String templateName)
throws ParseException
checkArgs in class Directiveargtypes - type, Array of argument types of each argument to the directive
for example ParserTreeConstants.JJTWORDt - token of directivetemplateName - the name of the template this directive is referenced in.
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||