- All Superinterfaces:
ContentHandler<RuntimeException>,ControlHandler<RuntimeException>,TokenErrorHandler<RuntimeException>,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 TypeMethodDescriptionvoidcloseGroup(int index, int codePoint) Called when one of these codepoints is found: ), ], }default voidleftCurlyBracket(int index) Called when the{codepoint is found.default voidleftParenthesis(int index) Called when the(codepoint is found.default voidleftSquareBracket(int index) Called when the[codepoint is found.voidopenGroup(int index, int codePoint) Called when one of these codepoints is found: (, [, {default voidrightCurlyBracket(int index) Called when the}codepoint is found.default voidrightParenthesis(int index) Called when the)codepoint is found.default voidrightSquareBracket(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:TokenHandler2Called when the(codepoint is found.- Specified by:
leftParenthesisin interfaceContentHandler<RuntimeException>- Specified by:
leftParenthesisin interfaceTokenHandler2- Parameters:
index- the index at which the codepoint was found.
-
leftSquareBracket
default void leftSquareBracket(int index) Description copied from interface:TokenHandler2Called when the[codepoint is found.- Specified by:
leftSquareBracketin interfaceContentHandler<RuntimeException>- Specified by:
leftSquareBracketin interfaceTokenHandler2- Parameters:
index- the index at which the codepoint was found.
-
leftCurlyBracket
default void leftCurlyBracket(int index) Description copied from interface:TokenHandler2Called when the{codepoint is found.- Specified by:
leftCurlyBracketin interfaceContentHandler<RuntimeException>- Specified by:
leftCurlyBracketin interfaceTokenHandler2- Parameters:
index- the index at which the codepoint was found.
-
rightParenthesis
default void rightParenthesis(int index) Description copied from interface:TokenHandler2Called when the)codepoint is found.- Specified by:
rightParenthesisin interfaceContentHandler<RuntimeException>- Specified by:
rightParenthesisin interfaceTokenHandler2- Parameters:
index- the index at which the codepoint was found.
-
rightSquareBracket
default void rightSquareBracket(int index) Description copied from interface:TokenHandler2Called when the]codepoint is found.- Specified by:
rightSquareBracketin interfaceContentHandler<RuntimeException>- Specified by:
rightSquareBracketin interfaceTokenHandler2- Parameters:
index- the index at which the codepoint was found.
-
rightCurlyBracket
default void rightCurlyBracket(int index) Description copied from interface:TokenHandler2Called when the}codepoint is found.- Specified by:
rightCurlyBracketin interfaceContentHandler<RuntimeException>- Specified by:
rightCurlyBracketin interfaceTokenHandler2- 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.
-