final
void
|
addArgument(Node n)
|
void
|
beginClass(long off, String doc, int mod, Identifier nm, Identifier sup, Identifier[] impl)
This method is deprecated.
Use the version with the IdentifierToken arguments.
|
ClassDefinition
|
beginClass(long off, String doc, int mod, IdentifierToken nm, IdentifierToken sup, IdentifierToken[] impl)
This method is deprecated.
No replacement.
|
void
|
defineField(long where, String doc, int mod, Type t, Identifier nm, Identifier[] args, Identifier[] exp, Node val)
This method is deprecated.
Use the version with the IdentifierToken arguments.
|
void
|
defineField(long where, ClassDefinition c, String doc, int mod, Type t, IdentifierToken nm, IdentifierToken[] args, IdentifierToken[] exp, Node val)
This method is deprecated.
No replacement.
|
void
|
endClass(long off, ClassDefinition c)
This method is deprecated.
No replacement.
|
void
|
endClass(long off, Identifier nm)
This method is deprecated.
Use the version with the IdentifierToken arguments.
|
void
|
expect(int t)
Expect a token, return its value, scan the next token or
throw an exception.
|
final
Expression[]
|
exprArgs(int index)
|
ClassDefinition
|
getCurrentClass()
Report the current class under construction.
|
void
|
importClass(long off, Identifier nm)
This method is deprecated.
Use the version with the IdentifierToken arguments.
|
void
|
importClass(long off, IdentifierToken nm)
This method is deprecated.
No replacement.
|
void
|
importPackage(long off, IdentifierToken nm)
This method is deprecated.
No replacement.
|
void
|
importPackage(long off, Identifier nm)
This method is deprecated.
Use the version with the IdentifierToken arguments.
|
void
|
match(int open, int close)
Scan to a matching '}', ']' or ')'.
|
void
|
packageDeclaration(long off, Identifier nm)
This method is deprecated.
No replacement.
|
void
|
packageDeclaration(long off, IdentifierToken nm)
This method is deprecated.
No replacement.
|
Type
|
parseArrayBrackets(Type t)
Parse the tail of a type expression, which might be array brackets.
|
Expression
|
parseBinaryExpression(Expression e)
Given a left-hand term, parse an operator and right-hand term.
|
Statement
|
parseBlockStatement()
|
void
|
parseClass()
Parse a top-level class or interface declaration.
|
ClassDefinition
|
parseClassBody(IdentifierToken nm, int mod, int ctx, String doc, Vector ext, Vector impl, long p)
Parse the body of a class or interface declaration,
starting at the left brace.
|
Statement
|
parseDeclaration(long p, int mod, Expression type)
Parse declaration, called after the type expression
has been parsed and the current token is IDENT.
|
Expression
|
parseExpression()
Parse an expression.
|
void
|
parseField()
Parse a field.
|
void
|
parseFile()
Parse an Java file.
|
Identifier
|
parseIdentifier(boolean star)
@deprecated
|
void
|
parseInheritance(Vector ext, Vector impl)
|
Statement
|
parseLocalClass(int mod)
Parse a block-local class or interface declaration.
|
Expression
|
parseMethodExpression(Expression e, Identifier id)
Parse a method invocation.
|
int
|
parseModifiers(int mask)
Parse a possibly-empty sequence of modifier keywords.
|
IdentifierToken
|
parseName(boolean star)
Parse an identifier.
|
ClassDefinition
|
parseNamedClass(int mod, int ctx, String doc)
Parse a named class or interface declaration,
starting at "class" or "interface".
|
Expression
|
parseNewInstanceExpression(long p, Expression outerArg, Expression type)
Parse a new instance expression.
|
Statement
|
parseStatement()
Parse a statement.
|
Expression
|
parseTerm()
Parse a primary expression.
|
Type
|
parseType()
Parse a type expression, this results in a Type.
|
Expression
|
parseTypeExpression()
Parse a type expression.
|
void
|
recoverField(ClassDefinition newClass)
Recover after a syntax error in a field.
|
void
|
recoverFile()
Recover after a syntax error in the file.
|
boolean
|
recoverStatement()
Recover after a syntax error in a statement.
|
long
|
scan()
Scan the next token.
|
final
Statement[]
|
statArgs(int index)
|
void
|
topLevelExpression(Expression e)
Check if an expression is a legal toplevel expression.
|