Uses of Class
org.javacc.parser.Token
Packages that use Token
Package
Description
Generates BNF documentation from a grammar.
A grammar and lexer generator.
-
Uses of Token in org.javacc.jjdoc
Methods in org.javacc.jjdoc that return TokenMethods in org.javacc.jjdoc with parameters of type TokenModifier and TypeMethodDescriptionprivate static voidJJDoc.emitTopLevelSpecialTokens(Token tok, Generator gen, JJDocContext context) private static TokenJJDoc.getPrecedingSpecialToken(Token tok) -
Uses of Token in org.javacc.parser
Subclasses of Token in org.javacc.parserModifier and TypeClassDescription(package private) static classGreater than Token.Fields in org.javacc.parser declared as TokenModifier and TypeFieldDescriptionParseException.currentTokenThis is the last token that has been consumed successfully.(package private) TokenJavaCCParser.JJCalls.firstprivate TokenJavaCCParserInternals.first_cu_tokenprivate TokenNormalProduction.firstTokenTokenProduction.firstTokenThe first and last tokens from the input stream that represent this production.private TokenJavaCCParser.jj_lastposJavaCCParser.jj_ntNext token.private TokenJavaCCParser.jj_scanposprivate TokenNormalProduction.lastTokenThe first and last tokens from the input stream that represent this production.TokenProduction.lastTokenThe first and last tokens from the input stream that represent this production.Token.nextA reference to the next regular (non-special) token from the input stream.RegExprSpec.nsTokIf the next state specification was explicit in the previous case, then this token is that of the identifier denoting the next state.JavaCCGlobals.otherLanguageDeclTokenBegJavaCCGlobals.otherLanguageDeclTokenEndRegularExpression.rhsTokenWe now allow qualified access to token members.Token.specialTokenThis field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.JavaCCParser.tokenCurrent token.Fields in org.javacc.parser with type parameters of type TokenModifier and TypeFieldDescriptionAction.action_tokensContains the list of tokens that make up the action.Lookahead.action_tokensContains the list of tokens that make up the semantic lookahead if any.JavaCCParserInternals.add_cu_token_hereNonTerminal.argument_tokensThe list of all tokens in the argument list.TryBlock.catchblksThe block part of each catch block.CodeProduction.code_tokensThe tokens that implement this JAVACODE/CPPCODE production.JavaCCGlobals.cu_from_insertion_point_2This is the list of all tokens that appear after the tokens in "cu_to_insertion_point_2" and until "PARSER_END(name)".JavaCCGlobals.cu_to_insertion_point_1This is a list of tokens that appear after "PARSER_BEGIN(name)" all the way until (but not including) the opening brace "{" of the class "name".JavaCCGlobals.cu_to_insertion_point_2This is the list of all tokens that appear after the tokens in "cu_to_insertion_point_1" and until (but not including) the closing brace "}" of the class "name".BNFProduction.declaration_tokensThe declarations of this production.TryBlock.finallyblkThe block part of the finally block.NonTerminal.lhsTokensThe LHS to which the return value of the non-terminal is assigned.RegularExpression.lhsTokensThe LHS to which the token value of the regular expression is assigned.NormalProduction.parameter_list_tokensThe tokens that make up the parameters of this production.NonTerminal.parametrized_type__tokensNormalProduction.return_type_tokensThe tokens that make up the return type of this production.NormalProduction.throws_listEach entry in this list is a list of tokens that represents an exception in the throws list of this production.JavaCCGlobals.token_mgr_declsThe declarations to be inserted into the TokenManager class.TryBlock.typesThe types of each catch block.Methods in org.javacc.parser that return TokenModifier and TypeMethodDescriptionNormalProduction.getFirstToken()NormalProduction.getLastToken()final TokenJavaCCParser.getNextToken()Get the next Token.JavaCCParserTokenManager.getNextToken()Get the next Token.final TokenJavaCCParser.getToken(int index) Get the specific Token.final TokenJavaCCParser.JavaIdentifier()THE JAVA GRAMMAR SPECIFICATION STARTS HERE *private TokenJavaCCParser.jj_consume_token(int kind) protected TokenJavaCCParserTokenManager.jjFillToken()(package private) static final TokenReturns a new Token object, by default.NormalProduction.setFirstToken(Token firstToken) Methods in org.javacc.parser that return types with arguments of type TokenModifier and TypeMethodDescriptionAction.getActionTokens()Lookahead.getActionTokens()NonTerminal.getArgumentTokens()CodeProduction.getCodeTokens()BNFProduction.getDeclarationTokens()NonTerminal.getLhsTokens()NormalProduction.getParameterListTokens()NonTerminal.getParametrizedTypeTokens()NormalProduction.getReturnTypeTokens()NormalProduction.getThrowsList()Methods in org.javacc.parser with parameters of type TokenModifier and TypeMethodDescriptionprotected voidJavaCCParserInternals.add_token_manager_decls(Token t, List<Token> decls) protected charJavaCCParserInternals.character_descriptor_assign(Token t, String s) protected charJavaCCParserInternals.character_descriptor_assign(Token t, String s, String left) protected voidprivate static StringParseException.initialise(Token currentToken, int[][] expectedTokenSequences, String[] tokenImage) It uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it.protected voidJavaCCParserInternals.insertionpointerrors(Token t) private booleanprotected voidJavaCCParserInternals.makeTryBlock(Token tryLoc, Container<TryBlock> result, Container<Expansion> nestedExp, List<List<Token>> types, List<Token> ids, List<List<Token>> catchblks, List<Token> finallyblk) protected StringJavaCCParserInternals.remove_escapes_and_quotes(Token t, String str) protected voidJavaCCParserInternals.set_initial_cu_token(Token t) NormalProduction.setFirstToken(Token firstToken) protected voidJavaCCParserInternals.setinsertionpoint(Token t, int no) voidNormalProduction.setLastToken(Token lastToken) (package private) voidJavaCCParserTokenManager.SkipLexicalActions(Token matchedToken) (package private) voidJavaCCParserTokenManager.TokenLexicalActions(Token matchedToken) Method parameters in org.javacc.parser with type arguments of type TokenModifier and TypeMethodDescriptionprotected voidJavaCCParserInternals.add_token_manager_decls(Token t, List<Token> decls) protected voidJavaCCParserInternals.makeTryBlock(Token tryLoc, Container<TryBlock> result, Container<Expansion> nestedExp, List<List<Token>> types, List<Token> ids, List<List<Token>> catchblks, List<Token> finallyblk) voidNonTerminal.setArgumentTokens(List<Token> parametrized_type__tokens) voidNonTerminal.setLhsTokens(List<Token> lhsTokens) voidNonTerminal.setParametrizedTypeTokens(List<Token> argument_tokens) voidNormalProduction.setThrowsList(List<List<Token>> throws_list) Constructors in org.javacc.parser with parameters of type TokenModifierConstructorDescription(package private)ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal) This constructor is used by the method "generateParseException" in the generated parser.(package private)(package private)ROneOrMore(Token t, RegularExpression re) (package private)RStringLiteral(Token token, String image) (package private)(package private)ZeroOrMore(Token token, Expansion expansion) -
Uses of Token in org.javacc.utils
Methods in org.javacc.utils with parameters of type TokenModifier and TypeMethodDescriptionfinal StringCodeBuilder.getLeadingComments(Token t) private StringCodeBuilder.getStringForTokenOnly(Token t) final StringCodeBuilder.getTrailingComments(Token token) final voidCodeBuilder.printLeadingComments(Token t) final voidCodeBuilder.printToken(Token t) final voidCodeBuilder.printTokenOnly(Token t) final voidCodeBuilder.printTokenSetup(Token token) final voidCodeBuilder.printTrailingComments(Token token) static StringGet the string representation of aToken.Method parameters in org.javacc.utils with type arguments of type Token