public class Break extends Directive
BLOCK, LINE| Constructor and Description |
|---|
Break() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkArgs(ArrayList<Integer> argtypes,
Token t,
String templateName)
Called by the parser to validate 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)
This directive throws a StopCommand which signals either
the nearest Scope or the specified scope to stop rendering
its content.
|
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)
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.ParseExceptionCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.