Logo Search packages:      
Sourcecode: janino version File versions  Download package

org::codehaus::janino::Parser Class Reference

List of all members.


Detailed Description

A parser for the JavaTM programming language.

Definition at line 47 of file Parser.java.


Public Member Functions

void eatToken () throws Scanner.ScanException, IOException
Scanner getScanner ()
Location location ()
Java.Atom parseAdditiveExpression () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseAndExpression () throws ParseException, Scanner.ScanException, IOException
Java.Rvalue[] parseArgumentList () throws ParseException, Scanner.ScanException, IOException
Java.Rvalue[] parseArguments () throws ParseException, Scanner.ScanException, IOException
Java.ArrayInitializer parseArrayInitializer () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseAssignmentExpression () throws ParseException, Scanner.ScanException, IOException
Java.Block parseBlock () throws ParseException, Scanner.ScanException, IOException
Java.BlockStatement parseBlockStatement () throws ParseException, Scanner.ScanException, IOException
List parseBlockStatements () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseBreakStatement () throws ParseException, Scanner.ScanException, IOException
void parseClassBody (Java.ClassDeclaration classDeclaration) throws ParseException, Scanner.ScanException, IOException
void parseClassBodyDeclaration (Java.ClassDeclaration classDeclaration) throws ParseException, Scanner.ScanException, IOException
Java.NamedClassDeclaration parseClassDeclarationRest (String optionalDocComment, short modifiers, ClassDeclarationContext context) throws ParseException, Scanner.ScanException, IOException
Java.CompilationUnit parseCompilationUnit () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseConditionalAndExpression () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseConditionalExpression () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseConditionalOrExpression () throws ParseException, Scanner.ScanException, IOException
Java.ConstructorDeclarator parseConstructorDeclarator (String optionalDocComment, short modifiers) throws ParseException, Scanner.ScanException, IOException
Java.Statement parseContinueStatement () throws ParseException, Scanner.ScanException, IOException
Java.Rvalue parseDimExpr () throws Scanner.ScanException, ParseException, IOException
Java.Rvalue[] parseDimExprs () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseDoStatement () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseEmptyStatement () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseEqualityExpression () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseExclusiveOrExpression () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseExpression () throws ParseException, Scanner.ScanException, IOException
Java.Rvalue[] parseExpressionList () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseExpressionStatement () throws ParseException, Scanner.ScanException, IOException
Java.VariableDeclarator[] parseFieldDeclarationRest (String name) throws ParseException, Scanner.ScanException, IOException
Java.FunctionDeclarator.FormalParameter parseFormalParameter () throws ParseException, Scanner.ScanException, IOException
Java.FunctionDeclarator.FormalParameter[] parseFormalParameters () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseForStatement () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseIfStatement () throws ParseException, Scanner.ScanException, IOException
Java.CompilationUnit.ImportDeclaration parseImportDeclaration () throws ParseException, Scanner.ScanException, IOException
Java.CompilationUnit.ImportDeclaration parseImportDeclarationBody () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseInclusiveOrExpression () throws ParseException, Scanner.ScanException, IOException
void parseInterfaceBody (Java.InterfaceDeclaration interfaceDeclaration) throws ParseException, Scanner.ScanException, IOException
Java.InterfaceDeclaration parseInterfaceDeclarationRest (String optionalDocComment, short modifiers, InterfaceDeclarationContext context) throws ParseException, Scanner.ScanException, IOException
Java.Statement parseLabeledStatement () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseLiteral () throws ParseException, Scanner.ScanException, IOException
Java.VariableDeclarator[] parseLocalVariableDeclarators () throws ParseException, Scanner.ScanException, IOException
Java.Block parseMethodBody () throws ParseException, Scanner.ScanException, IOException
Java.MethodDeclarator parseMethodDeclarationRest (String optionalDocComment, short modifiers, Java.Type type, String name) throws ParseException, Scanner.ScanException, IOException
short parseModifiersOpt () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseMultiplicativeExpression () throws ParseException, Scanner.ScanException, IOException
Java.PackageDeclaration parsePackageDeclaration () throws Parser.ParseException, Scanner.ScanException, IOException
Java.PackageMemberTypeDeclaration parsePackageMemberTypeDeclaration () throws ParseException, Scanner.ScanException, IOException
Java.Atom parsePrimary () throws ParseException, Scanner.ScanException, IOException
String[] parseQualifiedIdentifier () throws ParseException, Scanner.ScanException, IOException
 Parser (Scanner scanner)
Java.ReferenceType parseReferenceType () throws ParseException, Scanner.ScanException, IOException
Java.ReferenceType[] parseReferenceTypeList () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseRelationalExpression () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseReturnStatement () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseSelector (Java.Atom atom) throws ParseException, Scanner.ScanException, IOException
Java.Atom parseShiftExpression () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseStatement () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseSwitchStatement () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseSynchronizedStatement () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseThrowStatement () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseTryStatement () throws ParseException, Scanner.ScanException, IOException
Java.Type parseType () throws ParseException, Scanner.ScanException, IOException
Java.Atom parseUnaryExpression () throws ParseException, Scanner.ScanException, IOException
Java.VariableDeclarator parseVariableDeclarator () throws ParseException, Scanner.ScanException, IOException
Java.VariableDeclarator parseVariableDeclaratorRest (String name) throws ParseException, Scanner.ScanException, IOException
Java.ArrayInitializerOrRvalue parseVariableInitializer () throws ParseException, Scanner.ScanException, IOException
Java.Statement parseWhileStatement () throws ParseException, Scanner.ScanException, IOException
boolean peekIdentifier ()
boolean peekKeyword (String[] keywords)
boolean peekKeyword (String keyword)
boolean peekKeyword ()
boolean peekOperator (String[] operators)
boolean peekOperator (String operator)
String readIdentifier () throws ParseException, Scanner.ScanException, IOException
void readKeyword (String keyword) throws ParseException, Scanner.ScanException, IOException
void readOperator (String operator) throws ParseException, Scanner.ScanException, IOException
String readOperator () throws ParseException, Scanner.ScanException, IOException
void setWarningHandler (WarningHandler optionalWarningHandler)

Protected Member Functions

final void throwParseException (String message) throws ParseException

Package Functions

int parseBracketsOpt () throws Scanner.ScanException, IOException

Private Member Functions

Java.BlockStatement parseForInit () throws ParseException, Scanner.ScanException, IOException
void verifyIdentifierIsConventionalClassOrInterfaceName (String id, Location loc)
void verifyIdentifierIsConventionalFieldName (String id, Location loc)
void verifyIdentifierIsConventionalLocalVariableOrParameterName (String id, Location loc)
void verifyIdentifierIsConventionalMethodName (String id, Location loc)
void verifyStringIsConventionalPackageName (String s, Location loc)
void warning (String handle, String message, Location optionalLocation)

Static Private Member Functions

static String join (String[] sa, String separator)

Private Attributes

WarningHandler optionalWarningHandler = null
final Scanner scanner

Static Private Attributes

static final short[] MUTUALS

Classes

class  ClassDeclarationContext
class  InterfaceDeclarationContext
class  ParseException

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index