public class LookBehindAssertion extends LookAroundAssertion
Corresponds to the ( ? <= Disjunction ) and ( ? <! Disjunction ) right-hand sides of the Assertion goal symbol in the ECMAScript RegExp syntax.
Currently, the fragment of regular expressions that TRegex supports in lookbehind assertions is
limited to so-called "literal" regular expressions, consisting only of concatenations and
character classes (which generalize literal characters). The method LookAroundAssertion.isLiteral() verifies
whether the body of the assertion (RegexASTSubtreeRootNode.getGroup()) is of this form.
| Modifier and Type | Method and Description |
|---|---|
LookBehindAssertion |
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) |
String |
getPrefix() |
JsonValue |
toJson() |
endsWithCharClass, getLiteralLength, isLiteral, isNegated, isSingleCCNonCapturingLiteral, setNegated, startsWithCharClassgetAnchoredFinalState, getAnchoredInitialState, getGroup, getMatchFound, getSubTreeId, getUnAnchoredInitialState, resetVisitorIterator, setAnchoredFinalState, setAnchoredInitialState, setGroup, setMatchFound, setSubTreeId, setUnAnchoredInitialState, subTreeIdInitialized, toJson, toString, visitorGetNext, visitorHasNextgetSeqIndex, getSubTreeParent, setSeqIndexasBackReference, asCharacterClass, asGroup, asLookAheadAssertion, asLookAroundAssertion, asLookBehindAssertion, asMatchFound, asPositionAssertion, asQuantifiableTerm, asSequence, astNodeId, endsWithDollar, getFlags, getId, getMaxPath, getMinPath, getParent, hasBackReferences, hasCaptureGroups, hasCaret, hasDollar, hasEmptyGuard, hasLookAheads, hasLookBehinds, hasLoops, hasQuantifiers, idInitialized, incMaxPath, incMaxPath, incMinPath, incMinPath, isBackReference, isCaret, isCharacterClass, isDead, isDollar, isExpandedQuantifier, isFlagSet, isGroup, isInLookAheadAssertion, isInLookBehindAssertion, isLookAheadAssertion, isLookAroundAssertion, isLookBehindAssertion, isMatchFound, isPositionAssertion, isPrefix, isQuantifiableTerm, isRoot, isSequence, isSubtreeRoot, markAsDead, setDead, setEmptyGuard, setEndsWithDollar, setEndsWithDollar, setExpandedQuantifier, setFlag, setFlag, setFlags, setHasBackReferences, setHasCaptureGroups, setHasCaret, setHasCaret, setHasDollar, setHasDollar, setHasLookAheads, setHasLookBehinds, setHasLoops, setHasLoops, setHasQuantifiers, setId, setMaxPath, setMinPath, setParent, setPrefix, setStartsWithCaret, setStartsWithCaret, startsWithCaret, toStringWithIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdpublic LookBehindAssertion copy(RegexAST ast, boolean recursive)
RegexASTNoderecursive is true, recursively copy this subtree. This method should
be used instead of CopyVisitor if the copying process is required to be thread-safe.
copy in class RegexASTSubtreeRootNodeast - RegexAST the new nodes should belong to.public String getPrefix()
getPrefix in class RegexASTSubtreeRootNodepublic boolean equalsSemantic(RegexASTNode obj)
equalsSemantic in class RegexASTNodepublic JsonValue toJson()