TS - a type that should represent the set of NFA transitions currently contained in this
fragment.public class TransitionBuilder<TS extends TransitionSet> extends Object implements JsonConvertible
StateTransitionCanonicalizer.| Constructor and Description |
|---|
TransitionBuilder(TS transitionSet,
CharSet matcherBuilder) |
| Modifier and Type | Method and Description |
|---|---|
TransitionBuilder<TS> |
createMerged(TransitionBuilder<TS> other,
CharSet mergedMatcher)
|
CharSet |
getMatcherBuilder()
Represents the character set matched by this transition fragment.
|
TransitionBuilder<TS> |
getNext()
Used by
StateTransitionCanonicalizer for creating linked lists of
TransitionBuilder instances on the fly. |
TS |
getTransitionSet()
Represents the set of NFA transitions currently contained in this transition fragment.
|
void |
setMatcherBuilder(CharSet matcherBuilder) |
void |
setNext(TransitionBuilder<TS> next)
Used by
StateTransitionCanonicalizer for creating linked lists of
TransitionBuilder instances on the fly. |
JsonValue |
toJson() |
public TS getTransitionSet()
public CharSet getMatcherBuilder()
public void setMatcherBuilder(CharSet matcherBuilder)
public TransitionBuilder<TS> getNext()
StateTransitionCanonicalizer for creating linked lists of
TransitionBuilder instances on the fly.public void setNext(TransitionBuilder<TS> next)
StateTransitionCanonicalizer for creating linked lists of
TransitionBuilder instances on the fly.public TransitionBuilder<TS> createMerged(TransitionBuilder<TS> other, CharSet mergedMatcher)
this and other into a newly created TransitionBuilder . The new
transitionSet is created by calling TransitionSet.createMerged(TransitionSet)
on this.transitionSet with other.transitionSet as parameter. The
matcherBuilder of the new TransitionBuilder will be set to
mergedMatcher directly.TransitionBuilder. Overriding classes are expected to
return an instance of their own type!public JsonValue toJson()
toJson in interface JsonConvertible