public class PLSQLParser extends Object implements PLSQLParserTreeConstants, PLSQLParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
protected JJTPLSQLParserState |
jjtree |
Token |
token
Current token.
|
PLSQLParserTokenManager |
token_source
Generated Token Manager.
|
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
_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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
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.
|
protected JJTPLSQLParserState jjtree
public PLSQLParserTokenManager token_source
public Token token
public Token jj_nt
public PLSQLParser(InputStream stream)
public PLSQLParser(InputStream stream, String encoding)
public PLSQLParser(Reader stream)
public PLSQLParser(PLSQLParserTokenManager tm)
public static void main(String[] args) throws ParseException
args
- ParseException
public final void input() throws ParseException
ParseException
public final void sqlPlusCommand() throws ParseException
ParseException
public final void global() throws ParseException
ParseException
public final void globalBlock() throws ParseException
ParseException
public final void packageSpec() throws ParseException
ParseException
public final void packageBody() throws ParseException
ParseException
public final void declarativeUnit() throws ParseException
ParseException
public final void declarativeSection() throws ParseException
ParseException
public final void CompilationDeclarationFragment() throws ParseException
ParseException
public final void programUnit() throws ParseException
ParseException
public final void parameterDeclaration() throws ParseException
ParseException
public final SimpleNode datatype() throws ParseException
ParseException
public final SimpleNode CompilationDataType() throws ParseException
ParseException
public final SimpleNode collection_type_name() throws ParseException
ParseException
public final SimpleNode scalar_datatype_name() throws ParseException
ParseException
public final SimpleNode DateTimeLiteral() throws ParseException
ParseException
public final void exceptionHandler() throws ParseException
ParseException
public final void skip2NextTerminator(String initiator, String terminator) throws ParseException
ParseException
public final void skip2NextOccurrence(String target) throws ParseException
ParseException
public final void skipPastNextOccurrence(String target) throws ParseException
ParseException
public final void skip2NextTokenOccurrence(int target) throws ParseException
ParseException
public final void skipPastNextTokenOccurrence(int target) throws ParseException
ParseException
public final SimpleNode read2NextOccurrence(String target) throws ParseException
ParseException
public final SimpleNode readPastNextOccurrence(String target) throws ParseException
ParseException
public final void sqlStatement(String initiator, String terminator) throws ParseException
ParseException
public final void wrappedObject() throws ParseException
p_date_format
- normal TO_CHARE/TO_DATE date templateParseException
/
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=
"
public final void statement() throws ParseException
ParseException
public final void subtype_definition() throws ParseException
ParseException
public final void fieldDeclaration() throws ParseException
ParseException
public final void collection_type_definition() throws ParseException
ParseException
public final void collectionDeclaration() throws ParseException
ParseException
public final void objectDeclaration() throws ParseException
ParseException
public final void callSpecTail() throws ParseException
ParseException
public final void cursorUnit() throws ParseException
ParseException
public final void cursorSpec() throws ParseException
ParseException
public final void cursorBody() throws ParseException
ParseException
public final SimpleNode Expression() throws ParseException
ParseException
public final SimpleNode CompilationExpression() throws ParseException
ParseException
public final SimpleNode Assignment() throws ParseException
ParseException
public final SimpleNode CaseExpression() throws ParseException
ParseException
public final SimpleNode LikeExpression() throws ParseException
ParseException
public final SimpleNode TrimExpression() throws ParseException
ParseException
public final SimpleNode ObjectExpression() throws ParseException
ParseException
public final SimpleNode ConditionalOrExpression() throws ParseException
ParseException
public final SimpleNode ConditionalAndExpression() throws ParseException
ParseException
public final SimpleNode EqualityExpression() throws ParseException
ParseException
public final SimpleNode RelationalExpression() throws ParseException
ParseException
public final SimpleNode AdditiveExpression() throws ParseException
ParseException
public final SimpleNode StringExpression() throws ParseException
ParseException
public final SimpleNode MultiplicativeExpression() throws ParseException
ParseException
public final SimpleNode UnaryExpression(boolean isUnarySign) throws ParseException
ParseException
public final SimpleNode UnaryExpressionNotPlusMinus() throws ParseException
ParseException
public final SimpleNode PrimaryExpression() throws ParseException
ParseException
public final SimpleNode PrimaryPrefix() throws ParseException
ParseException
public final SimpleNode PrimarySuffix() throws ParseException
ParseException
public final SimpleNode Literal() throws ParseException
ParseException
public final SimpleNode StringLiteral() throws ParseException
ParseException
public final SimpleNode BooleanLiteral() throws ParseException
ParseException
public final SimpleNode NullLiteral() throws ParseException
ParseException
public final SimpleNode MultiSetCondition() throws ParseException
ParseException
public final SimpleNode numericLiteral() throws ParseException
ParseException
public final SimpleNode Name() throws ParseException
ParseException
public final SimpleNode qualifiedName() throws ParseException
ParseException
public final SimpleNode Arguments() throws ParseException
ParseException
public final SimpleNode ArgumentList() throws ParseException
ParseException
public final SimpleNode Argument() throws ParseException
ParseException
public final void variableOrConstantDeclaration() throws ParseException
ParseException
public final void datatypeDeclaration() throws ParseException
ParseException
public final void pragma() throws ParseException
ParseException
public final void exceptionDeclaration() throws ParseException
ParseException
public final void parallel_clause() throws ParseException
ParseException
public final void table() throws ParseException
ParseException
public final void tableColumn() throws ParseException
ParseException
public final void view() throws ParseException
ParseException
public final void viewColumn() throws ParseException
ParseException
public final void comment() throws ParseException
ParseException
public final void typeMethod() throws ParseException
ParseException
public final void typeSpec() throws ParseException
ParseException
public final void alterTypeSpec() throws ParseException
ParseException
public final void attributeDeclaration() throws ParseException
ParseException
public final void attribute() throws ParseException
ParseException
public final void pragma_clause() throws ParseException
ParseException
public final void triggerUnit() throws ParseException
ParseException
public final void timing_point_section() throws ParseException
ParseException
public final void compound_trigger_block() throws ParseException
ParseException
public final void non_dml_trigger() throws ParseException
ParseException
public final SimpleNode ddl_event() throws ParseException
ParseException
public final SimpleNode database_event() throws ParseException
ParseException
public final SimpleNode non_dml_event() throws ParseException
ParseException
public final void alterTrigger() throws ParseException
ParseException
public final SimpleNode KEYWORD_RESERVED() throws ParseException
ParseException
public final SimpleNode KEYWORD_UNRESERVED() throws ParseException
ParseException
public final SimpleNode ID() throws ParseException
ParseException
public final SimpleNode unqualifiedID() throws ParseException
ParseException
public final SimpleNode qualifiedID() throws ParseException
ParseException
public final SimpleNode typeKeyword() throws ParseException
ParseException
public final SimpleNode javaInterfaceClass() throws ParseException
ParseException
public final SimpleNode equalsOldIDNewID(SimpleNode pOldID) throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(PLSQLParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2013. All Rights Reserved.