Class TransitionBuilder<SI extends StateIndex<? super S>,S extends AbstractState<S,T>,T extends AbstractTransition<S,T>>
java.lang.Object
com.oracle.truffle.regex.tregex.automaton.TransitionBuilder<SI,S,T>
- All Implemented Interfaces:
JsonConvertible
- Direct Known Subclasses:
DFAStateTransitionBuilder
public class TransitionBuilder<SI extends StateIndex<? super S>,S extends AbstractState<S,T>,T extends AbstractTransition<S,T>>
extends Object
implements JsonConvertible
This class represents a power-set automaton state transition fragment to be used by
A transition in a power-set automaton consists of a set of transitions of the NFA that the power-set automaton is being built from, and the set of characters it can match.
StateTransitionCanonicalizer.A transition in a power-set automaton consists of a set of transitions of the NFA that the power-set automaton is being built from, and the set of characters it can match.
-
Constructor Summary
ConstructorsConstructorDescriptionTransitionBuilder(TransitionSet<SI, S, T> transitionSet, CodePointSet matcherBuilder) TransitionBuilder(T[] transitions, StateSet<SI, S> targetStateSet, CodePointSet matcherBuilder) -
Method Summary
Modifier and TypeMethodDescriptionRepresents the character set matched by this transition fragment.voidtoJson()
-
Constructor Details
-
TransitionBuilder
public TransitionBuilder(T[] transitions, StateSet<SI, S> targetStateSet, CodePointSet matcherBuilder) -
TransitionBuilder
-
-
Method Details
-
getTransitionSet
-
getCodePointSet
Represents the character set matched by this transition fragment. -
setMatcherBuilder
-
toJson
- Specified by:
toJsonin interfaceJsonConvertible
-