org.xmloperator.lambda.net.model
Interface Walk


public interface Walk

Walk node. It is used for reading back trees.


Method Summary
 int getBindIndex()
          Returns the bind index of this Walk node.
 WalkStack getWalkStack()
          Returns the WalkStack content of this Walk.
 int popDirector()
          Pops and returns a director from the director stack.
 void pushDirector(int director)
          Adds a director to the director stack.
 void returnToFactory()
          Return this to its Factory.
 

Method Detail

returnToFactory

public void returnToFactory()
Return this to its Factory.

Post-condition: this is no more usable.


getBindIndex

public int getBindIndex()
Returns the bind index of this Walk node.

Returns:
the bind index of this Walk node.

pushDirector

public void pushDirector(int director)
Adds a director to the director stack.

Parameters:
director - a director. Values: 1 or 2.
Throws:
java.lang.IllegalArgumentException - if the given director is neither 1 nor 2.

popDirector

public int popDirector()
Pops and returns a director from the director stack.

Returns:
the poped director.
Throws:
java.lang.IllegalStateException - if the director stack is empty.

getWalkStack

public WalkStack getWalkStack()
Returns the WalkStack content of this Walk.

Returns:
the WalkStack content of this Walk.