Jet.Parser
Class ActiveEdge

java.lang.Object
  extended byJet.Parser.Edge
      extended byJet.Parser.ActiveEdge

public class ActiveEdge
extends Edge

the representation of an active edge (incompletely matched production) as used by the top-down active chart parser.


Field Summary
 
Fields inherited from class Jet.Parser.Edge
category, children, end, start
 
Constructor Summary
ActiveEdge(java.lang.Object category, java.util.Vector rhs, ParseTreeNode[] children, int start, int end)
           
 
Method Summary
 java.lang.String needs()
          returns the next unmatched element in the production.
 java.lang.String toString()
          returns a printable form of the edge, in the form A -> B .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveEdge

public ActiveEdge(java.lang.Object category,
                  java.util.Vector rhs,
                  ParseTreeNode[] children,
                  int start,
                  int end)
Method Detail

needs

public java.lang.String needs()
returns the next unmatched element in the production. I.e., if the edge is A -> B . C D, needs returns C.


toString

public java.lang.String toString()
returns a printable form of the edge, in the form A -> B . C D. Here A is the symbol being expanded, B C D constitutes the right-hand side of the production, and so far symbol B has been matched.