|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This file describes the interface between the Velocity code and the JavaCC generated code.
Method Summary | |
Object |
childrenAccept(ParserVisitor visitor,
Object data)
|
boolean |
evaluate(InternalContextAdapter context)
|
Object |
execute(Object o,
InternalContextAdapter context)
|
int |
getColumn()
|
Token |
getFirstToken()
|
int |
getInfo()
|
Token |
getLastToken()
|
int |
getLine()
|
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)
|
Method Detail |
public void jjtOpen()
public void jjtClose()
public void jjtSetParent(Node n)
n
- public Node jjtGetParent()
public void jjtAddChild(Node n, int i)
n
- i
- public Node jjtGetChild(int i)
i
-
public int jjtGetNumChildren()
public Object jjtAccept(ParserVisitor visitor, Object data)
visitor
- data
-
public Object childrenAccept(ParserVisitor visitor, Object data)
visitor
- data
-
jjtAccept(ParserVisitor, Object)
public Token getFirstToken()
public Token getLastToken()
public int getType()
public Object init(InternalContextAdapter context, Object data) throws TemplateInitException
context
- data
-
TemplateInitException
public boolean evaluate(InternalContextAdapter context) throws MethodInvocationException
context
-
MethodInvocationException
public Object value(InternalContextAdapter context) throws MethodInvocationException
context
-
MethodInvocationException
public boolean render(InternalContextAdapter context, Writer writer) throws IOException, MethodInvocationException, ParseErrorException, ResourceNotFoundException
render
in interface Renderable
context
- writer
-
IOException
MethodInvocationException
ParseErrorException
ResourceNotFoundException
public Object execute(Object o, InternalContextAdapter context) throws MethodInvocationException
o
- context
-
MethodInvocationException
public void setInfo(int info)
info
- public int getInfo()
public String literal()
public void setInvalid()
public boolean isInvalid()
public int getLine()
public int getColumn()
public String getTemplateName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |