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.


Method Summary
 Object childrenAccept(ParserVisitor visitor, Object data)
           
 boolean evaluate(InternalContextAdapter context)
           
 Object execute(Object o, InternalContextAdapter context)
           
 Node getChild(int i)
          This method returns a child node.
 int getColumn()
           
 Token getFirstToken()
           
 int getInfo()
           
 Token getLastToken()
           
 int getLine()
           
 int getType()
           
 Object init(InternalContextAdapter context, Object data)
           
 boolean isInvalid()
           
 String literal()
           
 boolean render(InternalContextAdapter context, Writer writer)
           
 void setInfo(int info)
           
 void setInvalid()
           
 Object value(InternalContextAdapter context)
           
 
Methods inherited from interface org.apache.velocity.runtime.parser.Node
jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent
 

Method Detail

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.