Uses of Class
org.codehaus.groovy.syntax.SyntaxException

Packages that use SyntaxException
org.codehaus.groovy.control   
org.codehaus.groovy.control.messages   
org.codehaus.groovy.syntax   
org.codehaus.groovy.syntax.lexer   
org.codehaus.groovy.syntax.parser   
 

Uses of SyntaxException in org.codehaus.groovy.control
 

Methods in org.codehaus.groovy.control that return SyntaxException
 SyntaxException ProcessingUnit.getSyntaxError(int index)
          Convenience routine to return the specified error's underlying SyntaxException, or null if it isn't one.
 

Methods in org.codehaus.groovy.control with parameters of type SyntaxException
 void SourceUnit.addError(SyntaxException error)
          Convenience wrapper for addError().
 

Uses of SyntaxException in org.codehaus.groovy.control.messages
 

Fields in org.codehaus.groovy.control.messages declared as SyntaxException
protected  SyntaxException SyntaxErrorMessage.cause
           
 

Methods in org.codehaus.groovy.control.messages that return SyntaxException
 SyntaxException SyntaxErrorMessage.getCause()
          Returns the underlying SyntaxException.
 

Methods in org.codehaus.groovy.control.messages with parameters of type SyntaxException
static Message Message.create(SyntaxException error)
          Creates a new Message from the specified SyntaxException.
 

Constructors in org.codehaus.groovy.control.messages with parameters of type SyntaxException
SyntaxErrorMessage(SyntaxException cause)
           
 

Uses of SyntaxException in org.codehaus.groovy.syntax
 

Subclasses of SyntaxException in org.codehaus.groovy.syntax
 class TokenException
           
 class TokenMismatchException
           
 

Methods in org.codehaus.groovy.syntax that throw SyntaxException
protected abstract  Token AbstractTokenStream.nextToken()
          Implemented by concrete subtypes, provides access to the next token in the underlying stream.
 Token AbstractTokenStream.la()
          Returns the next token in the stream without consuming it.
 Token AbstractTokenStream.la(int k)
          Returns the kth token in the stream without consuming it (or any other unconsumed tokens).
 Token AbstractTokenStream.consume(int type)
          Removes and returns the first token in the stream, provided it matches the specified type.
 Token AbstractTokenStream.consume()
          Removes and returns the first token in the stream, provided it isn't the EOF.
 Token TokenStream.la()
          Looks-ahead to the next token.
 Token TokenStream.la(int k)
          Looks-ahead to the kth token.
 Token TokenStream.consume(int type)
          Consumes the next token.
 

Uses of SyntaxException in org.codehaus.groovy.syntax.lexer
 

Subclasses of SyntaxException in org.codehaus.groovy.syntax.lexer
 class LexerException
          Base exception indicating a lexical error.
 class UnexpectedCharacterException
           
 class UnterminatedStringLiteralException
           
 

Methods in org.codehaus.groovy.syntax.lexer that throw SyntaxException
 Token LexerTokenStream.nextToken()
          Returns the next token from the Lexer.
 

Uses of SyntaxException in org.codehaus.groovy.syntax.parser
 

Subclasses of SyntaxException in org.codehaus.groovy.syntax.parser
 class ParserException
           
 class UnexpectedTokenException
           
 

Methods in org.codehaus.groovy.syntax.parser that throw SyntaxException
 void Parser.optionalNewlines()
          Eats any optional newlines.
 void Parser.endOfStatement(boolean allowRightCurlyBrace)
          Eats a required end-of-statement (semicolon or newline) from the stream.
 void Parser.endOfStatement()
          A synonym for endOfStatement( true ).
 CSTNode Parser.dottedIdentifier()
          Processes a dotted identifer.
 Reduction Parser.module()
          The primary file-level parsing entry point.
 Reduction Parser.packageDeclaration()
          Processes a package declaration.
 Reduction Parser.importStatement()
          Processes an import statement.
 CSTNode Parser.topLevelStatement()
          Processes a top level statement (classes, interfaces, unattached methods, and unattached code).
 CSTNode Parser.typeDeclaration()
          A synomym for topLevelStatement().
 Reduction Parser.modifierList(boolean allowStatic, boolean allowAbstract)
          Processes the modifiers list that can appear on top- and class-level method and class-level variable names (public, private, abstract, etc.).
 Reduction Parser.classDeclaration(Reduction modifiers)
          Processes a class declaration.
 Reduction Parser.interfaceDeclaration(Reduction modifiers)
          Processes a interface declaration.
 Reduction Parser.typeList(int declarator, boolean optional, int limit)
          Processes a type list, like the ones that occur after "extends" or implements.
 Reduction Parser.typeBody(boolean allowStatic, boolean allowAbstract, boolean requireAbstract)
          Processes the body of an interface or class.
 Reduction Parser.typeBodyStatement(boolean allowStatic, boolean allowAbstract, boolean requireAbstract)
          Processes a single entry in the the body of an interface or class.
 Reduction Parser.bodyStatement()
          A synonym for typeBodyStatement( true, true, false ).
protected  Token Parser.nameDeclaration(boolean significantNewlines)
          Processes a name that is valid for declarations.
protected  Token Parser.nameReference(boolean significantNewlines)
          Processes a reference to a declared name.
protected  CSTNode Parser.optionalDatatype(boolean significantNewlines, boolean allowVoid)
          Processes an optional data type marker (for a parameter, method return type, etc.).
 Reduction Parser.propertyDeclaration(Reduction modifiers, CSTNode type, Token identifier)
          Processes a class/interface property, including the optional initialization clause.
 Reduction Parser.methodDeclaration(Reduction modifiers, CSTNode type, Token identifier, boolean emptyOnly)
          Processes a class/interface method.
protected  Reduction Parser.parameterDeclarationList()
          Processes a parameter declaration list, which can occur on methods and closures.
protected  Reduction Parser.parameterDeclaration()
          Processes a single parameter declaration, which can occur on methods and closures.
protected  CSTNode Parser.datatype(boolean allowVoid)
          Processes a datatype specification.
protected  CSTNode Parser.datatype()
          A synonym for datatype( true ).
protected  CSTNode Parser.scalarDatatype(boolean allowVoid)
          Processes a scalar datatype specification.
protected  CSTNode Parser.statementBody(boolean requireBraces)
          Processes the body of a complex statement (like "if", "for", etc.).
protected  Reduction Parser.statementsUntilRightCurly()
          Reads statements until a "}" is met.
protected  CSTNode Parser.statement(boolean allowUnlabelledBlocks)
          Processes a single statement.
protected  CSTNode Parser.statement()
          Synonym for statement( false ).
protected  Reduction Parser.assertStatement()
          Processes an assert statement.
protected  Reduction Parser.breakStatement()
          Processes a break statement.
protected  Reduction Parser.continueStatement()
          Processes a continue statement.
protected  Reduction Parser.throwStatement()
          Processes a throw statement.
protected  Reduction Parser.ifStatement()
          Processes an if statement.
protected  Reduction Parser.returnStatement()
          Processes a return statement.
protected  Reduction Parser.switchStatement()
          Processes a switch statement.
protected  Reduction Parser.synchronizedStatement()
          Processes a synchronized statement.
protected  Reduction Parser.tryStatement()
          Processes a try statement.
protected  Reduction Parser.forStatement()
          Processes a for statement.
protected  Reduction Parser.doWhileStatement()
          Processes a do ...
protected  Reduction Parser.whileStatement()
          Processes a while statement.
protected  CSTNode Parser.expression()
          Processes a single (sub-)expression into a CSTNode.
protected  Reduction Parser.variableDeclarationExpression(CSTNode datatype)
          Processes a typed variable declaration.
protected  Reduction Parser.gstring()
          Processes a GString.
protected  Reduction Parser.parameterList()
          Processes a NON-EMPTY parameter list, as supplied on either a method invokation or a closure invokation.
protected  Reduction Parser.newExpression()
          Processes a "new" expression.
protected  Reduction Parser.tupleExpression(int level, int depth)
          Processes a "new" array initializer expression.
protected  Reduction Parser.closureExpression()
          Processes a closure expression.
protected  Reduction Parser.listOrMapExpression(boolean isMap, boolean insist)
          Processes a list or map expression.
protected  Reduction Parser.listOrMapExpression()
          Synonym for listOrMapExpression( false, false ).
protected  UnexpectedTokenException Parser.error(Token found, int[] expectedTypes, boolean throwIt, String comment)
          Reports an error assembled from parts.
protected  UnexpectedTokenException Parser.error(int[] expectedTypes, boolean throwIt, int k, String comment)
          Reports an error by generating and optionally throwing an UnexpectedTokenException.
protected  UnexpectedTokenException Parser.error(int[] expectedTypes, boolean throwIt, int k)
          A synonym for error( expectedTypes, throwIt, k, null ).
protected  void Parser.error(int[] expectedTypes)
          A synonym for error( expectedTypes, true, 1, null ).
protected  void Parser.error()
          A synonym for error( null, true, 1, null ).
protected  void Parser.error(String comment)
          A synonym for error( null, true, 1, comment ).
protected  void Parser.error(Token found, String comment)
          A synonym for error( found, null, true, comment ).
protected  void Parser.error(int expectedType)
          A scalar synonym of error( expectedTypes ).
 void Parser.recover(int[] safe, boolean ignoreNewlines)
          Attempts to recover from an error by discarding input until a known token is found.
 void Parser.recover(int safe, boolean ignoreNewlines)
          A scalar version of recover( int[], boolean ).
 void Parser.recover(int[] safe)
          A synonym for recover( safe, false ).
 void Parser.recover(int safe)
          A synonm for the scalar recover( safe, false ).
 void Parser.recover()
          A synonym for recover( Types.ANY_END_OF_STATMENT, true ).
protected  Token Parser.la(int k, boolean significantNewlines)
          Returns (without consuming) the next kth token in the underlying token stream.
protected  Token Parser.la(int k)
          Synonym for la( k, false ).
protected  Token Parser.la(boolean significantNewlines)
          Synonym for la( 1, significantNewlines ).
protected  Token Parser.la()
          Synonym for la( 1, false ).
protected  Token Parser.la(ExpressionStack stack)
          Special la() used by the expression parser.
protected  int Parser.lt(int k, boolean significantNewlines)
          Returns the meaning of the la( k, significantNewlines ) token.
protected  int Parser.lt(int k)
          Returns the meaning of the la( k ) token.
protected  int Parser.lt(boolean significantNewlines)
          Returns the meaning of the la( significantNewlines ) token.
protected  int Parser.lt()
          Returns the meaning of the la() token.
protected  Token Parser.consume(int type, boolean significantNewlines)
          Consumes (and returns) the next token if it is of the specified type.
protected  Token Parser.consume(int type)
          A synonym for consume( type, false ).
protected  Token Parser.consume()
          A synonym for consume( Types.ANY, false ).
protected  Token Parser.consume(boolean significantNewlines)
          A synonym for consume( Types.ANY, significantNewlines ).
 void RuntimeParserException.throwParserException()
           
 



Copyright © 2003-2004 The Codehaus. All Rights Reserved.