private int peekFlaggedToken() throws IOException { peekToken(); return currentFlaggedToken; }
private int peekTokenOrEOL() throws IOException { int tt = peekToken(); // Check for last peeked token flags if ((currentFlaggedToken & TI_AFTER_EOL) != 0) { tt = Token.EOL; } return tt; }
private int peekFlaggedToken() throws IOException { peekToken(); return currentFlaggedToken; }
private int peekTokenOrEOL() throws IOException { int tt = peekToken(); // Check for last peeked token flags if ((currentFlaggedToken & TI_AFTER_EOL) != 0) { tt = Token.EOL; } return tt; }
private int peekFlaggedToken() throws IOException { peekToken(); return currentFlaggedToken; }
private int peekTokenOrEOL() throws IOException { int tt = peekToken(); // Check for last peeked token flags if ((currentFlaggedToken & TI_AFTER_EOL) != 0) { tt = Token.EOL; } return tt; }
private int peekTokenOrEOL() throws IOException { int tt = peekToken(); // Check for last peeked token flags if ((currentFlaggedToken & TI_AFTER_EOL) != 0) { tt = Token.EOL; } return tt; }
private int peekTokenOrEOL() throws IOException { int tt = peekToken(); // Check for last peeked token flags if ((currentFlaggedToken & TI_AFTER_EOL) != 0) { tt = Token.EOL; } return tt; }
private boolean matchToken(int toMatch) throws IOException { int tt = peekToken(); if (tt != toMatch) { return false; } consumeToken(); return true; }
private int nextFlaggedToken() throws IOException { peekToken(); int ttFlagged = currentFlaggedToken; consumeToken(); return ttFlagged; }
private boolean matchToken(int toMatch) throws IOException { int tt = peekToken(); if (tt != toMatch) { return false; } consumeToken(); return true; }
private boolean matchToken(int toMatch) throws IOException { int tt = peekToken(); if (tt != toMatch) { return false; } consumeToken(); return true; }
private int nextFlaggedToken() throws IOException { peekToken(); int ttFlagged = currentFlaggedToken; consumeToken(); return ttFlagged; }
private int nextToken() throws IOException { int tt = peekToken(); consumeToken(); return tt; }
private int nextFlaggedToken() throws IOException { peekToken(); int ttFlagged = currentFlaggedToken; consumeToken(); return ttFlagged; }
private int nextToken() throws IOException { int tt = peekToken(); consumeToken(); return tt; }
private Node statements() throws IOException { Node pn = nf.createBlock(ts.getLineno()); int tt; while((tt = peekToken()) > Token.EOF && tt != Token.RC) { nf.addChildToBack(pn, statement()); } return pn; }
private Node statements(Node scope) throws IOException { Node pn = scope != null ? scope : nf.createBlock(ts.getLineno()); int tt; while ((tt = peekToken()) > Token.EOF && tt != Token.RC) { nf.addChildToBack(pn, statement()); } return pn; }
private Node assignExpr(boolean inForInit) throws IOException, ParserException { Node pn = condExpr(inForInit); int tt = peekToken(); if (Token.FIRST_ASSIGN <= tt && tt <= Token.LAST_ASSIGN) { consumeToken(); decompiler.addToken(tt); pn = nf.createAssignment(tt, pn, assignExpr(inForInit)); } return pn; }
private AstNode statements(AstNode parent) throws IOException { if (currentToken != Token.LC // assertion can be invalid in bad code && !compilerEnv.isIdeMode()) codeBug(); int pos = ts.tokenBeg; AstNode block = parent != null ? parent : new Block(pos); block.setLineno(ts.lineno); int tt; while ((tt = peekToken()) > Token.EOF && tt != Token.RC) { block.addChild(statement()); } block.setLength(ts.tokenBeg - pos); return block; }