Jet.Pat
Class GetStartPatternElement

java.lang.Object
  extended byJet.Pat.PatternElement
      extended byJet.Pat.AtomicPatternElement
          extended byJet.Pat.GetStartPatternElement

public class GetStartPatternElement
extends AtomicPatternElement

a pattern element, in the graph representation of a pattern, which binds a variable to the current position in the document being matched. A SpanBindingPatternElement, in the pattern and rule representation of a pattern set, is translated into a GetStartPatternElement and a GetEndPatternElement in the pattern graph representation.


Constructor Summary
GetStartPatternElement(Variable v)
          creates a GetStartPatternElement binding variable v.
 
Method Summary
 void eval(Document doc, int posn, java.lang.String tokenString, java.util.HashMap bindings, PatternApplication patap, PatternNode node)
           
 java.lang.String toString()
           
 
Methods inherited from class Jet.Pat.AtomicPatternElement
toGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetStartPatternElement

public GetStartPatternElement(Variable v)
creates a GetStartPatternElement binding variable v.

Method Detail

toString

public java.lang.String toString()
Specified by:
toString in class PatternElement

eval

public void eval(Document doc,
                 int posn,
                 java.lang.String tokenString,
                 java.util.HashMap bindings,
                 PatternApplication patap,
                 PatternNode node)
Specified by:
eval in class AtomicPatternElement