public abstract class LookAroundAssertion extends RegexASTSubtreeRootNode
See its two subclasses, LookAheadAssertion and LookBehindAssertion.
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 |
|---|---|
boolean |
isNegated()
Indicates whether this is a negative lookaround assertion (written as
(?!...)
(?<!...)) or a positive one (written as (?=...) or (?<=)). |
void |
setNegated(boolean negated) |
copy, getGroup, getMatchFound, getPrefix, resetVisitorIterator, setGroup, setMatchFound, toJson, toString, visitorGetNext, visitorHasNextequalsSemantic, equalsSemantic, getQuantifier, getSeqIndex, getSubTreeParent, hasQuantifier, quantifierToString, setQuantifier, setSeqIndexastNodeId, 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, toStringWithIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoJsonpublic boolean isNegated()
(?!...)
(?<!...)) or a positive one (written as (?=...) or (?<=)).
Positive lookaround assertions match if and only if the text around the current position matches the contents of the assertion. Negative lookaround assertions match if and only if the text around the current position does not match the contents of the assertion.
public void setNegated(boolean negated)