|
||||||||||
| 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 | |
|---|---|
private static boolean |
DEBUG
Debug flag |
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 void |
finish()
Finishes the JAPE language parsing, building all the in-memory structures required. |
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 |
| Field Detail |
|---|
private static final boolean DEBUG
protected Stack matchHistory
| Constructor Detail |
|---|
public PatternElement()
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic abstract void finish()
public abstract String toString(String pad)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||