|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.plsql.PlSqlInterrogator
public class PlSqlInterrogator
The PL/SQL Interrogator provides a structured model of PL/SQL source, User Defined Types and Trigger definitions.
Method Summary | |
---|---|
boolean |
containsToDo()
|
int |
findExecutableLineNumber(java.lang.String signature)
Returns the line number of the first executable line in the procedure or function identified by the signature. |
java.util.List<PlSqlFragment> |
findFragmentsBySignature(java.lang.String signature)
Returns a list of PlSqlFragments representing procedures or functions matching the given signature. |
static PlSqlInterrogator |
findOrCreate(java.lang.String source)
|
static PlSqlInterrogator |
findOrCreate(java.lang.String key,
java.lang.String source)
|
java.lang.String |
getCollectionType()
|
java.util.List<java.lang.String> |
getExternalDeclarations()
|
PlSqlFragment |
getFragmentAtOffset(int offset)
|
int |
getLineNumber(int offset)
|
java.util.List<java.lang.Integer> |
getLocationOffsets(java.lang.String text)
Finds the offsets in the original source for tokens matching the given text. |
int |
getMatchingOffset(int offset)
|
java.lang.String |
getName()
|
PlsqlError[] |
getPlSqlErrors()
|
PlSqlIdentifier |
getPlSqlIdentifier(java.lang.String schemaName)
Returns a PlSqlIdentifier derived from the PL/SQL in source. |
PlSqlIdentifier |
getPlSqlIdentifier(java.lang.String schemaName,
boolean force)
Returns a PlSqlIdentifier derived from the PL/SQL in source. |
java.lang.String |
getRenamedSource(java.lang.String newName)
|
java.lang.String |
getRenamedSource(java.lang.String newName,
boolean includeSchema)
|
PlSqlFragment |
getRoot()
|
java.lang.String |
getSchemaName()
|
java.lang.String |
getSource(PlSqlToken start,
PlSqlToken end)
|
PlSqlToken |
getTokenAtOffset(int offset)
|
java.lang.String |
getType()
|
java.lang.String |
getTypeCode()
|
java.lang.String |
getUpdatedSourceForRelationRename(java.lang.String newRelationName)
|
boolean |
hasParseErrors()
|
boolean |
isEvolvedType()
|
boolean |
isWrapped()
|
PlSqlToken |
skipToCodeToken(PlSqlFragment frag,
PlSqlToken tk,
java.lang.String... tkStrs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PlSqlInterrogator findOrCreate(java.lang.String source)
public static PlSqlInterrogator findOrCreate(java.lang.String key, java.lang.String source)
public PlSqlIdentifier getPlSqlIdentifier(java.lang.String schemaName)
public PlSqlIdentifier getPlSqlIdentifier(java.lang.String schemaName, boolean force)
public PlSqlFragment getRoot()
PlSqlFragment
representing the entire
PL/SQL source.public java.lang.String getType()
public java.lang.String getSchemaName()
public java.lang.String getName()
public java.lang.String getTypeCode()
public java.lang.String getCollectionType()
public boolean isWrapped()
public int getLineNumber(int offset)
public PlSqlFragment getFragmentAtOffset(int offset)
public PlSqlToken getTokenAtOffset(int offset)
public PlsqlError[] getPlSqlErrors()
public boolean hasParseErrors()
public boolean containsToDo()
public java.lang.String getRenamedSource(java.lang.String newName)
public java.lang.String getRenamedSource(java.lang.String newName, boolean includeSchema)
public boolean isEvolvedType()
public java.lang.String getUpdatedSourceForRelationRename(java.lang.String newRelationName)
public java.lang.String getSource(PlSqlToken start, PlSqlToken end)
public PlSqlToken skipToCodeToken(PlSqlFragment frag, PlSqlToken tk, java.lang.String... tkStrs)
public int findExecutableLineNumber(java.lang.String signature)
signature
- See findFragmentsBySignature(java.lang.String)
for details.
public int getMatchingOffset(int offset)
public java.util.List<PlSqlFragment> findFragmentsBySignature(java.lang.String signature)
public java.util.List<java.lang.String> getExternalDeclarations()
public java.util.List<java.lang.Integer> getLocationOffsets(java.lang.String text)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |