|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.jape.LeftHandSide
public class LeftHandSide
The LHS of a CPSL rule. The pattern part. Has a ConstraintGroup and binding information that associates labels with ComplexPatternElements. Provides the Matcher interface.
| Field Summary | |
|---|---|
private HashMap |
bindingTable
Mapping of binding names to ComplexPatternElements |
private ConstraintGroup |
constraintGroup
The constraint group making up this LHS. |
private static boolean |
DEBUG
Debug flag |
| 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 | |
|---|---|
LeftHandSide(ConstraintGroup constraintGroup)
Construction from a ConstraintGroup |
|
| Method Summary | |
|---|---|
void |
addBinding(String bindingName,
ComplexPatternElement binding,
HashSet bindingNameSet,
boolean macroRef)
Add a binding record. |
void |
finish()
Finish: replace dynamic data structures with Java arrays; called after parsing. |
ConstraintGroup |
getConstraintGroup()
Get the constraint group |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final boolean DEBUG
private ConstraintGroup constraintGroup
private HashMap bindingTable
| Constructor Detail |
|---|
public LeftHandSide(ConstraintGroup constraintGroup)
| Method Detail |
|---|
public void addBinding(String bindingName,
ComplexPatternElement binding,
HashSet bindingNameSet,
boolean macroRef)
throws JapeException
JapeExceptionpublic void finish()
public String toString()
toString in class Objectpublic String toString(String pad)
public ConstraintGroup getConstraintGroup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||