Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp
Class DefaultNode  view DefaultNode download DefaultNode.java

java.lang.Object
  extended bycom.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

Constructor Summary
DefaultNode()
           
 
Method Summary
 void dump()
          Dumps the node representation in a textual format.
 java.lang.Object execute(AspContext context)
          Executes this node, returning the result.
 void prepare(AspContext context)
          Prepares this node for execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNode

public DefaultNode()
Method Detail

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