Class TokenComment
java.lang.Object
com.io7m.jsx.api.tokens.TokenComment
- All Implemented Interfaces:
TokenType
-
Constructor Summary
ConstructorsConstructorDescriptionTokenComment(com.io7m.jlexing.core.LexicalPosition<URI> in_lex, JSXLexerComment in_comment, String in_text) -
Method Summary
Modifier and TypeMethodDescriptioncomment()com.io7m.jlexing.core.LexicalPosition<URI> lexical()<A, E extends Exception>
AmatchToken(TokenMatcherType<A, E> m) Match a token.text()toString()
-
Constructor Details
-
TokenComment
public TokenComment(com.io7m.jlexing.core.LexicalPosition<URI> in_lex, JSXLexerComment in_comment, String in_text) - Parameters:
in_lex- The lexical informationin_comment- The comment typein_text- The token text
-
-
Method Details
-
comment
- Returns:
- The comment type
-
lexical
-
text
- Returns:
- The text content of the token
-
matchToken
Description copied from interface:TokenTypeMatch a token.- Specified by:
matchTokenin interfaceTokenType- Type Parameters:
A- The type of values returned by the matcherE- The type of exceptions raised by the matcher- Parameters:
m- The matcher- Returns:
- The value returned by the matcher
- Throws:
E- If the matcher raisesE
-
toString
-