net.sourceforge.pmd.lang.plsql.ast
Class PLSQLParser

java.lang.Object
  extended by net.sourceforge.pmd.lang.plsql.ast.PLSQLParser
All Implemented Interfaces:
PLSQLParserConstants, PLSQLParserTreeConstants

public class PLSQLParser
extends Object
implements PLSQLParserTreeConstants, PLSQLParserConstants


Field Summary
 Token jj_nt
          Next token.
protected  JJTPLSQLParserState jjtree
           
 Token token
          Current token.
 PLSQLParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface net.sourceforge.pmd.lang.plsql.ast.PLSQLParserTreeConstants
JJTADDITIVEEXPRESSION, JJTALTERTRIGGER, JJTALTERTYPESPEC, JJTARGUMENT, JJTARGUMENTLIST, JJTARGUMENTS, JJTASSIGNMENT, JJTATTRIBUTE, JJTATTRIBUTEDECLARATION, JJTBOOLEANLITERAL, JJTCALLSPECTAIL, JJTCASEEXPRESSION, JJTCOLLECTION_TYPE_DEFINITION, JJTCOLLECTION_TYPE_NAME, JJTCOLLECTIONDECLARATION, JJTCOMMENT, JJTCOMPILATIONDATATYPE, JJTCOMPILATIONDECLARATIONFRAGMENT, JJTCOMPILATIONEXPRESSION, JJTCOMPOUND_TRIGGER_BLOCK, JJTCONDITIONALANDEXPRESSION, JJTCONDITIONALOREXPRESSION, JJTCURSORBODY, JJTCURSORSPEC, JJTCURSORUNIT, JJTDATABASE_EVENT, JJTDATATYPE, JJTDATATYPEDECLARATION, JJTDATETIMELITERAL, JJTDDL_EVENT, JJTDECLARATIVESECTION, JJTDECLARATIVEUNIT, JJTEQUALITYEXPRESSION, JJTEQUALSOLDIDNEWID, JJTEXCEPTIONDECLARATION, JJTEXCEPTIONHANDLER, JJTEXPRESSION, JJTFIELDDECLARATION, JJTGLOBAL, JJTGLOBALBLOCK, JJTID, JJTINPUT, JJTJAVAINTERFACECLASS, JJTKEYWORD_RESERVED, JJTKEYWORD_UNRESERVED, JJTLIKEEXPRESSION, JJTLITERAL, JJTMULTIPLICATIVEEXPRESSION, JJTMULTISETCONDITION, JJTNAME, jjtNodeName, JJTNON_DML_EVENT, JJTNON_DML_TRIGGER, JJTNULLLITERAL, JJTNUMERICLITERAL, JJTOBJECTDECLARATION, JJTOBJECTEXPRESSION, JJTPACKAGEBODY, JJTPACKAGESPEC, JJTPARALLEL_CLAUSE, JJTPARAMETERDECLARATION, JJTPRAGMA, JJTPRAGMA_CLAUSE, JJTPRIMARYEXPRESSION, JJTPRIMARYPREFIX, JJTPRIMARYSUFFIX, JJTPROGRAMUNIT, JJTQUALIFIEDID, JJTQUALIFIEDNAME, JJTREAD2NEXTOCCURRENCE, JJTREADPASTNEXTOCCURRENCE, JJTRELATIONALEXPRESSION, JJTSCALAR_DATATYPE_NAME, JJTSKIP2NEXTOCCURRENCE, JJTSKIP2NEXTTERMINATOR, JJTSKIP2NEXTTOKENOCCURRENCE, JJTSKIPPASTNEXTOCCURRENCE, JJTSKIPPASTNEXTTOKENOCCURRENCE, JJTSQLPLUSCOMMAND, JJTSQLSTATEMENT, JJTSTATEMENT, JJTSTRINGEXPRESSION, JJTSTRINGLITERAL, JJTSUBTYPE_DEFINITION, JJTTABLE, JJTTABLECOLUMN, JJTTIMING_POINT_SECTION, JJTTRIGGERUNIT, JJTTRIMEXPRESSION, JJTTYPEKEYWORD, JJTTYPEMETHOD, JJTTYPESPEC, JJTUNARYEXPRESSION, JJTUNARYEXPRESSIONNOTPLUSMINUS, JJTUNQUALIFIEDID, JJTVARIABLEORCONSTANTDECLARATION, JJTVIEW, JJTVIEWCOLUMN, JJTWRAPPEDOBJECT
 
Fields inherited from interface net.sourceforge.pmd.lang.plsql.ast.PLSQLParserConstants
_CHARACTER, _CHARACTER_WO_ASTERISK, _DEFAULT, _WHATEVER_CHARACTER_WO_ASTERISK, _WHATEVER_CHARACTER_WO_QUOTE, A, ACCEPT, ADD, AFTER, AGGREGATE, ALL, ALTER, ANALYZE, AND, ANY, ARRAY, AS, ASC, ASSOCIATE, AT, ATTACH, ATTRIBUTE, AUDIT, AUTHID, AUTONOMOUS_TRANSACTION, AVG, BEFORE, BEGIN, BETWEEN, BFILE, BFILE_BASE, BINARY_INTEGER, BLOB, BLOB_BASE, BODY, BOOLEAN, BOTH, BULK, BY, BYTE, CALL, CASCADE, CASE, CAST, CC_ELSE, CC_ELSIF, CC_END, CC_ERROR, CC_IF, CC_PLSQL_LINE, CC_PLSQL_UNIT, CC_THEN, CHAR, CHAR_BASE, CHAR_CS, CHARACTER, CHARACTER_LITERAL, CHARSETFORM, CHARSETID, CHECK, CLOB, CLOB_BASE, CLOSE, CLUSTER, COALESCE, COLLECT, COLUMN, COMMENT, COMMIT, COMPOUND, COMPRESS, CONNECT, CONSTANT, CONSTRUCTOR, CONTEXT, CONVERT, COPY, CREATE, CROSSEDITION, CURRENT, CURRENT_USER, CURRVAL, CURSOR, CUSTOMDATUM_CLASS, DATA, DATABASE, DATE, DATE_BASE, DAY, DBTIMEZONE, DDL, DEC, DECIMAL, DECLARE, DEFAULT, DEFINE, DEFINER, DELETE, DELIMITER, DESC, DETERMINISTIC, DIGIT, DISABLE, DISASSOCIATE, DISCONNECT, DISTINCT, DO, DOUBLE, DROP, EACH, ELEMENT, ELSE, ELSIF, EMPTY, ENABLE, END, EOF, EOL, ESCAPE, EXCEPT, EXCEPTION, EXCEPTION_INIT, EXCEPTIONS, EXCLUSIVE, EXECUTE, EXISTS, EXIT, EXTENDS, EXTERNAL, EXTRACT, FALSE, FETCH, FINAL, FLOAT, FLOAT_LITERAL, FOLLOWS, FOR, FORALL, FORCE, FOREACHROW, FORMAL_COMMENT, FORWARD, FROM, FUNCTION, GERMAN_SPECIAL_CHARACTERS, GLOBAL, GOTO, GRANT, GROUP, HASH, HAVING, HEAP, HOST, HOUR, IDENTIFIED, IDENTIFIER, IF, IMMEDIATE, IN, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SQL_STATEMENT_ENDED_SEMICOLON, INCLUDING, INDEX, INDEXTYPE, INDICATOR, INDICES, INSERT, INSTANTIABLE, INSTEADOF, INT, INTEGER, INTEGER_LITERAL, INTERFACE, INTERSECT, INTERVAL, INTO, INVALIDATE, IS, ISOLATION, JAVA, JAVA_INTERFACE_CLASS, LANGUAGE, LEADING, LEFT, LENGTH, LETTER, LEVEL, LIBRARY, LIKE, LIMIT, LIMITED, LOCAL, LOCK, LOGOFF, LOGON, LONG, LOOP, MAP, MAX, MAXLEN, MEMBER, MERGE, MIN, MINUS, MINUTE, MLSLABEL, MOD, MODE, MODIFY, MONTH, MULTI_LINE_COMMENT, MULTISET, NAME, NATURAL, NATURALN, NCHAR, NCHAR_CS, NCLOB, NESTED, NEW, NEW_DOT, NEXTVAL, NLS_LENGTH_SEMANTICS, NO, NOAUDIT, NOCOMPRESS, NOCOPY, NOT, NOWAIT, NULL, NULLIF, NUMBER, NUMBER_BASE, NUMERIC, NVARCHAR2, OBJECT, OCIROWID, OF, OID, OLD, ON, OPAQUE, OPEN, OPERATOR, OPTION, OR, ORADATA_CLASS, ORDER, ORGANIZATION, OTHERS, OUT, OVERRIDING, PACKAGE, PARALLEL_ENABLE, PARAMETERS, PARENT, PARTITION, PCTFREE, PIPE, PIPELINED, PLS_INTEGER, PLSQL_CCFLAGS, PLSQL_CODE_TYPE, PLSQL_DEBUG, PLSQL_OPTIMIZE_LEVEL, PLSQL_WARNINGS, POSITIVE, POSITIVEN, PRAGMA, PRECEDES, PRECISION, PRESERVE, PRINT, PRIOR, PRIVATE, PROCEDURE, PROMPT, PUBLIC, QUIT, QUOTED_LITERAL, RAISE, RANGE, RAW, REAL, RECORD, REF, REFERENCING, RELEASE, RELIES_ON, REMARK, RENAME, REPLACE, RESOURCE, RESTRICT_REFERENCES, RESULT, RESULT_CACHE, RETURN, REVERSE, REVOKE, RIGHT, ROLLBACK, ROW, ROWID, ROWNUM, ROWS, ROWTYPE, SAVE, SAVEPOINT, SCHEMA, SECOND, SELECT, SELF, SEPARATE, SERIALLY_REUSABLE, SERVERERROR, SESSIONTIMEZONE, SET, SHARE, SHOW, SHUTDOWN, SIGNTYPE, SINGLE_LINE_COMMENT, SIZE, SMALLINT, SPACE, SPECIAL_CHARACTERS, SPOOL, SQL, SQLCODE, SQLDATA_CLASS, SQLERRM, SQLPLUS_TERMINATOR, START, STARTUP, STATEMENT, STATIC, STATISTICS, STDDEV, STRING, STRING_LITERAL, STRUCT, SUBMULTISET, SUBSTITUTABLE, SUBTYPE, SUCCESSFUL, SUM, SUSPEND, SYNONYM, SYS_REFCURSOR, SYSDATE, TABLE, TDO, TEMPORARY, THEN, TIME, TIMESTAMP, TIMEZONE_ABBR, TIMEZONE_HOUR, TIMEZONE_MINUTE, TIMEZONE_REGION, TO, tokenImage, TRAILING, TRANSACTION, TREAT, TRIGGER, TRIM, TRUE, TRUNCATE, TYPE, UI, UNDEFINE, UNDER, UNION, UNIQUE, UNSIGNED_NUMERIC_LITERAL, UPDATE, UROWID, USING, VALUES, VARCHAR, VARCHAR2, VARIABLE, VARRAY, VARYING, VIEW, WHEN, WHENEVER, WHERE, WHILE, WITH, WRAPPED, YEAR, YES, ZONE
 
Constructor Summary
PLSQLParser(InputStream stream)
          Constructor with InputStream.
PLSQLParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
PLSQLParser(PLSQLParserTokenManager tm)
          Constructor with generated Token Manager.
PLSQLParser(Reader stream)
          Constructor.
 
Method Summary
 SimpleNode AdditiveExpression()
           
 void alterTrigger()
           
 void alterTypeSpec()
           
 SimpleNode Argument()
           
 SimpleNode ArgumentList()
           
 SimpleNode Arguments()
           
 SimpleNode Assignment()
           
 void attribute()
           
 void attributeDeclaration()
          Method
 SimpleNode BooleanLiteral()
           
 void callSpecTail()
          Java stored procedure, external function
 SimpleNode CaseExpression()
           
 void collection_type_definition()
           
 SimpleNode collection_type_name()
           
 void collectionDeclaration()
           
 void comment()
           
 SimpleNode CompilationDataType()
           
 void CompilationDeclarationFragment()
           
 SimpleNode CompilationExpression()
           
 void compound_trigger_block()
           
 SimpleNode ConditionalAndExpression()
           
 SimpleNode ConditionalOrExpression()
           
 void cursorBody()
           
 void cursorSpec()
           
 void cursorUnit()
          Cursor (common part of specification and body)
 SimpleNode database_event()
           
 SimpleNode datatype()
           
 void datatypeDeclaration()
           
 SimpleNode DateTimeLiteral()
           
 SimpleNode ddl_event()
           
 void declarativeSection()
           
 void declarativeUnit()
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 SimpleNode EqualityExpression()
           
 SimpleNode equalsOldIDNewID(SimpleNode pOldID)
          Tests, if the new Token if type ID is identical to the old Token of type ID.
 void exceptionDeclaration()
           
 void exceptionHandler()
           
 SimpleNode Expression()
           
 void fieldDeclaration()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 void global()
          All global definitions of triggers, functions and procedures are evaluated here.
 void globalBlock()
          Static blocks like package initializers.
 SimpleNode ID()
          2006-05-20 - Matthias Hendler - added and
 void input()
          2006-05-22 - Matthias Hendler - added globalBody()
 SimpleNode javaInterfaceClass()
           
 SimpleNode KEYWORD_RESERVED()
           
 SimpleNode KEYWORD_UNRESERVED()
           
 SimpleNode LikeExpression()
           
 SimpleNode Literal()
           
static void main(String[] args)
          main method, for testing only.
 SimpleNode MultiplicativeExpression()
           
 SimpleNode MultiSetCondition()
           
 SimpleNode Name()
           
 SimpleNode non_dml_event()
           
 void non_dml_trigger()
           
 SimpleNode NullLiteral()
           
 SimpleNode numericLiteral()
          Recognizes a numeric literal.
 void objectDeclaration()
           
 SimpleNode ObjectExpression()
           
 void packageBody()
           
 void packageSpec()
           
 void parallel_clause()
           
 void parameterDeclaration()
           
 void pragma_clause()
           
 void pragma()
           
 SimpleNode PrimaryExpression()
          2006-05-23 - Matthias Hendler - Added lookahead otherwise warning encountered.
 SimpleNode PrimaryPrefix()
           
 SimpleNode PrimarySuffix()
           
 void programUnit()
          2006-05-22 - Matthias Hendler - Printing of custom tag "@deprecated" removed.
 SimpleNode qualifiedID()
          2006-05-20 - Matthias Hendler - added
 SimpleNode qualifiedName()
           
 SimpleNode read2NextOccurrence(String target)
           
 SimpleNode readPastNextOccurrence(String target)
           
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(PLSQLParserTokenManager tm)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 SimpleNode RelationalExpression()
          2006-05-23 - Matthias Hendler - added FROM
 SimpleNode scalar_datatype_name()
           
 void skip2NextOccurrence(String target)
           
 void skip2NextTerminator(String initiator, String terminator)
           
 void skip2NextTokenOccurrence(int target)
           
 void skipPastNextOccurrence(String target)
           
 void skipPastNextTokenOccurrence(int target)
           
 void sqlPlusCommand()
           
 void sqlStatement(String initiator, String terminator)
          2006-05-24 - Matthias Hendler - added MERGE
 void statement()
          2006-05-24 - Matthias Hendler - added MERGE, EXECUTE choice and LOOKAHEAD at
 SimpleNode StringExpression()
           
 SimpleNode StringLiteral()
           
 void subtype_definition()
           
 void table()
          2006-05-10 - Matthias Hendler - merged SIV and sourceforge sources
 void tableColumn()
           
 void timing_point_section()
           
 void triggerUnit()
          Trigger Triggers are always outside of a package.
 SimpleNode TrimExpression()
           
 SimpleNode typeKeyword()
           
 void typeMethod()
           
 void typeSpec()
           
 SimpleNode UnaryExpression(boolean isUnarySign)
           
 SimpleNode UnaryExpressionNotPlusMinus()
           
 SimpleNode unqualifiedID()
          2006-05-20 - Matthias Hendler - added , , ,
 void variableOrConstantDeclaration()
           
 void view()
           
 void viewColumn()
           
 void wrappedObject()
          2011-05-15 - SRT - Added to cope with wrapped objects A wrapped function looks like this (always terminated by one or more equals signs "="):- " CREATE OR REPLACE FUNCTION "TESTUSER"."GET_DATE_STRING" / ** Return SYSDATE formatted using the provided template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTPLSQLParserState jjtree

token_source

public PLSQLParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

PLSQLParser

public PLSQLParser(InputStream stream)
Constructor with InputStream.


PLSQLParser

public PLSQLParser(InputStream stream,
                   String encoding)
Constructor with InputStream and supplied encoding


PLSQLParser

public PLSQLParser(Reader stream)
Constructor.


PLSQLParser

public PLSQLParser(PLSQLParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

main

public static void main(String[] args)
                 throws ParseException
main method, for testing only.

Parameters:
args -
Throws:
ParseException

input

public final void input()
                 throws ParseException
2006-05-22 - Matthias Hendler - added globalBody()

Throws:
ParseException

sqlPlusCommand

public final void sqlPlusCommand()
                          throws ParseException
Throws:
ParseException

global

public final void global()
                  throws ParseException
All global definitions of triggers, functions and procedures are evaluated here. Every occurence goes under a new PACKAGE-Node in the XML document. This happens, cause a global "block" does not have a definied start and end token like a package specification or a package body. Thats why every construct is handled like a new part of the global package. To overcome this problem, I could use an infinity lookahead - which should solve the problem and slow down the whole parsing. Another idea would be to lookahead the next tokens and decide wether they belong to a package definition or not. Then I could decide to stay in this global parsing state. By now lookahead gives the parser a hint to choose the correct way on a given base. So we can't negate it easily. On the other hand I could also hold the global state in a global variable. But this does not seems the correct way to solve the problem, I think. 2006-05-17 - Matthias Hendler - added

Throws:
ParseException

globalBlock

public final void globalBlock()
                       throws ParseException
Static blocks like package initializers. 2006-05-17 - Matthias Hendler - added

Throws:
ParseException

packageSpec

public final void packageSpec()
                       throws ParseException
Throws:
ParseException

packageBody

public final void packageBody()
                       throws ParseException
Throws:
ParseException

declarativeUnit

public final void declarativeUnit()
                           throws ParseException
Throws:
ParseException

declarativeSection

public final void declarativeSection()
                              throws ParseException
Throws:
ParseException

CompilationDeclarationFragment

public final void CompilationDeclarationFragment()
                                          throws ParseException
Throws:
ParseException

programUnit

public final void programUnit()
                       throws ParseException
2006-05-22 - Matthias Hendler - Printing of custom tag "@deprecated" removed. Printing of any custom tag added. Now user can define his own custom tags which he can evaluate in the XSLT. This methode also documents global functions/procedures.

Throws:
ParseException

parameterDeclaration

public final void parameterDeclaration()
                                throws ParseException
Throws:
ParseException

datatype

public final SimpleNode datatype()
                          throws ParseException
Throws:
ParseException

CompilationDataType

public final SimpleNode CompilationDataType()
                                     throws ParseException
Throws:
ParseException

collection_type_name

public final SimpleNode collection_type_name()
                                      throws ParseException
Throws:
ParseException

scalar_datatype_name

public final SimpleNode scalar_datatype_name()
                                      throws ParseException
Throws:
ParseException

DateTimeLiteral

public final SimpleNode DateTimeLiteral()
                                 throws ParseException
Throws:
ParseException

exceptionHandler

public final void exceptionHandler()
                            throws ParseException
Throws:
ParseException

skip2NextTerminator

public final void skip2NextTerminator(String initiator,
                                      String terminator)
                               throws ParseException
Throws:
ParseException

skip2NextOccurrence

public final void skip2NextOccurrence(String target)
                               throws ParseException
Throws:
ParseException

skipPastNextOccurrence

public final void skipPastNextOccurrence(String target)
                                  throws ParseException
Throws:
ParseException

skip2NextTokenOccurrence

public final void skip2NextTokenOccurrence(int target)
                                    throws ParseException
Throws:
ParseException

skipPastNextTokenOccurrence

public final void skipPastNextTokenOccurrence(int target)
                                       throws ParseException
Throws:
ParseException

read2NextOccurrence

public final SimpleNode read2NextOccurrence(String target)
                                     throws ParseException
Throws:
ParseException

readPastNextOccurrence

public final SimpleNode readPastNextOccurrence(String target)
                                        throws ParseException
Throws:
ParseException

sqlStatement

public final void sqlStatement(String initiator,
                               String terminator)
                        throws ParseException
2006-05-24 - Matthias Hendler - added MERGE

Throws:
ParseException

wrappedObject

public final void wrappedObject()
                         throws ParseException
2011-05-15 - SRT - Added to cope with wrapped objects A wrapped function looks like this (always terminated by one or more equals signs "="):- " CREATE OR REPLACE FUNCTION "TESTUSER"."GET_DATE_STRING" / ** Return SYSDATE formatted using the provided template.

Parameters:
p_date_format - normal TO_CHARE/TO_DATE date template
Throws:
ParseException
See Also:
/ wrapped a000000 369 abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd 8 89 b6 /SBrhM8+1iUO4QAih+qD2SK8kSowg8eZgcfLCNL+XlquYvSuoVah8JbRPpdHDLHn479SdFLw v04omzJ0zOfHdMAzuHQlw+fAsr2ym9YI8I521pRTbnFVAHOOUw4JqPkIyj7wj4VwyL17nhYb 3qPVuL6SvhZTmEBnRtaErHpzaDuIpqZ0G4s= "

statement

public final void statement()
                     throws ParseException
2006-05-24 - Matthias Hendler - added MERGE, EXECUTE choice and LOOKAHEAD at

Throws:
ParseException

subtype_definition

public final void subtype_definition()
                              throws ParseException
Throws:
ParseException

fieldDeclaration

public final void fieldDeclaration()
                            throws ParseException
Throws:
ParseException

collection_type_definition

public final void collection_type_definition()
                                      throws ParseException
Throws:
ParseException

collectionDeclaration

public final void collectionDeclaration()
                                 throws ParseException
Throws:
ParseException

objectDeclaration

public final void objectDeclaration()
                             throws ParseException
Throws:
ParseException

callSpecTail

public final void callSpecTail()
                        throws ParseException
Java stored procedure, external function

Throws:
ParseException

cursorUnit

public final void cursorUnit()
                      throws ParseException
Cursor (common part of specification and body)

Throws:
ParseException

cursorSpec

public final void cursorSpec()
                      throws ParseException
Throws:
ParseException

cursorBody

public final void cursorBody()
                      throws ParseException
Throws:
ParseException

Expression

public final SimpleNode Expression()
                            throws ParseException
Throws:
ParseException

CompilationExpression

public final SimpleNode CompilationExpression()
                                       throws ParseException
Throws:
ParseException

Assignment

public final SimpleNode Assignment()
                            throws ParseException
Throws:
ParseException

CaseExpression

public final SimpleNode CaseExpression()
                                throws ParseException
Throws:
ParseException

LikeExpression

public final SimpleNode LikeExpression()
                                throws ParseException
Throws:
ParseException

TrimExpression

public final SimpleNode TrimExpression()
                                throws ParseException
Throws:
ParseException

ObjectExpression

public final SimpleNode ObjectExpression()
                                  throws ParseException
Throws:
ParseException

ConditionalOrExpression

public final SimpleNode ConditionalOrExpression()
                                         throws ParseException
Throws:
ParseException

ConditionalAndExpression

public final SimpleNode ConditionalAndExpression()
                                          throws ParseException
Throws:
ParseException

EqualityExpression

public final SimpleNode EqualityExpression()
                                    throws ParseException
Throws:
ParseException

RelationalExpression

public final SimpleNode RelationalExpression()
                                      throws ParseException
2006-05-23 - Matthias Hendler - added FROM

Throws:
ParseException

AdditiveExpression

public final SimpleNode AdditiveExpression()
                                    throws ParseException
Throws:
ParseException

StringExpression

public final SimpleNode StringExpression()
                                  throws ParseException
Throws:
ParseException

MultiplicativeExpression

public final SimpleNode MultiplicativeExpression()
                                          throws ParseException
Throws:
ParseException

UnaryExpression

public final SimpleNode UnaryExpression(boolean isUnarySign)
                                 throws ParseException
Throws:
ParseException

UnaryExpressionNotPlusMinus

public final SimpleNode UnaryExpressionNotPlusMinus()
                                             throws ParseException
Throws:
ParseException

PrimaryExpression

public final SimpleNode PrimaryExpression()
                                   throws ParseException
2006-05-23 - Matthias Hendler - Added lookahead otherwise warning encountered. Warning arised while adding methode triggerUnit(). 2011-04-27 - SRT - Add optional NEW Keyword to cope with Object Type constructors

Throws:
ParseException

PrimaryPrefix

public final SimpleNode PrimaryPrefix()
                               throws ParseException
Throws:
ParseException

PrimarySuffix

public final SimpleNode PrimarySuffix()
                               throws ParseException
Throws:
ParseException

Literal

public final SimpleNode Literal()
                         throws ParseException
Throws:
ParseException

StringLiteral

public final SimpleNode StringLiteral()
                               throws ParseException
Throws:
ParseException

BooleanLiteral

public final SimpleNode BooleanLiteral()
                                throws ParseException
Throws:
ParseException

NullLiteral

public final SimpleNode NullLiteral()
                             throws ParseException
Throws:
ParseException

MultiSetCondition

public final SimpleNode MultiSetCondition()
                                   throws ParseException
Throws:
ParseException

numericLiteral

public final SimpleNode numericLiteral()
                                throws ParseException
Recognizes a numeric literal. This may look like token, but it isn't. Not atomic enough. E.g. "+1" would be valid literal, which make parsing of "i+1" impossible (here, we have tokens "i", "+" and "1")

Throws:
ParseException

Name

public final SimpleNode Name()
                      throws ParseException
Throws:
ParseException

qualifiedName

public final SimpleNode qualifiedName()
                               throws ParseException
Throws:
ParseException

Arguments

public final SimpleNode Arguments()
                           throws ParseException
Throws:
ParseException

ArgumentList

public final SimpleNode ArgumentList()
                              throws ParseException
Throws:
ParseException

Argument

public final SimpleNode Argument()
                          throws ParseException
Throws:
ParseException

variableOrConstantDeclaration

public final void variableOrConstantDeclaration()
                                         throws ParseException
Throws:
ParseException

datatypeDeclaration

public final void datatypeDeclaration()
                               throws ParseException
Throws:
ParseException

pragma

public final void pragma()
                  throws ParseException
Throws:
ParseException

exceptionDeclaration

public final void exceptionDeclaration()
                                throws ParseException
Throws:
ParseException

parallel_clause

public final void parallel_clause()
                           throws ParseException
Throws:
ParseException

table

public final void table()
                 throws ParseException
2006-05-10 - Matthias Hendler - merged SIV and sourceforge sources

Throws:
ParseException

tableColumn

public final void tableColumn()
                       throws ParseException
Throws:
ParseException

view

public final void view()
                throws ParseException
Throws:
ParseException

viewColumn

public final void viewColumn()
                      throws ParseException
Throws:
ParseException

comment

public final void comment()
                   throws ParseException
Throws:
ParseException

typeMethod

public final void typeMethod()
                      throws ParseException
Throws:
ParseException

typeSpec

public final void typeSpec()
                    throws ParseException
Throws:
ParseException

alterTypeSpec

public final void alterTypeSpec()
                         throws ParseException
Throws:
ParseException

attributeDeclaration

public final void attributeDeclaration()
                                throws ParseException
Method

Throws:
ParseException

attribute

public final void attribute()
                     throws ParseException
Throws:
ParseException

pragma_clause

public final void pragma_clause()
                         throws ParseException
Throws:
ParseException

triggerUnit

public final void triggerUnit()
                       throws ParseException
Trigger Triggers are always outside of a package. 2006-05-17 - Matthias Hendler - added

Throws:
ParseException

timing_point_section

public final void timing_point_section()
                                throws ParseException
Throws:
ParseException

compound_trigger_block

public final void compound_trigger_block()
                                  throws ParseException
Throws:
ParseException

non_dml_trigger

public final void non_dml_trigger()
                           throws ParseException
Throws:
ParseException

ddl_event

public final SimpleNode ddl_event()
                           throws ParseException
Throws:
ParseException

database_event

public final SimpleNode database_event()
                                throws ParseException
Throws:
ParseException

non_dml_event

public final SimpleNode non_dml_event()
                               throws ParseException
Throws:
ParseException

alterTrigger

public final void alterTrigger()
                        throws ParseException
Throws:
ParseException

KEYWORD_RESERVED

public final SimpleNode KEYWORD_RESERVED()
                                  throws ParseException
Throws:
ParseException

KEYWORD_UNRESERVED

public final SimpleNode KEYWORD_UNRESERVED()
                                    throws ParseException
Throws:
ParseException

ID

public final SimpleNode ID()
                    throws ParseException
2006-05-20 - Matthias Hendler - added and

Throws:
ParseException

unqualifiedID

public final SimpleNode unqualifiedID()
                               throws ParseException
2006-05-20 - Matthias Hendler - added , , ,

Throws:
ParseException

qualifiedID

public final SimpleNode qualifiedID()
                             throws ParseException
2006-05-20 - Matthias Hendler - added

Throws:
ParseException

typeKeyword

public final SimpleNode typeKeyword()
                             throws ParseException
Throws:
ParseException

javaInterfaceClass

public final SimpleNode javaInterfaceClass()
                                    throws ParseException
Throws:
ParseException

equalsOldIDNewID

public final SimpleNode equalsOldIDNewID(SimpleNode pOldID)
                                  throws ParseException
Tests, if the new Token if type ID is identical to the old Token of type ID. 2006-05-18 - Matthias Hendler - added: Just for understanding javacc and not used, cause to many closing ENDs (IDENTIFIER) were mistyped.

Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(PLSQLParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2012. All Rights Reserved.