Object-oriented Parser System
v3.6

oops3
Class Observe.Adapter

Object
  extended by Observe.Adapter
All Implemented Interfaces:
Observe.Observer
Enclosing class:
Observe

public abstract static class Observe.Adapter
extends Object
implements Observe.Observer

implements an observer that does nothing. init must be implemented by a subclass.


Constructor Summary
Observe.Adapter()
           
 
Method Summary
 void reduce(int position)
          called when a rule is completed: does nothing.
 void shift(int position, Observe.Observer sender)
          called when a Parser.Nonterminal is accepted: does nothing.
 void shift(int position, Parser.Literal sender)
          called when a Parser.Literal is accepted: does nothing.
 void shift(int position, Parser.Token sender)
          called when a Parser.Token is accepted: does nothing.
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Observe.Observer
init
 

Constructor Detail

Observe.Adapter

public Observe.Adapter()
Method Detail

shift

public void shift(int position,
                  Parser.Literal sender)
called when a Parser.Literal is accepted: does nothing.

Specified by:
shift in interface Observe.Observer

shift

public void shift(int position,
                  Parser.Token sender)
called when a Parser.Token is accepted: does nothing.

Specified by:
shift in interface Observe.Observer

shift

public void shift(int position,
                  Observe.Observer sender)
called when a Parser.Nonterminal is accepted: does nothing.

Specified by:
shift in interface Observe.Observer
sender - the observer that watched the nonterminal.

reduce

public void reduce(int position)
called when a rule is completed: does nothing.

Specified by:
reduce in interface Observe.Observer

toString

public String toString()
Overrides:
toString in class Object


(c) 2008 Axel T. Schreiner