org.codehaus.groovy.syntax.parser
Class Parser

java.lang.Object
  |
  +--org.codehaus.groovy.syntax.parser.Parser

public class Parser
extends Object


Constructor Summary
Parser(org.codehaus.groovy.syntax.TokenStream tokenStream)
           
 
Method Summary
protected  org.codehaus.groovy.syntax.parser.CSTNode additiveExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode argumentList()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode assertStatement()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode assignmentExpression()
           
 org.codehaus.groovy.syntax.parser.CSTNode bodyStatement()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode breakStatement()
           
 org.codehaus.groovy.syntax.parser.CSTNode classDeclaration(org.codehaus.groovy.syntax.parser.CSTNode modifiers)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode closureExpression()
           
 org.codehaus.groovy.syntax.parser.CSTNode compilationUnit()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode conditionalExpression()
           
protected  void consume_bare(org.codehaus.groovy.syntax.parser.CSTNode root, int type)
           
protected  org.codehaus.groovy.syntax.Token consume_bare(int type)
           
protected  void consume(org.codehaus.groovy.syntax.parser.CSTNode root, int type)
           
protected  org.codehaus.groovy.syntax.Token consume(int type)
           
protected  void consumeUntil_bare(int type)
           
protected  void consumeUntil(int type)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode continueStatement()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode datatype()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode doubleQuotedString()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode equalityExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode expression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode forStatement()
           
 org.codehaus.groovy.syntax.TokenStream getTokenStream()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode ifStatement()
           
 org.codehaus.groovy.syntax.parser.CSTNode importStatement()
           
 org.codehaus.groovy.syntax.parser.CSTNode interfaceDeclaration(org.codehaus.groovy.syntax.parser.CSTNode modifiers)
           
protected static boolean isModifier(int type)
           
protected  org.codehaus.groovy.syntax.Token la_bare()
           
protected  org.codehaus.groovy.syntax.Token la_bare(int k)
           
protected  org.codehaus.groovy.syntax.Token la()
           
protected  org.codehaus.groovy.syntax.Token la(int k)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode listExpression(org.codehaus.groovy.syntax.parser.CSTNode entry)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode listOrMapExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode logicalAndExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode logicalOrExpression()
           
protected  int lt_bare()
           
protected  int lt_bare(int k)
           
protected  int lt()
           
protected  int lt(int k)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode mapExpression(org.codehaus.groovy.syntax.parser.CSTNode key)
           
 org.codehaus.groovy.syntax.parser.CSTNode methodDeclaration(org.codehaus.groovy.syntax.parser.CSTNode modifiers, org.codehaus.groovy.syntax.parser.CSTNode type, org.codehaus.groovy.syntax.parser.CSTNode identifier)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode multiplicativeExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode namedParameterList(int endOfListDemarc)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode newExpression()
           
 void optionalSemicolon()
           
 org.codehaus.groovy.syntax.parser.CSTNode packageDeclaration()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode parameterDeclaration()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode parameterDeclarationList()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode parameterDeclarationWithDatatype()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode parameterDeclarationWithoutDatatype()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode parameterList(int endOfListDemarc)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode parentheticalExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode postfixExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode primaryExpression()
           
 org.codehaus.groovy.syntax.parser.CSTNode propertyDeclaration(org.codehaus.groovy.syntax.parser.CSTNode modifiers, org.codehaus.groovy.syntax.parser.CSTNode type, org.codehaus.groovy.syntax.parser.CSTNode identifier)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode rangeExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode regexPattern()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode relationalExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode returnStatement()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode rootNode(int type)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode rootNode(int type, org.codehaus.groovy.syntax.parser.CSTNode child)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode statement()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode statementBlock()
           
protected  void statementsUntilRightCurly(org.codehaus.groovy.syntax.parser.CSTNode root)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode sugaryMethodCallExpression(org.codehaus.groovy.syntax.parser.CSTNode expr, org.codehaus.groovy.syntax.parser.CSTNode identifier, org.codehaus.groovy.syntax.parser.CSTNode dotExpr)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode switchStatement()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode synchronizedStatement()
           
protected  void throwExpected(int[] expectedTypes)
           
protected  org.codehaus.groovy.syntax.parser.CSTNode throwStatement()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode tryStatement()
           
 org.codehaus.groovy.syntax.parser.CSTNode typeDeclaration()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode unaryExpression()
           
protected  org.codehaus.groovy.syntax.parser.CSTNode whileStatement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(org.codehaus.groovy.syntax.TokenStream tokenStream)
Method Detail

getTokenStream

public org.codehaus.groovy.syntax.TokenStream getTokenStream()

optionalSemicolon

public void optionalSemicolon()
                       throws IOException,
                              SyntaxException
IOException
SyntaxException

compilationUnit

public org.codehaus.groovy.syntax.parser.CSTNode compilationUnit()
                                                          throws IOException,
                                                                 SyntaxException
IOException
SyntaxException

packageDeclaration

public org.codehaus.groovy.syntax.parser.CSTNode packageDeclaration()
                                                             throws IOException,
                                                                    SyntaxException
IOException
SyntaxException

importStatement

public org.codehaus.groovy.syntax.parser.CSTNode importStatement()
                                                          throws IOException,
                                                                 SyntaxException
IOException
SyntaxException

typeDeclaration

public org.codehaus.groovy.syntax.parser.CSTNode typeDeclaration()
                                                          throws IOException,
                                                                 SyntaxException
IOException
SyntaxException

classDeclaration

public org.codehaus.groovy.syntax.parser.CSTNode classDeclaration(org.codehaus.groovy.syntax.parser.CSTNode modifiers)
                                                           throws IOException,
                                                                  SyntaxException
IOException
SyntaxException

interfaceDeclaration

public org.codehaus.groovy.syntax.parser.CSTNode interfaceDeclaration(org.codehaus.groovy.syntax.parser.CSTNode modifiers)
                                                               throws IOException,
                                                                      SyntaxException
IOException
SyntaxException

bodyStatement

public org.codehaus.groovy.syntax.parser.CSTNode bodyStatement()
                                                        throws IOException,
                                                               SyntaxException
IOException
SyntaxException

propertyDeclaration

public org.codehaus.groovy.syntax.parser.CSTNode propertyDeclaration(org.codehaus.groovy.syntax.parser.CSTNode modifiers,
                                                                     org.codehaus.groovy.syntax.parser.CSTNode type,
                                                                     org.codehaus.groovy.syntax.parser.CSTNode identifier)
                                                              throws IOException,
                                                                     SyntaxException
IOException
SyntaxException

methodDeclaration

public org.codehaus.groovy.syntax.parser.CSTNode methodDeclaration(org.codehaus.groovy.syntax.parser.CSTNode modifiers,
                                                                   org.codehaus.groovy.syntax.parser.CSTNode type,
                                                                   org.codehaus.groovy.syntax.parser.CSTNode identifier)
                                                            throws IOException,
                                                                   SyntaxException
IOException
SyntaxException

parameterDeclarationList

protected org.codehaus.groovy.syntax.parser.CSTNode parameterDeclarationList()
                                                                      throws IOException,
                                                                             SyntaxException
IOException
SyntaxException

parameterDeclaration

protected org.codehaus.groovy.syntax.parser.CSTNode parameterDeclaration()
                                                                  throws IOException,
                                                                         SyntaxException
IOException
SyntaxException

parameterDeclarationWithDatatype

protected org.codehaus.groovy.syntax.parser.CSTNode parameterDeclarationWithDatatype()
                                                                              throws IOException,
                                                                                     SyntaxException
IOException
SyntaxException

parameterDeclarationWithoutDatatype

protected org.codehaus.groovy.syntax.parser.CSTNode parameterDeclarationWithoutDatatype()
                                                                                 throws IOException,
                                                                                        SyntaxException
IOException
SyntaxException

datatype

protected org.codehaus.groovy.syntax.parser.CSTNode datatype()
                                                      throws IOException,
                                                             SyntaxException
IOException
SyntaxException

statementBlock

protected org.codehaus.groovy.syntax.parser.CSTNode statementBlock()
                                                            throws IOException,
                                                                   SyntaxException
IOException
SyntaxException

statementsUntilRightCurly

protected void statementsUntilRightCurly(org.codehaus.groovy.syntax.parser.CSTNode root)
                                  throws IOException,
                                         SyntaxException
IOException
SyntaxException

statement

protected org.codehaus.groovy.syntax.parser.CSTNode statement()
                                                       throws IOException,
                                                              SyntaxException
IOException
SyntaxException

switchStatement

protected org.codehaus.groovy.syntax.parser.CSTNode switchStatement()
                                                             throws IOException,
                                                                    SyntaxException
IOException
SyntaxException

breakStatement

protected org.codehaus.groovy.syntax.parser.CSTNode breakStatement()
                                                            throws IOException,
                                                                   SyntaxException
IOException
SyntaxException

continueStatement

protected org.codehaus.groovy.syntax.parser.CSTNode continueStatement()
                                                               throws IOException,
                                                                      SyntaxException
IOException
SyntaxException

throwStatement

protected org.codehaus.groovy.syntax.parser.CSTNode throwStatement()
                                                            throws IOException,
                                                                   SyntaxException
IOException
SyntaxException

synchronizedStatement

protected org.codehaus.groovy.syntax.parser.CSTNode synchronizedStatement()
                                                                   throws IOException,
                                                                          SyntaxException
IOException
SyntaxException

ifStatement

protected org.codehaus.groovy.syntax.parser.CSTNode ifStatement()
                                                         throws IOException,
                                                                SyntaxException
IOException
SyntaxException

tryStatement

protected org.codehaus.groovy.syntax.parser.CSTNode tryStatement()
                                                          throws IOException,
                                                                 SyntaxException
IOException
SyntaxException

returnStatement

protected org.codehaus.groovy.syntax.parser.CSTNode returnStatement()
                                                             throws IOException,
                                                                    SyntaxException
IOException
SyntaxException

whileStatement

protected org.codehaus.groovy.syntax.parser.CSTNode whileStatement()
                                                            throws IOException,
                                                                   SyntaxException
IOException
SyntaxException

forStatement

protected org.codehaus.groovy.syntax.parser.CSTNode forStatement()
                                                          throws IOException,
                                                                 SyntaxException
IOException
SyntaxException

assertStatement

protected org.codehaus.groovy.syntax.parser.CSTNode assertStatement()
                                                             throws IOException,
                                                                    SyntaxException
IOException
SyntaxException

expression

protected org.codehaus.groovy.syntax.parser.CSTNode expression()
                                                        throws IOException,
                                                               SyntaxException
IOException
SyntaxException

assignmentExpression

protected org.codehaus.groovy.syntax.parser.CSTNode assignmentExpression()
                                                                  throws IOException,
                                                                         SyntaxException
IOException
SyntaxException

conditionalExpression

protected org.codehaus.groovy.syntax.parser.CSTNode conditionalExpression()
                                                                   throws IOException,
                                                                          SyntaxException
IOException
SyntaxException

logicalOrExpression

protected org.codehaus.groovy.syntax.parser.CSTNode logicalOrExpression()
                                                                 throws IOException,
                                                                        SyntaxException
IOException
SyntaxException

logicalAndExpression

protected org.codehaus.groovy.syntax.parser.CSTNode logicalAndExpression()
                                                                  throws IOException,
                                                                         SyntaxException
IOException
SyntaxException

equalityExpression

protected org.codehaus.groovy.syntax.parser.CSTNode equalityExpression()
                                                                throws IOException,
                                                                       SyntaxException
IOException
SyntaxException

relationalExpression

protected org.codehaus.groovy.syntax.parser.CSTNode relationalExpression()
                                                                  throws IOException,
                                                                         SyntaxException
IOException
SyntaxException

rangeExpression

protected org.codehaus.groovy.syntax.parser.CSTNode rangeExpression()
                                                             throws IOException,
                                                                    SyntaxException
IOException
SyntaxException

additiveExpression

protected org.codehaus.groovy.syntax.parser.CSTNode additiveExpression()
                                                                throws IOException,
                                                                       SyntaxException
IOException
SyntaxException

multiplicativeExpression

protected org.codehaus.groovy.syntax.parser.CSTNode multiplicativeExpression()
                                                                      throws IOException,
                                                                             SyntaxException
IOException
SyntaxException

unaryExpression

protected org.codehaus.groovy.syntax.parser.CSTNode unaryExpression()
                                                             throws IOException,
                                                                    SyntaxException
IOException
SyntaxException

postfixExpression

protected org.codehaus.groovy.syntax.parser.CSTNode postfixExpression()
                                                               throws IOException,
                                                                      SyntaxException
IOException
SyntaxException

primaryExpression

protected org.codehaus.groovy.syntax.parser.CSTNode primaryExpression()
                                                               throws IOException,
                                                                      SyntaxException
IOException
SyntaxException

sugaryMethodCallExpression

protected org.codehaus.groovy.syntax.parser.CSTNode sugaryMethodCallExpression(org.codehaus.groovy.syntax.parser.CSTNode expr,
                                                                               org.codehaus.groovy.syntax.parser.CSTNode identifier,
                                                                               org.codehaus.groovy.syntax.parser.CSTNode dotExpr)
                                                                        throws IOException,
                                                                               SyntaxException
IOException
SyntaxException

regexPattern

protected org.codehaus.groovy.syntax.parser.CSTNode regexPattern()
                                                          throws IOException,
                                                                 SyntaxException
IOException
SyntaxException

doubleQuotedString

protected org.codehaus.groovy.syntax.parser.CSTNode doubleQuotedString()
                                                                throws IOException,
                                                                       SyntaxException
IOException
SyntaxException

parentheticalExpression

protected org.codehaus.groovy.syntax.parser.CSTNode parentheticalExpression()
                                                                     throws IOException,
                                                                            SyntaxException
IOException
SyntaxException

parameterList

protected org.codehaus.groovy.syntax.parser.CSTNode parameterList(int endOfListDemarc)
                                                           throws IOException,
                                                                  SyntaxException
IOException
SyntaxException

namedParameterList

protected org.codehaus.groovy.syntax.parser.CSTNode namedParameterList(int endOfListDemarc)
                                                                throws IOException,
                                                                       SyntaxException
IOException
SyntaxException

newExpression

protected org.codehaus.groovy.syntax.parser.CSTNode newExpression()
                                                           throws IOException,
                                                                  SyntaxException
IOException
SyntaxException

closureExpression

protected org.codehaus.groovy.syntax.parser.CSTNode closureExpression()
                                                               throws IOException,
                                                                      SyntaxException
IOException
SyntaxException

listOrMapExpression

protected org.codehaus.groovy.syntax.parser.CSTNode listOrMapExpression()
                                                                 throws IOException,
                                                                        SyntaxException
IOException
SyntaxException

mapExpression

protected org.codehaus.groovy.syntax.parser.CSTNode mapExpression(org.codehaus.groovy.syntax.parser.CSTNode key)
                                                           throws IOException,
                                                                  SyntaxException
IOException
SyntaxException

listExpression

protected org.codehaus.groovy.syntax.parser.CSTNode listExpression(org.codehaus.groovy.syntax.parser.CSTNode entry)
                                                            throws IOException,
                                                                   SyntaxException
IOException
SyntaxException

argumentList

protected org.codehaus.groovy.syntax.parser.CSTNode argumentList()
                                                          throws IOException,
                                                                 SyntaxException
IOException
SyntaxException

isModifier

protected static boolean isModifier(int type)

throwExpected

protected void throwExpected(int[] expectedTypes)
                      throws IOException,
                             SyntaxException
IOException
SyntaxException

consumeUntil

protected void consumeUntil(int type)
                     throws IOException,
                            SyntaxException
IOException
SyntaxException

la

protected org.codehaus.groovy.syntax.Token la()
                                       throws IOException,
                                              SyntaxException
IOException
SyntaxException

lt

protected int lt()
          throws IOException,
                 SyntaxException
IOException
SyntaxException

la

protected org.codehaus.groovy.syntax.Token la(int k)
                                       throws IOException,
                                              SyntaxException
IOException
SyntaxException

lt

protected int lt(int k)
          throws IOException,
                 SyntaxException
IOException
SyntaxException

consume

protected org.codehaus.groovy.syntax.Token consume(int type)
                                            throws IOException,
                                                   SyntaxException
IOException
SyntaxException

consume

protected void consume(org.codehaus.groovy.syntax.parser.CSTNode root,
                       int type)
                throws IOException,
                       SyntaxException
IOException
SyntaxException

consumeUntil_bare

protected void consumeUntil_bare(int type)
                          throws IOException,
                                 SyntaxException
IOException
SyntaxException

la_bare

protected org.codehaus.groovy.syntax.Token la_bare()
                                            throws IOException,
                                                   SyntaxException
IOException
SyntaxException

lt_bare

protected int lt_bare()
               throws IOException,
                      SyntaxException
IOException
SyntaxException

la_bare

protected org.codehaus.groovy.syntax.Token la_bare(int k)
                                            throws IOException,
                                                   SyntaxException
IOException
SyntaxException

lt_bare

protected int lt_bare(int k)
               throws IOException,
                      SyntaxException
IOException
SyntaxException

consume_bare

protected org.codehaus.groovy.syntax.Token consume_bare(int type)
                                                 throws IOException,
                                                        SyntaxException
IOException
SyntaxException

consume_bare

protected void consume_bare(org.codehaus.groovy.syntax.parser.CSTNode root,
                            int type)
                     throws IOException,
                            SyntaxException
IOException
SyntaxException

rootNode

protected org.codehaus.groovy.syntax.parser.CSTNode rootNode(int type)
                                                      throws IOException,
                                                             SyntaxException
IOException
SyntaxException

rootNode

protected org.codehaus.groovy.syntax.parser.CSTNode rootNode(int type,
                                                             org.codehaus.groovy.syntax.parser.CSTNode child)
                                                      throws IOException,
                                                             SyntaxException
IOException
SyntaxException


Copyright © 2003 The Codehaus. All Rights Reserved.