|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgate.jape.PatternElement
gate.jape.ComplexPatternElement
A pattern element enclosed in round brackets. Has a ConstraintGroups, Kleene operator and binding name.
| Field Summary |
| Fields inherited from class gate.jape.PatternElement |
matchHistory |
| Fields inherited from interface gate.jape.JapeConstants |
APPELT_STYLE, BRILL_STYLE, DEFAULT_PRIORITY, FIRST_STYLE, INDENT_PADDING, KLEENE_PLUS, KLEENE_QUERY, KLEENE_STAR, MULTI_SPAN_BINDING, NO_BINDING, NO_KLEENE_OP, ONCE_STYLE, SINGLE_SPAN_BINDING |
| Constructor Summary | |
ComplexPatternElement(ConstraintGroup constraintGroup,
int kleeneOp,
String bindingName)
Construction from ConstraintGroup, Kleene operator type and binding name. |
|
| Method Summary | |
Object |
clone()
Need cloning for processing of macro references. |
void |
finish()
Finish: replace dynamic data structures with Java arrays; called after parsing. |
String |
getBindingName()
Get binding name. |
ConstraintGroup |
getConstraintGroup()
|
protected Iterator |
getCPEs()
Get a list of CPEs that we contain. |
int |
getKleeneOp()
|
AnnotationSet |
getMatchedAnnots()
Access to the annotations that have been matched. |
boolean |
matches(Document doc,
int position,
MutableInteger newPosition)
Does this element match the document at this position? |
void |
reset()
Reset: clear caches of annotations matched. |
void |
rollback(int arity)
Multilevel rollback of annotation caches. |
String |
toString()
Create a string representation of the object. |
String |
toString(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 ComplexPatternElement(ConstraintGroup constraintGroup,
int kleeneOp,
String bindingName)
| Method Detail |
public String getBindingName()
protected Iterator getCPEs()
public Object clone()
PatternElement.clone()
clone in class PatternElementpublic void finish()
finish in interface Matcherpublic AnnotationSet getMatchedAnnots()
getMatchedAnnots in class PatternElementpublic void reset()
reset in interface Matcherreset in class PatternElementpublic void rollback(int arity)
rollback in class PatternElement
public boolean matches(Document doc,
int position,
MutableInteger newPosition)
matches in interface Matcherpublic String toString()
public String toString(String pad)
toString in class PatternElementpublic int getKleeneOp()
public ConstraintGroup getConstraintGroup()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||