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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.tripi.asp.BlockNode
All Implemented Interfaces:
Node

public class BlockNode
extends java.lang.Object
implements Node

BlockNode contains a block of ASP code, one or more lines of code.

Version:
0.9

Field Summary
(package private)  java.util.Vector blocks
          List of blocks
private  org.apache.log4j.Category DBG
          Debugging code
(package private)  java.util.Vector linenos
          List of debugging contexts corresponding to blocks
 
Constructor Summary
BlockNode()
          Constructor, starting with no lines of code.
 
Method Summary
 void append(java.lang.Object obj, DebugContext lineno)
          Appends a line of code with the debugging context.
 void dump()
          Dumps the contents of this block.
 java.lang.Object execute(AspContext context)
          Executes this block of code.
 Node getBlock(int index)
          Gets the block at the specified index.
 void prepare(AspContext context)
          Prepares this node for execution.
 int size()
          Obtains the number of blocks in this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DBG

private org.apache.log4j.Category DBG
Debugging code


blocks

java.util.Vector blocks
List of blocks


linenos

java.util.Vector linenos
List of debugging contexts corresponding to blocks

Constructor Detail

BlockNode

public BlockNode()
Constructor, starting with no lines of code.

Method Detail

size

public int size()
Obtains the number of blocks in this object.


getBlock

public Node getBlock(int index)
Gets the block at the specified index.


append

public void append(java.lang.Object obj,
                   DebugContext lineno)
Appends a line of code with the debugging context.


dump

public void dump()
          throws AspException
Dumps the contents of this block.

Specified by:
dump in interface Node

prepare

public void prepare(AspContext context)
             throws AspException
Prepares this node for execution.

Specified by:
prepare in interface Node

execute

public java.lang.Object execute(AspContext context)
                         throws AspException
Executes this block of code.

Specified by:
execute in interface Node