|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.jape.PatternElement
gate.jape.ComplexPatternElement
public class ComplexPatternElement
A pattern element enclosed in round brackets. Has a ConstraintGroup, optional Kleene operator and optional binding name.
| Field Summary | |
|---|---|
private String |
bindingName
Binding name (may be null). |
private ConstraintGroup |
constraintGroup
The recursive definition of what pattern elements make up this one. |
private KleeneOperator |
kleeneOp
Kleene operator (defaults to none). |
| Fields inherited from class gate.jape.PatternElement |
|---|
matchHistory |
| 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 | |
|---|---|
ComplexPatternElement(ConstraintGroup constraintGroup,
int minOccurance,
int maxOccurance,
String bindingName)
Construction from ConstraintGroup, min and max legal occurance limits, and binding name. |
|
ComplexPatternElement(ConstraintGroup constraintGroup,
int kleeneOp,
String bindingName)
Deprecated. Use ComplexPatternElement(ConstraintGroup, KleeneOperator.Type, String) instead. |
|
ComplexPatternElement(ConstraintGroup constraintGroup,
KleeneOperator.Type kleeneType,
String bindingName)
|
|
ComplexPatternElement(ConstraintGroup constraintGroup,
KleeneOperator kleeneOp,
String bindingName)
|
|
| 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<ComplexPatternElement> |
getCPEs()
Get a list of CPEs that we contain. |
KleeneOperator |
getKleeneOp()
|
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 |
| Field Detail |
|---|
private KleeneOperator kleeneOp
private String bindingName
private ConstraintGroup constraintGroup
| Constructor Detail |
|---|
public ComplexPatternElement(ConstraintGroup constraintGroup,
int kleeneOp,
String bindingName)
ComplexPatternElement(ConstraintGroup, KleeneOperator.Type, String) instead.
public ComplexPatternElement(ConstraintGroup constraintGroup,
KleeneOperator.Type kleeneType,
String bindingName)
public ComplexPatternElement(ConstraintGroup constraintGroup,
KleeneOperator kleeneOp,
String bindingName)
public ComplexPatternElement(ConstraintGroup constraintGroup,
int minOccurance,
int maxOccurance,
String bindingName)
| Method Detail |
|---|
public String getBindingName()
protected Iterator<ComplexPatternElement> getCPEs()
public Object clone()
PatternElement.clone()
clone in class PatternElementpublic void finish()
finish in class PatternElementpublic String toString()
toString in class Objectpublic String toString(String pad)
toString in class PatternElementpublic KleeneOperator getKleeneOp()
public ConstraintGroup getConstraintGroup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||