public interface Node extends Renderable
Modifier and Type | Method and Description |
---|---|
Object |
childrenAccept(ParserVisitor visitor,
Object data) |
boolean |
evaluate(InternalContextAdapter context) |
Object |
execute(Object o,
InternalContextAdapter context) |
int |
getColumn() |
Token |
getFirstToken() |
String |
getFirstTokenImage() |
int |
getInfo() |
Token |
getLastToken() |
String |
getLastTokenImage() |
int |
getLine() |
Parser |
getParser() |
Template |
getTemplate() |
String |
getTemplateName() |
int |
getType() |
Object |
init(InternalContextAdapter context,
Object data) |
boolean |
isInvalid() |
Object |
jjtAccept(ParserVisitor visitor,
Object data) |
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's
list of children.
|
void |
jjtClose()
This method is called after all the child nodes have been
added.
|
Node |
jjtGetChild(int i)
This method returns a child node.
|
int |
jjtGetNumChildren()
Return the number of children the node has.
|
Node |
jjtGetParent() |
void |
jjtOpen()
This method is called after the node has been made the current
node.
|
void |
jjtSetParent(Node n)
This pair of methods are used to inform the node of its
parent.
|
String |
literal() |
boolean |
render(InternalContextAdapter context,
Writer writer) |
void |
setInfo(int info) |
void |
setInvalid()
Mark the node as invalid.
|
Object |
value(InternalContextAdapter context) |
void jjtOpen()
void jjtClose()
void jjtSetParent(Node n)
n
- Node jjtGetParent()
void jjtAddChild(Node n, int i)
n
- i
- Node jjtGetChild(int i)
i
- int jjtGetNumChildren()
Object jjtAccept(ParserVisitor visitor, Object data)
visitor
- data
- Object childrenAccept(ParserVisitor visitor, Object data)
visitor
- data
- jjtAccept(ParserVisitor, Object)
Token getFirstToken()
Token getLastToken()
int getType()
Object init(InternalContextAdapter context, Object data) throws TemplateInitException
context
- data
- TemplateInitException
boolean evaluate(InternalContextAdapter context) throws MethodInvocationException
context
- MethodInvocationException
Object value(InternalContextAdapter context) throws MethodInvocationException
context
- MethodInvocationException
boolean render(InternalContextAdapter context, Writer writer) throws IOException, MethodInvocationException, ParseErrorException, ResourceNotFoundException
render
in interface Renderable
context
- writer
- IOException
MethodInvocationException
ParseErrorException
ResourceNotFoundException
Object execute(Object o, InternalContextAdapter context) throws MethodInvocationException
o
- context
- MethodInvocationException
void setInfo(int info)
info
- int getInfo()
String literal()
void setInvalid()
boolean isInvalid()
int getLine()
int getColumn()
String getTemplateName()
String getFirstTokenImage()
String getLastTokenImage()
Template getTemplate()
Parser getParser()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.