Uses of Class
org.javacc.parser.Token
-
Packages that use Token Package Description org.javacc.jjdoc Generates BNF documentation from a grammar.org.javacc.parser A grammar and lexer generator.org.javacc.utils -
-
Uses of Token in org.javacc.jjdoc
Methods in org.javacc.jjdoc that return Token Modifier and Type Method Description private static TokenJJDoc. getPrecedingSpecialToken(Token tok)Methods in org.javacc.jjdoc with parameters of type Token Modifier and Type Method Description private 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.parser Modifier and Type Class Description (package private) static classToken.GTTokenGreater than Token.Fields in org.javacc.parser declared as Token Modifier and Type Field Description TokenParseException. currentTokenThis is the last token that has been consumed successfully.(package private) TokenJavaCCParser.JJCalls. firstprivate TokenJavaCCParserInternals. first_cu_tokenprivate TokenNormalProduction. firstTokenTokenTokenProduction. firstTokenThe first and last tokens from the input stream that represent this production.private TokenJavaCCParser. jj_lastposTokenJavaCCParser. jj_ntNext token.private TokenJavaCCParser. jj_scanposprivate TokenNormalProduction. lastTokenThe first and last tokens from the input stream that represent this production.TokenTokenProduction. lastTokenThe first and last tokens from the input stream that represent this production.TokenToken. nextA reference to the next regular (non-special) token from the input stream.TokenRegExprSpec. nsTokIf the next state specification was explicit in the previous case, then this token is that of the identifier denoting the next state.TokenJavaCCGlobals. otherLanguageDeclTokenBegTokenJavaCCGlobals. otherLanguageDeclTokenEndTokenRegularExpression. rhsTokenWe now allow qualified access to token members.TokenToken. specialTokenThis field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.TokenJavaCCParser. tokenCurrent token.Fields in org.javacc.parser with type parameters of type Token Modifier and Type Field Description private java.util.List<Token>Action. action_tokensContains the list of tokens that make up the action.private java.util.List<Token>Lookahead. action_tokensContains the list of tokens that make up the semantic lookahead if any.private java.util.List<Token>JavaCCParserInternals. add_cu_token_hereprivate java.util.List<Token>NonTerminal. argument_tokensThe list of all tokens in the argument list.java.util.List<java.util.List<Token>>TryBlock. catchblksThe block part of each catch block.private java.util.List<Token>CodeProduction. code_tokensThe tokens that implement this JAVACODE/CPPCODE production.java.util.List<Token>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)".java.util.List<Token>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".java.util.List<Token>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".private java.util.List<Token>BNFProduction. declaration_tokensThe declarations of this production.java.util.List<Token>TryBlock. finallyblkThe block part of the finally block.private java.util.List<Token>NonTerminal. lhsTokensThe LHS to which the return value of the non-terminal is assigned.java.util.List<Token>RegularExpression. lhsTokensThe LHS to which the token value of the regular expression is assigned.private java.util.List<Token>NormalProduction. parameter_list_tokensThe tokens that make up the parameters of this production.private java.util.List<Token>NonTerminal. parametrized_type__tokensprivate java.util.List<Token>NormalProduction. return_type_tokensThe tokens that make up the return type of this production.private java.util.List<java.util.List<Token>>NormalProduction. throws_listEach entry in this list is a list of tokens that represents an exception in the throws list of this production.java.util.List<Token>JavaCCGlobals. token_mgr_declsThe declarations to be inserted into the TokenManager class.java.util.List<java.util.List<Token>>TryBlock. typesThe types of each catch block.Methods in org.javacc.parser that return Token Modifier and Type Method Description TokenNormalProduction. getFirstToken()TokenNormalProduction. getLastToken()TokenJavaCCParser. getNextToken()Get the next Token.TokenJavaCCParserTokenManager. getNextToken()Get the next Token.TokenJavaCCParser. getToken(int index)Get the specific Token.TokenJavaCCParser. JavaIdentifier()THE JAVA GRAMMAR SPECIFICATION STARTS HERE *private TokenJavaCCParser. jj_consume_token(int kind)protected TokenJavaCCParserTokenManager. jjFillToken()(package private) static TokenToken. newToken(int ofKind, java.lang.String image)Returns a new Token object, by default.TokenNormalProduction. setFirstToken(Token firstToken)Methods in org.javacc.parser that return types with arguments of type Token Modifier and Type Method Description java.util.List<Token>Action. getActionTokens()java.util.List<Token>Lookahead. getActionTokens()java.util.List<Token>NonTerminal. getArgumentTokens()java.util.List<Token>CodeProduction. getCodeTokens()java.util.List<Token>BNFProduction. getDeclarationTokens()java.util.List<Token>NonTerminal. getLhsTokens()java.util.List<Token>NormalProduction. getParameterListTokens()java.util.List<Token>NonTerminal. getParametrizedTypeTokens()java.util.List<Token>NormalProduction. getReturnTypeTokens()java.util.List<java.util.List<Token>>NormalProduction. getThrowsList()Methods in org.javacc.parser with parameters of type Token Modifier and Type Method Description protected voidJavaCCParserInternals. add_token_manager_decls(Token t, java.util.List<Token> decls)protected charJavaCCParserInternals. character_descriptor_assign(Token t, java.lang.String s)protected charJavaCCParserInternals. character_descriptor_assign(Token t, java.lang.String s, java.lang.String left)protected voidJavaCCParserInternals. compare(Token t, java.lang.String id1, java.lang.String id2)private static java.lang.StringParseException. initialise(Token currentToken, int[][] expectedTokenSequences, java.lang.String[] tokenImage)It uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it.protected voidJavaCCParserInternals. insertionpointerrors(Token t)private booleanJavaCCParser. isAllowed(Token t)protected voidJavaCCParserInternals. makeTryBlock(Token tryLoc, Container<TryBlock> result, Container<Expansion> nestedExp, java.util.List<java.util.List<Token>> types, java.util.List<Token> ids, java.util.List<java.util.List<Token>> catchblks, java.util.List<Token> finallyblk)protected java.lang.StringJavaCCParserInternals. remove_escapes_and_quotes(Token t, java.lang.String str)protected voidJavaCCParserInternals. set_initial_cu_token(Token t)TokenNormalProduction. 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 Token Modifier and Type Method Description protected voidJavaCCParserInternals. add_token_manager_decls(Token t, java.util.List<Token> decls)protected voidJavaCCParserInternals. makeTryBlock(Token tryLoc, Container<TryBlock> result, Container<Expansion> nestedExp, java.util.List<java.util.List<Token>> types, java.util.List<Token> ids, java.util.List<java.util.List<Token>> catchblks, java.util.List<Token> finallyblk)voidNonTerminal. setArgumentTokens(java.util.List<Token> parametrized_type__tokens)voidNonTerminal. setLhsTokens(java.util.List<Token> lhsTokens)voidNonTerminal. setParametrizedTypeTokens(java.util.List<Token> argument_tokens)voidNormalProduction. setThrowsList(java.util.List<java.util.List<Token>> throws_list)Constructors in org.javacc.parser with parameters of type Token Constructor Description Choice(Token token)OneOrMore(Token token, Expansion expansion)ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, java.lang.String[] tokenImageVal)This constructor is used by the method "generateParseException" in the generated parser.RJustName(Token token, java.lang.String image)ROneOrMore(Token t, RegularExpression re)RStringLiteral(Token token, java.lang.String image)RZeroOrMore(Token t, RegularExpression r)Sequence(Token token, Lookahead lookahead)ZeroOrMore(Token token, Expansion expansion)ZeroOrOne(Token token, Expansion expansion) -
Uses of Token in org.javacc.utils
Methods in org.javacc.utils with parameters of type Token Modifier and Type Method Description java.lang.StringCodeBuilder. getLeadingComments(Token t)private java.lang.StringCodeBuilder. getStringForTokenOnly(Token t)java.lang.StringCodeBuilder. getTrailingComments(Token token)voidCodeBuilder. printLeadingComments(Token t)voidCodeBuilder. printToken(Token t)voidCodeBuilder. printTokenOnly(Token t)voidCodeBuilder. printTokenSetup(Token token)voidCodeBuilder. printTrailingComments(Token token)static java.lang.StringCodeBuilder. toString(Token token)Get the string representation of aToken.Method parameters in org.javacc.utils with type arguments of type Token Modifier and Type Method Description voidCodeBuilder. printTokenList(java.util.List<Token> list)
-