| java.lang.Object sun.tools.java.Scanner sun.tools.java.Parser sun.tools.javac.BatchParser
BatchParser | public class BatchParser extends Parser (Code) | | Batch file parser, this needs more work.
WARNING: The contents of this source file are not part of any
supported API. Code that depends on them does so at its own risk:
they are subject to change or removal without notice.
|
Method Summary | |
public ClassDefinition | beginClass(long where, String doc, int mod, IdentifierToken t, IdentifierToken sup, IdentifierToken interfaces) | public void | defineField(long where, ClassDefinition c, String doc, int mod, Type t, IdentifierToken name, IdentifierToken args, IdentifierToken exp, Node val) | public void | endClass(long where, ClassDefinition c) | public ClassDefinition | getCurrentClass() Report the current class under construction. | public void | importClass(long pos, IdentifierToken t) | public void | importPackage(long pos, IdentifierToken t) | public void | packageDeclaration(long where, IdentifierToken t) |
classes | protected Vector classes(Code) | | The classes defined in this file
|
getCurrentClass | public ClassDefinition getCurrentClass()(Code) | | Report the current class under construction.
|
packageDeclaration | public void packageDeclaration(long where, IdentifierToken t)(Code) | | Package declaration
|
Methods inherited from sun.tools.java.Parser | final protected void addArgument(Node n)(Code)(Java Doc) public ClassDefinition beginClass(long off, String doc, int mod, IdentifierToken nm, IdentifierToken sup, IdentifierToken impl)(Code)(Java Doc) protected void beginClass(long off, String doc, int mod, Identifier nm, Identifier sup, Identifier impl)(Code)(Java Doc) public void defineField(long where, ClassDefinition c, String doc, int mod, Type t, IdentifierToken nm, IdentifierToken args, IdentifierToken exp, Node val)(Code)(Java Doc) protected void defineField(long where, String doc, int mod, Type t, Identifier nm, Identifier args, Identifier exp, Node val)(Code)(Java Doc) public void endClass(long off, ClassDefinition c)(Code)(Java Doc) protected void endClass(long off, Identifier nm)(Code)(Java Doc) protected void expect(int t) throws SyntaxError, IOException(Code)(Java Doc) final protected Expression exprArgs(int index)(Code)(Java Doc) protected ClassDefinition getCurrentClass()(Code)(Java Doc) public void importClass(long off, IdentifierToken nm)(Code)(Java Doc) protected void importClass(long off, Identifier nm)(Code)(Java Doc) public void importPackage(long off, IdentifierToken nm)(Code)(Java Doc) protected void importPackage(long off, Identifier nm)(Code)(Java Doc) public void match(int open, int close) throws IOException(Code)(Java Doc) public void packageDeclaration(long off, IdentifierToken nm)(Code)(Java Doc) protected void packageDeclaration(long off, Identifier nm)(Code)(Java Doc) protected Type parseArrayBrackets(Type t) throws SyntaxError, IOException(Code)(Java Doc) protected Expression parseBinaryExpression(Expression e) throws SyntaxError, IOException(Code)(Java Doc) protected Statement parseBlockStatement() throws SyntaxError, IOException(Code)(Java Doc) protected void parseClass() throws SyntaxError, IOException(Code)(Java Doc) protected ClassDefinition parseClassBody(IdentifierToken nm, int mod, int ctx, String doc, Vector ext, Vector impl, long p) throws SyntaxError, IOException(Code)(Java Doc) protected Statement parseDeclaration(long p, int mod, Expression type) throws SyntaxError, IOException(Code)(Java Doc) protected Expression parseExpression() throws SyntaxError, IOException(Code)(Java Doc) protected void parseField() throws SyntaxError, IOException(Code)(Java Doc) public void parseFile()(Code)(Java Doc) protected Identifier parseIdentifier(boolean star) throws SyntaxError, IOException(Code)(Java Doc) protected void parseInheritance(Vector ext, Vector impl) throws SyntaxError, IOException(Code)(Java Doc) protected Statement parseLocalClass(int mod) throws SyntaxError, IOException(Code)(Java Doc) protected Expression parseMethodExpression(Expression e, Identifier id) throws SyntaxError, IOException(Code)(Java Doc) protected int parseModifiers(int mask) throws IOException(Code)(Java Doc) protected IdentifierToken parseName(boolean star) throws SyntaxError, IOException(Code)(Java Doc) protected ClassDefinition parseNamedClass(int mod, int ctx, String doc) throws SyntaxError, IOException(Code)(Java Doc) protected Expression parseNewInstanceExpression(long p, Expression outerArg, Expression type) throws SyntaxError, IOException(Code)(Java Doc) protected Statement parseStatement() throws SyntaxError, IOException(Code)(Java Doc) protected Expression parseTerm() throws SyntaxError, IOException(Code)(Java Doc) protected Type parseType() throws SyntaxError, IOException(Code)(Java Doc) protected Expression parseTypeExpression() throws SyntaxError, IOException(Code)(Java Doc) protected void recoverField(ClassDefinition newClass) throws SyntaxError, IOException(Code)(Java Doc) protected void recoverFile() throws IOException(Code)(Java Doc) protected boolean recoverStatement() throws SyntaxError, IOException(Code)(Java Doc) public long scan() throws IOException(Code)(Java Doc) final protected Statement statArgs(int index)(Code)(Java Doc) protected void topLevelExpression(Expression e)(Code)(Java Doc)
|
|
|