org.extex.ocpware.compiler.state
Class StatePop

java.lang.Object
  extended by org.extex.ocpware.compiler.state.StatePop
All Implemented Interfaces:
RightState

public class StatePop
extends java.lang.Object
implements RightState

This state change instruction pops the current state from the state stack. In the input stream it is represented by a sequence of the following form:

  <pop:>   

Version:
$Revision:6007 $
Author:
Gerd Neugebauer

Constructor Summary
StatePop()
          Creates a new object.
 
Method Summary
 void compile(CompilerState cs, boolean withOffset)
          Translate a right state expression into a set of instructions.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatePop

public StatePop()
Creates a new object.

Method Detail

compile

public void compile(CompilerState cs,
                    boolean withOffset)
             throws java.io.IOException
Translate a right state expression into a set of instructions.

Specified by:
compile in interface RightState
Parameters:
cs - the compiler state
withOffset - push back instead of output
Throws:
java.io.IOException - in case of an error
StateNotDefinedException
See Also:
RightState.compile( org.extex.ocpware.compiler.parser.CompilerState, boolean)

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()