public class EllipsisCondition extends Condition
Condition.Anchor
Constructor and Description |
---|
EllipsisCondition()
Creates a referable ellipsis condition with no label
|
EllipsisCondition(boolean referable)
Creates an ellipsis condition with no label
|
EllipsisCondition(String label,
boolean referable)
Creates an ellipsis condition
|
EllipsisCondition(String label,
String context) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesMatch(RuleEvaluation e)
Returns whether this condition matches the given evaluation
at the current location of the evaluation.
|
String |
getMatchInfo(RuleEvaluation e)
Override this to return a string describing what this condition has matched in this evaluation.
|
protected boolean |
hasOpenChoicepoint(RuleEvaluation e)
Returns whether there is an open choice in this or any of its subconditions.
|
protected boolean |
isDefaultContextName() |
boolean |
isReferable()
Returns whether this ellipsis condition can be referred from a production
|
void |
setReferable(boolean referable)
Sets whether this ellipsis condition can be referred from a production or not
|
protected String |
toInnerString()
All instances of this produces a parseable string output
|
getAnchor, getContextName, getLabel, getLabelString, getMatchInfoString, getNameSpace, getParent, labelMatches, labelMatches, makeReferences, matches, matchesEndAnchor, matchesStartAnchor, postMatchHook, preMatchHook, setAnchor, setContextName, setLabel, setNameSpace, toString, traceResult
public EllipsisCondition()
public EllipsisCondition(boolean referable)
public EllipsisCondition(String label, boolean referable)
public boolean doesMatch(RuleEvaluation e)
Condition
public String getMatchInfo(RuleEvaluation e)
Condition
getMatchInfo
in class Condition
public boolean isReferable()
isReferable
in class Condition
public void setReferable(boolean referable)
protected boolean hasOpenChoicepoint(RuleEvaluation e)
Condition
hasOpenChoicepoint
in class Condition
protected boolean isDefaultContextName()
isDefaultContextName
in class Condition
protected String toInnerString()
Condition
toInnerString
in class Condition
Copyright © 2018. All rights reserved.