| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
(package private) Symbol | className_d Name of the class (and of its superclass) being parsed. |
(package private) IntegerStream | counter_d A counter used to keep track of the different scopes within a method. |
(package private) final static String | DEFAULT_PACKAGE The name of the default package |
(package private) final static String | DEFAULT_SUPER The name of the default super class |
(package private) Vector | errors_d A String vector containing all the errors found during parsing. |
(package private) BlockNode | fieldInit_d During parsing, non-static initializers are collected and at the end added to each constructor. |
(package private) Vector | forwardTypes_d Keep track of references to forward types. |
(package private) JellyJImportManager | importMgr_d This is the compiler's import manager. |
(package private) ASCII_UCodeESC_CharStream | jj_input_stream |
Token | jj_nt |
(package private) IntegerStack | labels_d A stack used to match labels in break and continue statements with their corresponding labeled nodes. |
boolean | lookingAhead |
(package private) Symbol | methodName_d The name of the method being parsed. |
(package private) MethodDeclarationNode | methodNode_d A pointer to the method declaration node of the method being parsed. |
(package private) Symbol | packName_d Symbol of the package that corresponds to the class being defined or a default if no package declaration parsed. |
(package private) CompilationUnitNode | root_d The pointer to the AST root node. |
(package private) IntegerStack | scopes_d A stack used together with the counter to keep track of the scopes within a method. |
(package private) BlockNode | staticInit_d During parsing, static initializers are collected and at the end added to |
(package private) Symbol | superName_d |
(package private) SymbolTable | symbolTable_d This is the compiler's symbol table. |
Token | token |
JellyJParserTokenManager | token_source |
Constructor Summary | |
JellyJParser(InputStream stream, JellyJImportManager importMgr, SymbolTable symbolTable, Vector errors) The main constructor. | |
JellyJParser(java.io.InputStream stream) | |
JellyJParser(JellyJParserTokenManager tm) |
Field Detail |
Symbol className_d
IntegerStream counter_d
final static String DEFAULT_PACKAGE
final static String DEFAULT_SUPER
Vector errors_d
BlockNode fieldInit_d
Vector forwardTypes_d
JellyJImportManager importMgr_d
ASCII_UCodeESC_CharStream jj_input_stream
public Token jj_nt
IntegerStack labels_d
public boolean lookingAhead
Symbol methodName_d
MethodDeclarationNode methodNode_d
Symbol packName_d
CompilationUnitNode root_d
IntegerStack scopes_d
BlockNode staticInit_d
Symbol superName_d
SymbolTable symbolTable_d
public Token token
public JellyJParserTokenManager token_source
Constructor Detail |
public JellyJParser(InputStream stream, JellyJImportManager importMgr, SymbolTable symbolTable, Vector errors)
public JellyJParser(java.io.InputStream stream)
public JellyJParser(JellyJParserTokenManager tm)
Method Detail |
public final ExpressionNode AdditiveExp()
throws ParseException
public final ExpressionNode AllocationExp()
throws ParseException
public final ExpressionNode AndExp()
throws ParseException
public final Vector ArgumentList()
throws ParseException
public final Vector Arguments()
throws ParseException
public final Vector ArrayDimensions()
throws ParseException
public final ExpressionNode Assignment()
throws ParseException
public final ExpressionNode AssignmentAttempt()
throws ParseException
public final StatementExpNode AssignmentAttemptExp()
throws ParseException
public final void AssignmentAttemptLookahead()
throws ParseException
public final int AssignmentOperator()
throws ParseException
public final BlockNode Block(boolean newScope)
throws ParseException
public final StatementNode BlockStatement(boolean newScope)
throws ParseException
public final ExpressionNode BooleanLiteral()
throws ParseException
public final BreakStatementNode BreakStatement()
throws ParseException
public final ExpressionNode CastExp()
throws ParseException
public final void CastLookahead()
throws ParseException
public final LocalVarDeclarationNode CatchParameter()
throws ParseException
public final ClassBodyDeclarationNode ClassBodyDeclaration()
throws ParseException
public final ClassDeclarationNode ClassDeclaration()
throws ParseException
public final CompilationUnitNode CompilationUnit()
throws ParseException
public final ExpressionNode ConditionalAndExp()
throws ParseException
public final ExpressionNode ConditionalExp()
throws ParseException
public final ExpressionNode ConditionalOrExp()
throws ParseException
public final ConstructorDeclarationNode ConstructorDeclaration()
throws ParseException
public final ConstructorInvocationNode ConstructorInvocation()
throws ParseException
public final StatementNode ContinueStatement()
throws ParseException
public final void disable_tracing()
public final LabeledStatementNode DoStatement()
throws ParseException
public final StatementNode EmptyStatement()
throws ParseException
public final void enable_tracing()
public final ExpressionNode EqualityExp()
throws ParseException
public final ExpressionNode ExclusiveOrExp()
throws ParseException
public final ExpressionNode Expression()
throws ParseException
public final FieldDeclarationNode FieldDeclaration()
throws ParseException
public final StatementNode ForInit()
throws ParseException
public final FormalParameterNode FormalParameter()
throws ParseException
public final Vector FormalParameters()
throws ParseException
public final LabeledStatementNode ForStatement()
throws ParseException
public final StatementExpListNode ForUpdate()
throws ParseException
public final ParseException generateParseException()
public final Token getNextToken()
public final Token getToken(int index)
public final IfStatementNode IfStatement()
throws ParseException
public final ExpressionNode InclusiveOrExp()
throws ParseException
public final ExpressionNode InstanceOfExp()
throws ParseException
public final InterfaceDeclarationNode InterfaceDeclaration()
throws ParseException
public final ClassBodyDeclarationNode InterfaceMemberDeclaration()
throws ParseException
public final LabeledStatementNode LabeledStatement()
throws ParseException
public final ExpressionNode Literal()
throws ParseException
public final StatementNode LocalVarDeclaration()
throws ParseException
public final MethodDeclarationNode MethodDeclaration()
throws ParseException
public final void MethodDeclarationLookahead()
throws ParseException
public final void MethodDeclarator(MethodDeclarationNode node)
throws ParseException
public final ExpressionNode MultiplicativeExp()
throws ParseException
public final Symbol Name()
throws ParseException
public final ExpressionNode NullLiteral()
throws ParseException
public CompilationUnitNode parseProgram()
throws ParseException
public final ExpressionNode PostfixExp()
throws ParseException
public final ExpressionNode PreDecrementExp()
throws ParseException
public final ExpressionNode PreIncrementExp()
throws ParseException
public final ExpressionNode PrimaryExp()
throws ParseException
public final ExpressionNode PrimarySuffix(ExpressionNode left)
throws ParseException
public final Type PrimitiveTypeExp()
throws ParseException
public void recordSourceCoord(SyntaxTreeNode node, Token token)
public void ReInit(java.io.InputStream stream)
public void ReInit(JellyJParserTokenManager tm)
public final ExpressionNode RelationalExp()
throws ParseException
public final Symbol ResolvedName()
throws ParseException
public final Vector ResolvedNameList()
throws ParseException
public final Type ResultTypeExp()
throws ParseException
public final ReturnStatementNode ReturnStatement()
throws ParseException
public final ExpressionNode ShiftExp()
throws ParseException
public final StatementNode Statement(boolean newScope)
throws ParseException
public final StatementExpNode StatementExp()
throws ParseException
public final StatementExpListNode StatementExpList()
throws ParseException
public final StaticInitializerNode StaticInitializer()
throws ParseException
public final SwitchLabelNode SwitchLabel()
throws ParseException
public final LabeledStatementNode SwitchStatement()
throws ParseException
public final SynchronizedStatementNode SynchronizedStatement()
throws ParseException
public final ThrowStatementNode ThrowStatement()
throws ParseException
public final TryStatementNode TryStatement()
throws ParseException
public final TypeDeclarationNode TypeDeclaration()
throws ParseException
public final Type TypeExp()
throws ParseException
public final ExpressionNode UnaryExp()
throws ParseException
public final ExpressionNode UnaryExpressionNotPlusMinus()
throws ParseException
public final ExpressionNode UnaryMinusExp()
throws ParseException
public final ExpressionNode UnaryNegExp()
throws ParseException
public final ExpressionNode UnaryNotExp()
throws ParseException
public final ExpressionNode UnaryPlusExp()
throws ParseException
public final VariableDeclaratorNode VariableDeclarator(boolean fieldFlag)
throws ParseException
public final Symbol VariableDeclaratorId()
throws ParseException
public final ExpressionNode VariableInitializer()
throws ParseException
public final LabeledStatementNode WhileStatement()
throws ParseException
Association Links |
to Class java.lang.String
to Class jellyj.util.Symbol
to Class jellyj.util.Symbol
to Class jellyj.util.Symbol
to Class jellyj.util.SymbolTable
to Class jellyj.parser.JellyJImportManager
to Class jellyj.util.Symbol
to Class jellyj.syntaxtree.MethodDeclarationNode
to Class jellyj.syntaxtree.BlockNode
to Class jellyj.syntaxtree.BlockNode
to Class java.util.Vector
to Class jellyj.util.IntegerStream
to Class jellyj.util.IntegerStack
to Class jellyj.util.IntegerStack
to Class java.util.Vector
to Class jellyj.syntaxtree.CompilationUnitNode
to Class jellyj.parser.JellyJParserTokenManager
to Class jellyj.parser.ASCII_UCodeESC_CharStream
to Class jellyj.parser.Token
to Class jellyj.parser.Token
to Class jellyj.parser.JJJellyJParserCalls
to Class java.util.Vector
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |