public class Stop extends Directive
Modifier and Type | Field and Description |
---|---|
private boolean |
hasMessage |
private static StopCommand |
STOP_ALL |
BLOCK, LINE
Constructor and Description |
---|
Stop() |
Modifier and Type | Method and Description |
---|---|
void |
checkArgs(java.util.ArrayList<java.lang.Integer> argtypes,
Token t,
java.lang.String templateName)
Called by the parser to check the argument types
|
java.lang.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,
java.io.Writer writer,
Node node)
How this directive is to be rendered
|
getColumn, getLine, getScopeName, getTemplate, getTemplateName, makeScope, postRender, preRender, setLocation, setLocation
private static final StopCommand STOP_ALL
private boolean hasMessage
public java.lang.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, java.io.Writer writer, Node node)
Directive
public void checkArgs(java.util.ArrayList<java.lang.Integer> argtypes, Token t, java.lang.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