|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ofai.gate.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 java.util.Stack |
matchHistory
Match history stack, for use in rollback. |
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 | |
---|---|
PatternElement()
Anonymous construction. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Cloning for processing of macro references. |
abstract gate.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 java.lang.String |
toString(java.lang.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 at.ofai.gate.jape.Matcher |
---|
finish, matches |
Field Detail |
---|
protected java.util.Stack matchHistory
Constructor Detail |
---|
public PatternElement()
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public abstract gate.AnnotationSet getMatchedAnnots()
public abstract void rollback(int arity)
public void reset()
reset
in interface Matcher
public abstract java.lang.String toString(java.lang.String pad)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |