org.apache.velocity.runtime.parser.node
Interface Node
- All Superinterfaces:
- Node
- All Known Implementing Classes:
- SimpleNode
- public interface Node
- extends Node
All AST nodes must implement this interface. It provides basic
machinery for constructing the parent and child relationships
between nodes.
getChild
public Node getChild(int i)
- This method returns a child node. The children are numbered
from zero, left to right.
childrenAccept
public Object childrenAccept(ParserVisitor visitor,
Object data)
getFirstToken
public Token getFirstToken()
getLastToken
public Token getLastToken()
getType
public int getType()
init
public Object init(InternalContextAdapter context,
Object data)
throws Exception
- Throws:
Exception
evaluate
public boolean evaluate(InternalContextAdapter context)
throws MethodInvocationException
- Throws:
MethodInvocationException
value
public Object value(InternalContextAdapter context)
throws MethodInvocationException
- Throws:
MethodInvocationException
render
public boolean render(InternalContextAdapter context,
Writer writer)
throws IOException,
MethodInvocationException,
ParseErrorException,
ResourceNotFoundException
- Throws:
IOException
MethodInvocationException
ParseErrorException
ResourceNotFoundException
execute
public Object execute(Object o,
InternalContextAdapter context)
throws MethodInvocationException
- Throws:
MethodInvocationException
setInfo
public void setInfo(int info)
getInfo
public int getInfo()
literal
public String literal()
setInvalid
public void setInvalid()
isInvalid
public boolean isInvalid()
getLine
public int getLine()
getColumn
public int getColumn()
Copyright ? 2000-2007 Apache Software Foundation. All Rights Reserved.