public class Stop extends Directive
BLOCK, LINE
Constructor and Description |
---|
Stop() |
Modifier and Type | Method and Description |
---|---|
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
|
getColumn, getLine, getScopeName, getTemplate, getTemplateName, makeScope, postRender, preRender, setLocation, setLocation
public String getName()
public int getType()
public boolean isScopeProvided()
isScopeProvided
in class Directive
public void init(RuntimeServices rs, InternalContextAdapter context, Node node)
Directive
public boolean render(InternalContextAdapter context, Writer writer, Node node)
Directive
public void checkArgs(ArrayList<Integer> argtypes, Token t, String templateName) throws ParseException
checkArgs
in class Directive
argtypes
- 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
Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.