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

Packages that use SyntaxException
groovy.lang Core Groovy language classes for implementing data structures, closures, metadata and so forth. 
groovy.text Contains the text processing utilities in particular the template engine API and default implementation. 
org.codehaus.groovy.classgen Generates Java classes for Groovy classes using ASM. 
org.codehaus.groovy.syntax Lexer, parser and trees. 
org.codehaus.groovy.syntax.lexer Lexer. 
org.codehaus.groovy.syntax.parser The main parser of Groovy code into the Groovy AST model (Abstract Syntax Tree)  
org.codehaus.groovy.tools Compiler entry points and miscellaneous development tools. 
 

Uses of SyntaxException in groovy.lang
 

Methods in groovy.lang that throw SyntaxException
 java.lang.Class GroovyClassLoader.parseClass(java.io.File file)
          Parses the given file into a Java class capable of being run
 java.lang.Class GroovyClassLoader.parseClass(java.lang.String text, java.lang.String fileName)
          Parses the given text into a Java class capable of being run
 java.lang.Class GroovyClassLoader.parseClass(java.lang.String text)
          Parses the given text into a Java class capable of being run
 java.lang.Class GroovyClassLoader.parseClass(java.io.InputStream in)
          Parses the given character stream into a Java class capable of being run
 java.lang.Class GroovyClassLoader.parseClass(java.io.InputStream in, java.lang.String fileName)
          Parses the given character stream into a Java class capable of being run
 void GroovyShell.run(java.io.File scriptFile, java.util.List list)
          A helper method which runs the given script file with the given command line arguments
 void GroovyShell.run(java.io.File scriptFile, java.lang.String[] args)
          Runs the given script file name with the given command line arguments
 void GroovyShell.run(java.lang.String scriptText, java.lang.String fileName, java.lang.String[] args)
          Runs the given script text with command line arguments
 java.lang.Object GroovyShell.run(java.io.InputStream in, java.lang.String fileName, java.lang.String[] args)
          Runs the given script with command line arguments
 java.lang.Object GroovyShell.evaluate(java.lang.String scriptText, java.lang.String fileName)
          Evaluates some script against the current Binding and returns the result
 java.lang.Object GroovyShell.evaluate(java.io.File file)
          Evaluates some script against the current Binding and returns the result
 java.lang.Object GroovyShell.evaluate(java.lang.String scriptText)
          Evaluates some script against the current Binding and returns the result
 java.lang.Object GroovyShell.evaluate(java.io.InputStream in)
          Evaluates some script against the current Binding and returns the result
 java.lang.Object GroovyShell.evaluate(java.io.InputStream in, java.lang.String fileName)
          Evaluates some script against the current Binding and returns the result
 Script GroovyShell.parse(java.io.InputStream in, java.lang.String fileName)
          Parses the given script and returns it ready to be run
 Script GroovyShell.parse(java.lang.String scriptText, java.lang.String fileName)
          Parses the given script and returns it ready to be run
 Script GroovyShell.parse(java.io.File file)
          Parses the given script and returns it ready to be run
 Script GroovyShell.parse(java.lang.String scriptText)
          Parses the given script and returns it ready to be run
 Script GroovyShell.parse(java.io.InputStream in)
          Parses the given script and returns it ready to be run
 

Uses of SyntaxException in groovy.text
 

Methods in groovy.text that throw SyntaxException
 Template SimpleTemplateEngine.createTemplate(java.io.Reader reader)
           
abstract  Template TemplateEngine.createTemplate(java.io.Reader reader)
           
 Template TemplateEngine.createTemplate(java.lang.String templateText)
           
 Template TemplateEngine.createTemplate(java.io.File file)
           
 Template TemplateEngine.createTemplate(java.net.URL url)
           
 

Uses of SyntaxException in org.codehaus.groovy.classgen
 

Methods in org.codehaus.groovy.classgen that throw SyntaxException
 void CompilerFacade.parseClass(java.io.InputStream in, java.lang.String file)
          Parses the given character stream into a number of ClassNode instances
protected  void CompilerFacade.parseClass(CharStream charStream, java.lang.String file)
           
 

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 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 ).
 void Parser.recover(int[] safe, boolean useBare)
          Attempts to recover from an error by discarding input until a known token is found.
 void Parser.recover(int[] safe)
          A synonym for recover( safe, false ).
 void Parser.recover()
          A synonym for recover( STATEMENT_TERMNINATORS, true ).
 CSTNode Parser.compilationUnit()
          The primary file-level parsing entry point.
 CSTNode Parser.packageDeclaration()
          Processes a package declaration.
 CSTNode 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().
 CSTNode 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.).
 CSTNode Parser.classDeclaration(CSTNode modifiers)
          Processes a class declaration.
 CSTNode Parser.interfaceDeclaration(CSTNode modifiers)
          Processes a interface declaration.
 CSTNode Parser.typeList(int declarator, int[] until, boolean optional, int limit)
          Processes a type list, like the ones that occur after "extends" or implements.
 CSTNode Parser.typeBody(boolean allowStatic, boolean allowAbstract, boolean requireAbstract)
          Processes the body of an interface or class.
 CSTNode Parser.typeBodyStatement(boolean allowStatic, boolean allowAbstract, boolean requireAbstract)
          Processes a single entry in the the body of an interface or class.
 CSTNode Parser.bodyStatement()
          A synonym for typeBodyStatement( true, true, false ).
protected  CSTNode Parser.nameDeclaration(boolean useBare)
          Processes a name that is valid for declarations.
protected  CSTNode Parser.nameReference(boolean useBare)
          Processes a reference to a declared name.
protected  CSTNode Parser.optionalDatatype(boolean useBare, boolean allowVoid)
          Processes an optional data type marker (for a parameter, method return type, etc.).
 CSTNode Parser.propertyDeclaration(CSTNode modifiers, CSTNode type, CSTNode identifier)
          Processes a class/interface property, including the optional initialization clause.
 CSTNode Parser.methodDeclaration(CSTNode modifiers, CSTNode type, CSTNode identifier, boolean emptyOnly)
          Processes a class/interface method.
protected  CSTNode Parser.parameterDeclarationList()
          Processes a parameter declaration list, which can occur on methods and closures.
protected  CSTNode 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  CSTNode Parser.statementsUntilRightCurly(CSTNode root)
          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  CSTNode Parser.switchStatement()
          Processes a switch statement.
protected  CSTNode Parser.breakStatement()
          Processes a break statement.
protected  CSTNode Parser.continueStatement()
          Processes a continue statement.
protected  CSTNode Parser.throwStatement()
          Processes a throw statement.
protected  CSTNode Parser.synchronizedStatement()
          Processes a synchronized statement.
protected  CSTNode Parser.ifStatement()
          Processes an if statement.
protected  CSTNode Parser.tryStatement()
          Processes an try statement.
protected  CSTNode Parser.returnStatement()
          Processes a return statement.
protected  CSTNode Parser.whileStatement()
          Processes a while statement.
protected  CSTNode Parser.doWhileStatement()
          Processes a do ...
protected  CSTNode Parser.forStatement()
          Processes a for statement.
protected  CSTNode Parser.assertStatement()
           
protected  CSTNode Parser.expression()
           
protected  CSTNode Parser.assignmentExpression()
           
protected  CSTNode Parser.ternaryExpression()
           
protected  CSTNode Parser.logicalOrExpression()
           
protected  CSTNode Parser.logicalAndExpression()
           
protected  CSTNode Parser.equalityExpression()
           
protected  CSTNode Parser.relationalExpression()
           
protected  CSTNode Parser.rangeExpression()
           
protected  CSTNode Parser.additiveExpression()
           
protected  CSTNode Parser.multiplicativeExpression()
           
protected  CSTNode Parser.unaryExpression()
           
protected  CSTNode Parser.postfixExpression()
           
protected  CSTNode Parser.primaryExpression()
           
protected  CSTNode Parser.subscriptExpression(CSTNode expr)
           
protected  CSTNode Parser.methodCallOrPropertyExpression(CSTNode expr)
           
protected  CSTNode Parser.sugaryMethodCallExpression(CSTNode expr, CSTNode identifier, CSTNode dotExpr)
           
protected  CSTNode Parser.tryParseMethodCallWithoutParenthesis(CSTNode expr, CSTNode identifier)
           
protected  CSTNode Parser.methodCallWithoutParenthesis(CSTNode expr, CSTNode identifier)
           
protected  boolean Parser.lookAheadForMethodCall()
           
protected  CSTNode Parser.regexPattern()
           
protected  CSTNode Parser.doubleQuotedString()
           
protected  CSTNode Parser.parentheticalExpression()
           
protected  CSTNode Parser.parameterList(int endOfListDemarc)
           
protected  CSTNode Parser.namedParameterList(int endOfListDemarc)
           
protected  CSTNode Parser.newExpression()
           
protected  CSTNode Parser.closureExpression()
           
protected  CSTNode Parser.closureExpression(boolean pipeRequired)
           
protected  CSTNode Parser.listOrMapExpression()
           
protected  CSTNode Parser.mapExpression(CSTNode key)
           
protected  CSTNode Parser.listExpression(CSTNode entry)
           
protected  CSTNode Parser.argumentList()
           
protected  void Parser.throwExpected(int[] expectedTypes)
          Throws an UnexpectedTokenException.
protected  Token Parser.require(Token token)
          Ensures that a Token is not null.
protected  Token Parser.la()
          Returns (without consuming) the next non-newline token in the underlying token stream.
protected  Token Parser.la(int k)
          Returns (without consuming any tokens) the next kth non-newline token from the underlying token stream.
protected  int Parser.lt()
          Returns the type of the la() token, or -1.
protected  int Parser.lt(int k)
          Returns the type of the la(k) token, or -1.
protected  void Parser.consumeUntil(int type)
          Consumes tokens until one of the specified type is consumed.
protected  Token Parser.consume(int type)
          Consumes (and returns) the next token if it is of the specified type, or throws an UnexpectedTokenException.
protected  void Parser.consume(CSTNode root, int type)
          Adds a CSTNode of the result of consume(type) as a child of root.
protected  CSTNode Parser.rootNode(int type)
          Returns a new CSTNode that holds the result of consume(type).
protected  CSTNode Parser.rootNode(int type, CSTNode child)
          Identical to rootNode(type), but adds child as a child of the newly created node.
protected  Token Parser.la_bare()
          Returns (without consuming) the next token in the underlying token stream (newlines included).
protected  Token Parser.la_bare(int k)
          Returns (without consuming any tokens) the next kth token from the underlying token stream (newlines included).
protected  int Parser.lt_bare()
          Returns the type of the la_bare() token, or -1.
protected  int Parser.lt_bare(int k)
          Returns the type of the la_bare(k) token, or -1.
protected  void Parser.consumeUntil_bare(int type)
          Consumes tokens until one of the specified type is consumed.
protected  Token Parser.consume_bare(int type)
          Consumes (and returns) the next token if it is of the specified type, or throws UnexpectedTokenException.
protected  void Parser.consume_bare(CSTNode root, int type)
          Analogous to consume(root, type), exception consumes with consume_bare.
protected  CSTNode Parser.rootNode_bare(int type)
          Analagous to rootNode(type), except consumes with consume_bare.
protected  CSTNode Parser.rootNode_bare(int type, CSTNode child)
          Analagous to rootNode(type, child), except consumes with consume_bare().
 void RuntimeParserException.throwParserException()
           
 

Uses of SyntaxException in org.codehaus.groovy.tools
 

Methods in org.codehaus.groovy.tools with parameters of type SyntaxException
protected  void ErrorReporter.report(SyntaxException e, boolean child)
          For SyntaxException.
 



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