Class SequentialMatchers
java.lang.Object
com.oracle.truffle.regex.tregex.nodes.dfa.Matchers
com.oracle.truffle.regex.tregex.nodes.dfa.SequentialMatchers
- Direct Known Subclasses:
SequentialMatchers.SimpleSequentialMatchers,SequentialMatchers.UTF16Or32SequentialMatchers,SequentialMatchers.UTF16RawSequentialMatchers,SequentialMatchers.UTF8SequentialMatchers
Container for character matchers of DFA transitions, potentially specialized for a given string
encoding.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionshortintmatch(int c) Returns the index of the transition that matches the given characterc, ornoMatchSuccessor.abstract booleanmatch(int i, int c) Returnstrueiff transitionimatchesc.abstract intsize()Returns the number of transitions represented by this object.abstract StringtoString(int i) Returns a String representation of transitioni.
-
Method Details
-
getNoMatchSuccessor
public short getNoMatchSuccessor() -
size
public abstract int size()Returns the number of transitions represented by this object. -
match
public abstract boolean match(int i, int c) Returnstrueiff transitionimatchesc. -
match
public int match(int c) Returns the index of the transition that matches the given characterc, ornoMatchSuccessor. For debugging purposes. -
toString
Returns a String representation of transitioni.
-