org.apache.velocity.runtime.parser.node
public interface Node extends Renderable
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
childrenAccept(ParserVisitor visitor,
java.lang.Object data) |
boolean |
evaluate(InternalContextAdapter context) |
java.lang.Object |
execute(java.lang.Object o,
InternalContextAdapter context) |
int |
getColumn() |
Token |
getFirstToken() |
int |
getInfo() |
Token |
getLastToken() |
int |
getLine() |
java.lang.String |
getTemplateName() |
int |
getType() |
java.lang.Object |
init(InternalContextAdapter context,
java.lang.Object data) |
boolean |
isInvalid() |
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.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.
|
java.lang.String |
literal() |
boolean |
render(InternalContextAdapter context,
java.io.Writer writer) |
void |
setInfo(int info) |
void |
setInvalid()
Mark the node as invalid.
|
java.lang.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()
java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
visitor
- data
- java.lang.Object childrenAccept(ParserVisitor visitor, java.lang.Object data)
visitor
- data
- jjtAccept(ParserVisitor, Object)
Token getFirstToken()
Token getLastToken()
int getType()
java.lang.Object init(InternalContextAdapter context, java.lang.Object data) throws TemplateInitException
context
- data
- TemplateInitException
boolean evaluate(InternalContextAdapter context) throws MethodInvocationException
context
- MethodInvocationException
java.lang.Object value(InternalContextAdapter context) throws MethodInvocationException
context
- MethodInvocationException
boolean render(InternalContextAdapter context, java.io.Writer writer) throws java.io.IOException, MethodInvocationException, ParseErrorException, ResourceNotFoundException
render
in interface Renderable
context
- writer
- java.io.IOException
MethodInvocationException
ParseErrorException
ResourceNotFoundException
java.lang.Object execute(java.lang.Object o, InternalContextAdapter context) throws MethodInvocationException
o
- context
- MethodInvocationException
void setInfo(int info)
info
- int getInfo()
java.lang.String literal()
void setInvalid()
boolean isInvalid()
int getLine()
int getColumn()
java.lang.String getTemplateName()
Copyright © 2000-2014. All Rights Reserved.