Uses of Class
org.modeshape.common.text.ParsingException

Packages that use ParsingException
org.modeshape.cnd Compact Node Definition (CND) defines JCR node types, property definitions, and child node definitions in a concise and easy-to-read form. 
org.modeshape.common.text A set of utilities for working with text. 
org.modeshape.graph.query.parse This package defines the QueryParser interface, which defines a component that can parse a query represented in a specific language and produce the corresponding abstract query model representation. 
org.modeshape.sequencer.ddl The classes that make up the DDL sequencer, which is capable of parsing the more important DDL statements from SQL-92, Oracle, Derby, and PostgreSQL, and constructing a graph structure containing a structured representation of these statements. 
org.modeshape.sequencer.ddl.datatype The classes for parsing and representing data types. 
org.modeshape.sequencer.ddl.dialect.derby The classes for parsing DDL for the Derby DBMS. 
org.modeshape.sequencer.ddl.dialect.mysql The (prototype) classes for parsing DDL for the MySQL DBMS. 
org.modeshape.sequencer.ddl.dialect.oracle The classes for parsing DDL for the Oracle DBMS. 
org.modeshape.sequencer.ddl.dialect.postgres The classes for parsing DDL for the PostgreSQL DBMS. 
 

Uses of ParsingException in org.modeshape.cnd
 

Methods in org.modeshape.cnd that throw ParsingException
 void CndTokenizer.tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens)
          Process the supplied characters and construct the appropriate TokenStream.Token objects.
 

Uses of ParsingException in org.modeshape.common.text
 

Methods in org.modeshape.common.text that throw ParsingException
 String TokenStream.consume()
          Return the value of this token and move to the next token.
 void TokenStream.consume(char expected)
          Attempt to consume this current token as long as it matches the expected character, or throw an exception if the token does not match.
 void TokenStream.consume(int expectedType)
          Attempt to consume this current token as long as it matches the expected character, or throw an exception if the token does not match.
 void TokenStream.consume(Iterable<String> nextTokens)
          Attempt to consume this current token as the next tokens as long as they match the expected values, or throw an exception if the token does not match.
 void TokenStream.consume(String expected)
          Attempt to consume this current token as long as it matches the expected value, or throw an exception if the token does not match.
 void TokenStream.consume(String[] nextTokens)
          Attempt to consume this current token as the next tokens as long as they match the expected values, or throw an exception if the token does not match.
 void TokenStream.consume(String expected, String... expectedForNextTokens)
          Attempt to consume this current token as the next tokens as long as they match the expected values, or throw an exception if the token does not match.
 boolean TokenStream.consumeBoolean()
          Convert the value of this token to an integer, return it, and move to the next token.
 int TokenStream.consumeInteger()
          Convert the value of this token to an integer, return it, and move to the next token.
 long TokenStream.consumeLong()
          Convert the value of this token to a long, return it, and move to the next token.
 TokenStream TokenStream.start()
          Begin the token stream, including (if required) the tokenization of the input content.
protected  void TokenStream.throwNoMoreContent()
           
 void TokenStream.Tokenizer.tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens)
          Process the supplied characters and construct the appropriate TokenStream.Token objects.
 void TokenStream.BasicTokenizer.tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens)
          Process the supplied characters and construct the appropriate TokenStream.Token objects.
 

Uses of ParsingException in org.modeshape.graph.query.parse
 

Methods in org.modeshape.graph.query.parse that throw ParsingException
 void SqlQueryParser.SqlTokenizer.tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens)
          Process the supplied characters and construct the appropriate TokenStream.Token objects.
 void FullTextSearchParser.TermTokenizer.tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens)
          Process the supplied characters and construct the appropriate TokenStream.Token objects.
 

Uses of ParsingException in org.modeshape.sequencer.ddl
 

Subclasses of ParsingException in org.modeshape.sequencer.ddl
 class DdlParserProblem
          A special form of DdlConstants.Problems that is also a ParsingException.
 

Methods in org.modeshape.sequencer.ddl that throw ParsingException
protected  boolean StandardDdlParser.areNextTokensCreateTableOptions(DdlTokenStream tokens)
           
protected  boolean StandardDdlParser.consumeComment(DdlTokenStream tokens)
          Consumes an an end-of-line comment or in-line comment
protected  String StandardDdlParser.consumeIdentifier(DdlTokenStream tokens)
          Consumes an token identifier which can be of the form of a simple string or a double-quoted string.
protected  String StandardDdlParser.consumeParenBoundedTokens(DdlTokenStream tokens, boolean includeParens)
          Simple method which parses, consumes and returns a string representing text found between parenthesis (i.e. '()') If parents don't exist, method returns NULL;
protected  String StandardDdlParser.getTableElementsString(DdlTokenStream tokens, boolean useTerminator)
          Method which extracts the table element string from a CREATE TABLE statement.
 AstNode StandardDdlParser.handleUnknownToken(DdlTokenStream tokens, String tokenValue)
          Utility method subclasses can override to check unknown tokens and perform additional node manipulation.
protected  boolean StandardDdlParser.isColumnDefinitionStart(DdlTokenStream tokens)
          This utility method provides this parser the ability to distinguish between a CreateTable Constrain and a ColumnDefinition Definition which are the only two statement segment types allowed within the CREATE TABLE parenthesis ( xxxxxx );
protected  boolean StandardDdlParser.isComment(DdlTokenStream tokens)
          Checks if next token is of type comment.
protected  boolean StandardDdlParser.isTableConstraint(DdlTokenStream tokens)
          This utility method provides this parser the ability to distinguish between a CreateTable Constraint and a ColumnDefinition Definition which are the only two statement segment types allowed within the CREATE TABLE parenthesis ( xxxxxx );
protected  boolean StandardDdlParser.isTerminator(DdlTokenStream tokens)
          Utility method to determine if next token is a terminator.
 void StandardDdlParser.parse(String ddl, AstNode rootNode, Object scoreReturnObject)
          Parses a DDL string, adding child AstNodes and properties to the supplied root.
 void DdlParser.parse(String ddl, AstNode rootNode, Object scoreReturnObject)
          Parses a DDL string, adding child AstNodes and properties to the supplied root.
 AstNode DdlParsers.parse(String ddl, String fileName)
          Parse the supplied DDL content and return the root node of the AST representation.
protected  AstNode StandardDdlParser.parseAlterStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL ALTER statement based on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseAlterTableStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL ALTER TABLE AstNode based on SQL 92 specifications.
protected  boolean StandardDdlParser.parseCollateClause(DdlTokenStream tokens, AstNode columnNode)
          Parses the default clause for a column and sets appropriate properties on the column node.
protected  boolean StandardDdlParser.parseColumnConstraint(DdlTokenStream tokens, AstNode columnNode, boolean isAlterTable)
          Parses an in-line column constraint including NULLABLE value, UNIQUE, PRIMARY KEY and REFERENCES to a Foreign Key.
protected  void StandardDdlParser.parseColumnDefinition(DdlTokenStream tokens, AstNode tableNode, boolean isAlterTable)
          Utility method to parse the actual column definition.
protected  List<String> StandardDdlParser.parseColumnNameList(DdlTokenStream tokens)
          Parses a comma separated list of column names.
protected  void StandardDdlParser.parseColumnsAndConstraints(DdlTokenStream tokens, AstNode tableNode)
          Utility method to parse columns and table constraints within either a CREATE TABLE statement.
protected  void StandardDdlParser.parseConstraintAttributes(DdlTokenStream tokens, AstNode constraintNode)
          Parses the attributes associated with any in-line column constraint definition or a table constrain definition.
protected  AstNode StandardDdlParser.parseCreateAssertionStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE ASSERTION AstNode based on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseCreateCharacterSetStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE CHARACTER SET AstNode based on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseCreateCollationStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE COLLATION AstNode based on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseCreateDomainStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE DOMAIN AstNode based on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseCreateSchemaStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE SCHEMA AstNode based on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseCreateStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE statement based on SQL 92 specifications.
protected  void StandardDdlParser.parseCreateTableOptions(DdlTokenStream tokens, AstNode tableNode)
           
protected  AstNode StandardDdlParser.parseCreateTableStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE TABLE AstNode based on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseCreateTranslationStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE TRANSLATION AstNode based on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseCreateViewStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE VIEW AstNode basedregisterStatementStartPhrase on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseCustomStatement(DdlTokenStream tokens, AstNode parentNode)
          Catch-all method to parse unknown (not registered or handled by sub-classes) statements.
protected  boolean StandardDdlParser.parseDefaultClause(DdlTokenStream tokens, AstNode columnNode)
          Parses the default clause for a column and sets appropriate properties on the column node.
protected  AstNode StandardDdlParser.parseDropStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL DROP AstNode based on SQL 92 specifications.
protected  void StandardDdlParser.parseGrantPrivileges(DdlTokenStream tokens, List<AstNode> privileges)
           
protected  AstNode StandardDdlParser.parseGrantStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL GRANT statement AstNode based on SQL 92 specifications.
protected  AstNode StandardDdlParser.parseInsertStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL INSERT AstNode based on SQL 92 specifications.
protected  void StandardDdlParser.parseNextCreateTableOption(DdlTokenStream tokens, AstNode tableNode)
           
protected  void StandardDdlParser.parseReferences(DdlTokenStream tokens, AstNode constraintNode)
           
protected  AstNode StandardDdlParser.parseRevokeStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode StandardDdlParser.parseSetStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL SET AstNode based on SQL 92 specifications.
protected  void StandardDdlParser.parseSingleTerminatedColumnDefinition(DdlTokenStream tokens, AstNode tableNode, boolean isAlterTable)
          Utility method to parse the actual column definition.
protected  void StandardDdlParser.parseTableConstraint(DdlTokenStream tokens, AstNode tableNode, boolean isAlterTable)
          Parses full table constraint definition including the "CONSTRAINT" token Examples: CONSTRAINT P_KEY_2a UNIQUE (PERMISSIONUID)
protected  String StandardDdlParser.parseUntilCommaOrTerminator(DdlTokenStream tokens)
           
protected  String StandardDdlParser.parseUntilSemiColon(DdlTokenStream tokens)
          Utility method which parses tokens until a semicolon is found or there are no more tokens.
protected  String StandardDdlParser.parseUntilTerminator(DdlTokenStream tokens)
          Utility method which parses tokens until a terminator is found, another statement is identified or there are no more tokens.
protected  String StandardDdlParser.parseUntilTerminatorIgnoreEmbeddedStatements(DdlTokenStream tokens)
          Utility method which parses tokens until a terminator is found or there are no more tokens.
 Object StandardDdlParser.score(String ddl, String fileName, DdlParserScorer scorer)
          Determine this parser's score for the given DDL string.
 Object DdlParser.score(String ddl, String fileName, DdlParserScorer scorer)
          Determine this parser's score for the given DDL string.
 void DdlTokenStream.DdlTokenizer.tokenize(TokenStream.CharacterStream input, TokenStream.Tokens tokens)
          Process the supplied characters and construct the appropriate TokenStream.Token objects.
 

Uses of ParsingException in org.modeshape.sequencer.ddl.datatype
 

Methods in org.modeshape.sequencer.ddl.datatype that throw ParsingException
protected  boolean DataTypeParser.canConsume(DdlTokenStream tokens, DataType dataType, boolean addSpacePrefix, int type)
           
protected  boolean DataTypeParser.canConsume(DdlTokenStream tokens, DataType dataType, boolean addSpacePrefix, String[] additionalStrs)
           
protected  boolean DataTypeParser.canConsume(DdlTokenStream tokens, DataType dataType, boolean addSpacePrefix, String initialStr, String... additionalStrs)
           
protected  boolean DataTypeParser.canConsumeAnyOf(DdlTokenStream tokens, DataType dataType, boolean addSpacePrefix, String initialStr, String... additionalStrs)
           
protected  String DataTypeParser.consume(DdlTokenStream tokens, DataType dataType, boolean addSpacePrefix)
           
protected  String DataTypeParser.consume(DdlTokenStream tokens, DataType dataType, boolean addSpacePrefix, String str)
           
protected  String DataTypeParser.consume(DdlTokenStream tokens, DataType dataType, boolean addSpacePrefix, String[] additionalStrs)
           
protected  String DataTypeParser.consume(DdlTokenStream tokens, DataType dataType, boolean addSpacePrefix, String initialStr, String... additionalStrs)
           
protected  boolean DataTypeParser.isCustomDataType(DdlTokenStream tokens)
          Method to determine of next tokens represent a custom data type.
 boolean DataTypeParser.isDatatype(DdlTokenStream tokens)
          Method determines if the next set of tokens matches one of the registered data type token sets.
 DataType DataTypeParser.parse(DdlTokenStream tokens)
          Method which performs the actual parsing of the data type name and applicable values (i.e.
protected  DataType DataTypeParser.parseApproxNumericType(DdlTokenStream tokens)
          Parses SQL-92 Approximate numeric data types.
protected  DataType DataTypeParser.parseBitStringType(DdlTokenStream tokens)
          Parses SQL-92 Bit string data types.
protected  DataType DataTypeParser.parseCharStringType(DdlTokenStream tokens)
          Parses SQL-92 Character string data types.
protected  DataType DataTypeParser.parseCustomType(DdlTokenStream tokens)
          General catch-all data type parsing method that sub-classes can override to parse database-specific data types.
protected  DataType DataTypeParser.parseDateTimeType(DdlTokenStream tokens)
          Parses SQL-92 Date and Time data types.
protected  DataType DataTypeParser.parseExactNumericType(DdlTokenStream tokens)
          Parses SQL-92 Exact numeric data types.
protected  DataType DataTypeParser.parseMiscellaneousType(DdlTokenStream tokens)
          Parses SQL-92 Misc data types.
protected  DataType DataTypeParser.parseNationalCharStringType(DdlTokenStream tokens)
          Parses SQL-92 National Character string data types.
 

Uses of ParsingException in org.modeshape.sequencer.ddl.dialect.derby
 

Methods in org.modeshape.sequencer.ddl.dialect.derby that throw ParsingException
protected  AstNode DerbyDdlParser.parseAlterTableStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL ALTER TABLE AstNode based on SQL 92 specifications.
protected  void DerbyDdlParser.parseColumnDefinition(DdlTokenStream tokens, AstNode tableNode, boolean isAlterTable)
          Utility method to parse the actual column definition.
protected  void DerbyDdlParser.parseColumns(DdlTokenStream tokens, AstNode tableNode, boolean isAlterTable)
          Utility method designed to parse columns within an ALTER TABLE ADD statement.
protected  AstNode DerbyDdlParser.parseCreateFunction(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE FUNCTION statement
protected  AstNode DerbyDdlParser.parseCreateIndex(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE INDEX
protected  AstNode DerbyDdlParser.parseCreateProcedure(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE PROCEDURE statement
protected  AstNode DerbyDdlParser.parseCreateStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE statement based on SQL 92 specifications.
protected  AstNode DerbyDdlParser.parseCustomStatement(DdlTokenStream tokens, AstNode parentNode)
          Catch-all method to parse unknown (not registered or handled by sub-classes) statements.
protected  AstNode DerbyDdlParser.parseDropStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL DROP AstNode based on SQL 92 specifications.
protected  void DerbyDdlParser.parseGrantPrivileges(DdlTokenStream tokens, List<AstNode> privileges)
          
protected  AstNode DerbyDdlParser.parseGrantStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL GRANT statement AstNode based on SQL 92 specifications.
 

Uses of ParsingException in org.modeshape.sequencer.ddl.dialect.mysql
 

Methods in org.modeshape.sequencer.ddl.dialect.mysql that throw ParsingException
protected  AstNode MySqlDdlParser.parseAlterStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL ALTER statement based on SQL 92 specifications.
protected  AstNode MySqlDdlParser.parseAlterTableStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL ALTER TABLE AstNode based on SQL 92 specifications.
protected  AstNode MySqlDdlParser.parseCreateStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE statement based on SQL 92 specifications.
protected  AstNode MySqlDdlParser.parseCustomStatement(DdlTokenStream tokens, AstNode parentNode)
          Catch-all method to parse unknown (not registered or handled by sub-classes) statements.
protected  AstNode MySqlDdlParser.parseDropStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL DROP AstNode based on SQL 92 specifications.
 

Uses of ParsingException in org.modeshape.sequencer.ddl.dialect.oracle
 

Methods in org.modeshape.sequencer.ddl.dialect.oracle that throw ParsingException
 AstNode OracleDdlParser.handleUnknownToken(DdlTokenStream tokens, String tokenValue)
          Utility method subclasses can override to check unknown tokens and perform additional node manipulation.
protected  AstNode OracleDdlParser.parseAlterStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode OracleDdlParser.parseAlterTableStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  void OracleDdlParser.parseColumns(DdlTokenStream tokens, AstNode tableNode, boolean isAlterTable)
          Utility method designed to parse columns within an ALTER TABLE ADD statement.
protected  AstNode OracleDdlParser.parseCreateFunctionStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE FUNCTION statement
protected  AstNode OracleDdlParser.parseCreateProcedureStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE PROCEDURE statement
protected  AstNode OracleDdlParser.parseCreateSchemaStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE SCHEMA AstNode based on SQL 92 specifications.
protected  AstNode OracleDdlParser.parseCreateStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode OracleDdlParser.parseCreateViewStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE VIEW AstNode basedregisterStatementStartPhrase on SQL 92 specifications.
protected  AstNode OracleDdlParser.parseCustomStatement(DdlTokenStream tokens, AstNode parentNode)
          Catch-all method to parse unknown (not registered or handled by sub-classes) statements.
protected  AstNode OracleDdlParser.parseDropStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode OracleDdlParser.parseGrantStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode OracleDdlParser.parseMaterializedViewStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL CREATE MATERIALIZED VIEW statement This could either be a standard view or a VIEW LOG ON statement.
protected  AstNode OracleDdlParser.parseRevokeStatement(DdlTokenStream tokens, AstNode parentNode)
          
protected  AstNode OracleDdlParser.parseSetStatement(DdlTokenStream tokens, AstNode parentNode)
           
 

Uses of ParsingException in org.modeshape.sequencer.ddl.dialect.postgres
 

Methods in org.modeshape.sequencer.ddl.dialect.postgres that throw ParsingException
protected  boolean PostgresDdlParser.areNextTokensCreateTableOptions(DdlTokenStream tokens)
           
protected  AstNode PostgresDdlParser.parseAlterStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode PostgresDdlParser.parseAlterTableStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  void PostgresDdlParser.parseColumns(DdlTokenStream tokens, AstNode tableNode, boolean isAlterTable)
          Utility method designed to parse columns within an ALTER TABLE ADD statement.
protected  AstNode PostgresDdlParser.parseCreateSchemaStatement(DdlTokenStream tokens, AstNode parentNode)
          Currently, only CREATE TABLE, CREATE VIEW, CREATE INDEX, CREATE SEQUENCE, CREATE TRIGGER and GRANT are accepted as clauses within CREATE SCHEMA.
protected  AstNode PostgresDdlParser.parseCreateStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode PostgresDdlParser.parseCreateTableStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode PostgresDdlParser.parseCreateViewStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode PostgresDdlParser.parseCustomStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode PostgresDdlParser.parseDropStatement(DdlTokenStream tokens, AstNode parentNode)
           
protected  void PostgresDdlParser.parseGrantPrivileges(DdlTokenStream tokens, List<AstNode> privileges)
          
protected  AstNode PostgresDdlParser.parseGrantStatement(DdlTokenStream tokens, AstNode parentNode)
          Parses DDL GRANT statement AstNode based on SQL 92 specifications.
protected  void PostgresDdlParser.parseNextCreateTableOption(DdlTokenStream tokens, AstNode parentNode)
           
protected  AstNode PostgresDdlParser.parseSetStatement(DdlTokenStream tokens, AstNode parentNode)
           
 



Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.