java.lang.Object
com.tripi.asp.DefaultNode
- All Implemented Interfaces:
- Node
- Direct Known Subclasses:
- AbstractFunctionNode, ArrayNode, ByRefNode, CaseNode, ConstNode, DefineIdentArrayNode, DefineIdentNode, GetFieldNode, GetIndexNode, IdentNode, JavaObjectNode, JavaObjectNode.JavaAccessorNode, JavaObjectNode.JavaFieldNode, NothingNode, NullNode, NumberNode, OnErrorNode, OptionExplicitNode, OutputNode, PackedByteArrayNode, PackedCharArrayNode, RedimNode, StringNode, ThrowExceptionNode, UndefinedValueNode, VarListNode
- public class DefaultNode
- extends java.lang.Object
- implements Node
This class contains the default implementation of the Node
interface. The default implementation is to throw the
AspNotImplemented exception for every method.
- Version:
- 0.9
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultNode
public DefaultNode()
dump
public void dump()
throws AspException
- Dumps the node representation in a textual format. Default
implementation is to throw an AspNotImplemented exception
- Specified by:
dump in interface Node
prepare
public void prepare(AspContext context)
throws AspException
- Prepares this node for execution. Default implementation is to
do nothing.
- Specified by:
prepare in interface Node
execute
public java.lang.Object execute(AspContext context)
throws AspException
- Executes this node, returning the result.
Default implementation is to return itself.
- Specified by:
execute in interface Node