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

Quick Search    Search Deep

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

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

public class DoNode
extends java.lang.Object
implements Node

Implements the looping constructs, DO .. UNTIL, WHILE ... DO, WHILE .. WEND, etc...

Version:
0.9

Field Summary
(package private)  boolean checkAfter
          Check expression after loop?
(package private)  BlockNode code
          Block to execute
(package private)  boolean doUntil
          DO ..
(package private)  Node expr
          Expression to test
 
Constructor Summary
DoNode(Node expr, BlockNode code, boolean checkAfter, boolean doUntil)
          Constructor.
 
Method Summary
 void dump()
          Dumps this node.
 java.lang.Object execute(AspContext context)
          Executes this node
 void prepare(AspContext context)
          Prepares this node for executtion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expr

Node expr
Expression to test


code

BlockNode code
Block to execute


checkAfter

boolean checkAfter
Check expression after loop?


doUntil

boolean doUntil
DO .. UNTIL, or DO .. WHILE?

Constructor Detail

DoNode

public DoNode(Node expr,
              BlockNode code,
              boolean checkAfter,
              boolean doUntil)
Constructor.

Method Detail

dump

public void dump()
          throws AspException
Dumps this node.

Specified by:
dump in interface Node

prepare

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

Specified by:
prepare in interface Node

execute

public java.lang.Object execute(AspContext context)
                         throws AspException
Executes this node

Specified by:
execute in interface Node