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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parser
public Parser(org.codehaus.groovy.syntax.TokenStream tokenStream)
getTokenStream
public org.codehaus.groovy.syntax.TokenStream getTokenStream()
optionalSemicolon
public void optionalSemicolon()
throws IOException,
SyntaxException
IOException
SyntaxException
optionalNewlines
public void optionalNewlines()
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
statementOrStatementBlock
protected org.codehaus.groovy.syntax.parser.CSTNode statementOrStatementBlock()
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.