- All Superinterfaces:
TokenHandler2
,TokenHandler3<RuntimeException>
A
TokenHandler2
that is backwards-compatible with
TokenProducer
1.x.
You may consider using TokenHandler2
or TokenHandler3
instead.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeGroup
(int index, int codePoint) Called when one of these codepoints is found: ), ], }default void
leftCurlyBracket
(int index) Called when the{
codepoint is found.default void
leftParenthesis
(int index) Called when the(
codepoint is found.default void
leftSquareBracket
(int index) Called when the[
codepoint is found.void
openGroup
(int index, int codePoint) Called when one of these codepoints is found: (, [, {default void
rightCurlyBracket
(int index) Called when the}
codepoint is found.default void
rightParenthesis
(int index) Called when the)
codepoint is found.default void
rightSquareBracket
(int index) Called when the]
codepoint is found.Methods inherited from interface io.sf.carte.uparser.TokenHandler2
character, commented, control, endOfStream, endPunctuation, error, escaped, quoted, quotedNewlineChar, quotedWithControl, separator, startPunctuation, tokenStart, word
-
Method Details
-
leftParenthesis
default void leftParenthesis(int index) Description copied from interface:TokenHandler2
Called when the(
codepoint is found.- Specified by:
leftParenthesis
in interfaceTokenHandler2
- Specified by:
leftParenthesis
in interfaceTokenHandler3<RuntimeException>
- Parameters:
index
- the index at which the codepoint was found.
-
leftSquareBracket
default void leftSquareBracket(int index) Description copied from interface:TokenHandler2
Called when the[
codepoint is found.- Specified by:
leftSquareBracket
in interfaceTokenHandler2
- Specified by:
leftSquareBracket
in interfaceTokenHandler3<RuntimeException>
- Parameters:
index
- the index at which the codepoint was found.
-
leftCurlyBracket
default void leftCurlyBracket(int index) Description copied from interface:TokenHandler2
Called when the{
codepoint is found.- Specified by:
leftCurlyBracket
in interfaceTokenHandler2
- Specified by:
leftCurlyBracket
in interfaceTokenHandler3<RuntimeException>
- Parameters:
index
- the index at which the codepoint was found.
-
rightParenthesis
default void rightParenthesis(int index) Description copied from interface:TokenHandler2
Called when the)
codepoint is found.- Specified by:
rightParenthesis
in interfaceTokenHandler2
- Specified by:
rightParenthesis
in interfaceTokenHandler3<RuntimeException>
- Parameters:
index
- the index at which the codepoint was found.
-
rightSquareBracket
default void rightSquareBracket(int index) Description copied from interface:TokenHandler2
Called when the]
codepoint is found.- Specified by:
rightSquareBracket
in interfaceTokenHandler2
- Specified by:
rightSquareBracket
in interfaceTokenHandler3<RuntimeException>
- Parameters:
index
- the index at which the codepoint was found.
-
rightCurlyBracket
default void rightCurlyBracket(int index) Description copied from interface:TokenHandler2
Called when the}
codepoint is found.- Specified by:
rightCurlyBracket
in interfaceTokenHandler2
- Specified by:
rightCurlyBracket
in interfaceTokenHandler3<RuntimeException>
- Parameters:
index
- the index at which the codepoint was found.
-
openGroup
void openGroup(int index, int codePoint) Called when one of these codepoints is found: (, [, {- Parameters:
index
- the index at which the codepoint was found.codePoint
- the found codepoint.
-
closeGroup
void closeGroup(int index, int codePoint) Called when one of these codepoints is found: ), ], }- Parameters:
index
- the index at which the codepoint was found.codePoint
- the found codepoint.
-