public class BackReference extends Term
Corresponds to the goal symbol DecimalEscape in the ECMAScript RegExp syntax.
Currently not implemented in TRegex and so any use of this node type causes TRegex to bail out.
FLAG_CHARACTER_CLASS_WAS_SINGLE_CHAR, FLAG_EMPTY_GUARD, FLAG_GROUP_EXPANDED_QUANTIFIER, FLAG_GROUP_LOOP, FLAG_HAS_LOOPS, FLAG_LOOK_AROUND_NEGATED
Modifier and Type | Method and Description |
---|---|
BackReference |
copy(RegexAST ast,
boolean recursive)
Copy this node, in one of the following ways:
if
recursive is true , recursively copy this subtree. |
boolean |
equalsSemantic(RegexASTNode obj,
boolean ignoreQuantifier) |
int |
getGroupNr() |
JsonValue |
toJson() |
String |
toString() |
equalsSemantic, getQuantifier, getSeqIndex, getSubTreeParent, hasQuantifier, quantifierToString, setQuantifier, setSeqIndex
astNodeId, endsWithDollar, getId, getMaxPath, getMinPath, getParent, hasEmptyGuard, hasLoops, idInitialized, incMaxPath, incMaxPath, incMinPath, incMinPath, isDead, isFlagSet, isInLookAheadAssertion, isInLookBehindAssertion, isPrefix, markAsDead, setEmptyGuard, setEndsWithDollar, setEndsWithDollar, setFlag, setFlag, setHasLoops, setHasLoops, setId, setMaxPath, setMinPath, setParent, setPrefix, setStartsWithCaret, setStartsWithCaret, startsWithCaret, toJson, toStringWithID
public BackReference copy(RegexAST ast, boolean recursive)
RegexASTNode
recursive
is true
, recursively copy this subtree. This method should
be used instead of CopyVisitor
if the copying process is required to be thread-safe.
public int getGroupNr()
public boolean equalsSemantic(RegexASTNode obj, boolean ignoreQuantifier)
equalsSemantic
in class Term
public JsonValue toJson()