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, setLocationpublic String getName()
public int getType()
public boolean isScopeProvided()
isScopeProvided in class Directivepublic void init(RuntimeServices rs, InternalContextAdapter context, Node node)
Directivepublic boolean render(InternalContextAdapter context, Writer writer, Node node)
Directivepublic 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.ParseExceptionCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.