Class TransitionGuard
java.lang.Object
com.oracle.truffle.regex.tregex.nfa.TransitionGuard
Transition guards introduced by bounded
Token.Quantifiers.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcreateCheckGroupMatched(int groupNumber) static longcreateCheckGroupNotMatched(int groupNumber) static longcreateEnterZeroWidth(Token.Quantifier quantifier) static longcreateEnterZeroWidthFromExit(long guard) static longcreateEscapeZeroWidth(Token.Quantifier quantifier) static longcreateExit(Token.Quantifier quantifier) static longcreateExitReset(Token.Quantifier quantifier) static longcreateExitZeroWidth(Token.Quantifier quantifier) static longcreateLoop(Token.Quantifier quantifier) static longcreateLoopInc(Token.Quantifier quantifier) static longcreateUpdateCG(int index) static longcreateUpdateRecursiveBackref(int index) static Stringdump(long[] guards) static intgetGroupBoundaryIndex(long guard) Returns the capture group boundary index forupdateCGguards.static intgetGroupNumber(long guard) static TransitionGuard.KindgetKind(long guard) static intgetQuantifierIndex(long guard) static intgetZeroWidthQuantifierIndex(long guard) static booleanis(long guard, TransitionGuard.Kind kind) static JsonValuetoJson(long guard) static StringtoString(long guard)
-
Field Details
-
NO_GUARDS
public static final long[] NO_GUARDS
-
-
Constructor Details
-
TransitionGuard
public TransitionGuard()
-
-
Method Details
-
createLoop
-
createLoopInc
-
createExit
-
createExitReset
-
createEnterZeroWidth
-
createEnterZeroWidthFromExit
public static long createEnterZeroWidthFromExit(long guard) -
createExitZeroWidth
-
createEscapeZeroWidth
-
createUpdateCG
public static long createUpdateCG(int index) -
createUpdateRecursiveBackref
public static long createUpdateRecursiveBackref(int index) -
createCheckGroupMatched
public static long createCheckGroupMatched(int groupNumber) -
createCheckGroupNotMatched
public static long createCheckGroupNotMatched(int groupNumber) -
getKind
-
is
-
getQuantifierIndex
public static int getQuantifierIndex(long guard) -
getZeroWidthQuantifierIndex
public static int getZeroWidthQuantifierIndex(long guard) -
getGroupNumber
public static int getGroupNumber(long guard) -
getGroupBoundaryIndex
public static int getGroupBoundaryIndex(long guard) Returns the capture group boundary index forupdateCGguards. -
toString
-
dump
-
toJson
-