public class BasicPatternElement extends PatternElement implements JapeConstants, Serializable
matchHistory
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 and Description |
---|
BasicPatternElement(SinglePhaseTransducer spt)
Construction.
|
Modifier and Type | Method and Description |
---|---|
void |
addConstraint(Constraint newConstraint)
Add a constraint.
|
Object |
clone()
Need cloning for processing of macro references.
|
void |
finish()
Finish: replace dynamic data structures with Java arrays; called
after parsing.
|
Constraint[] |
getConstraints()
Get the finished Constraint objects.
|
List<Constraint> |
getUnfinishedConstraints()
Get the current list of unfinished Constraint objects.
|
boolean |
isMultiType()
Indicates whether this constraint deals with only one type of annotation or
multiple types.
|
String |
shortDesc()
Returns a short description.
|
String |
toString()
Create a string representation of the object.
|
String |
toString(String pad)
Create a string representation of the object.
|
public BasicPatternElement(SinglePhaseTransducer spt)
public Object clone()
PatternElement.clone()
clone
in class PatternElement
public void addConstraint(Constraint newConstraint)
public boolean isMultiType()
public void finish()
finish
in class PatternElement
public String toString(String pad)
toString
in class PatternElement
public List<Constraint> getUnfinishedConstraints()
public Constraint[] getConstraints()