|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ofai.gate.jape.PatternElement
at.ofai.gate.jape.ConstraintGroup
public class ConstraintGroup
A sequence of conjunctions of PatternElement that form a disjunction.
Field Summary |
---|
Fields inherited from class at.ofai.gate.jape.PatternElement |
---|
matchHistory |
Fields inherited from interface at.ofai.gate.jape.JapeConstants |
---|
APPELT_STYLE, BRILL_STYLE, DEFAULT_PRIORITY, EQUAL, FIRST_STYLE, GREATER, GREATER_OR_EQUAL, INDENT_PADDING, KLEENE_PLUS, KLEENE_QUERY, KLEENE_STAR, LESSER, LESSER_OR_EQUAL, MULTI_SPAN_BINDING, NO_BINDING, NO_KLEENE_OP, NOT_EQUAL, NOT_REGEXP, ONCE_STYLE, REGEXP, SINGLE_SPAN_BINDING |
Constructor Summary | |
---|---|
ConstraintGroup()
Anonymous constructor. |
Method Summary | |
---|---|
void |
addPatternElement(PatternElement pe)
Add an element to the current conjunction. |
java.lang.Object |
clone()
Need cloning for processing of macro references. |
void |
createDisjunction()
Make a new disjunction at this point. |
void |
finish()
Finish: replace dynamic data structures with Java arrays; called after parsing. |
protected java.util.Iterator |
getCPEs()
Get an list of CPEs that we contain. |
gate.AnnotationSet |
getMatchedAnnots()
Access to the annotations that have been matched by this group. |
PatternElement[][] |
getPatternElementDisjunction()
|
boolean |
matches(gate.Document doc,
int position,
MutableInteger newPosition)
Does this element match the document at this position? |
void |
reset()
Clear all the annotations that have been matched by this group. |
void |
rollback(int arity)
Multilevel rollback of annot caches etc. |
java.lang.String |
toString()
Create a string representation of the object. |
java.lang.String |
toString(java.lang.String pad)
Create a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstraintGroup()
Method Detail |
---|
public java.lang.Object clone()
PatternElement.clone()
clone
in class PatternElement
public void createDisjunction()
public void addPatternElement(PatternElement pe)
protected java.util.Iterator getCPEs()
public void finish()
finish
in interface Matcher
public gate.AnnotationSet getMatchedAnnots()
getMatchedAnnots
in class PatternElement
public void reset()
reset
in interface Matcher
reset
in class PatternElement
public void rollback(int arity)
rollback
in class PatternElement
public boolean matches(gate.Document doc, int position, MutableInteger newPosition)
matches
in interface Matcher
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String pad)
toString
in class PatternElement
public PatternElement[][] getPatternElementDisjunction()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |