|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.jape.PatternElement
public abstract class PatternElement
Superclass of the various types of pattern element, and of ConstraintGroup. Inherits from Matcher, providing matches and reset. Provides access to the annotations that are cached by subclasses, and multilevel rollback of those caches. Stores the match history.
Field Summary | |
---|---|
protected Stack |
matchHistory
Match history stack, for use in rollback. |
Fields inherited from interface gate.jape.JapeConstants |
---|
ALL_STYLE, 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 | |
---|---|
PatternElement()
Anonymous construction. |
Method Summary | |
---|---|
Object |
clone()
Cloning for processing of macro references. |
abstract AnnotationSet |
getMatchedAnnots()
Access to the annotations that have been matched. |
void |
reset()
Reset: clear annotation caches etc. |
abstract void |
rollback(int arity)
Multilevel rollback of annotation caches. |
abstract String |
toString(String pad)
Create a string representation of the object with padding. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gate.jape.Matcher |
---|
finish, matches |
Field Detail |
---|
protected Stack matchHistory
Constructor Detail |
---|
public PatternElement()
Method Detail |
---|
public Object clone()
clone
in class Object
public abstract AnnotationSet getMatchedAnnots()
public abstract void rollback(int arity)
public void reset()
reset
in interface Matcher
public abstract String toString(String pad)
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |