Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.db.plsql
Class PlSqlDeclarator

java.lang.Object
  extended by oracle.javatools.db.plsql.PlSqlDeclarator
Direct Known Subclasses:
TriggerDeclarator

public abstract class PlSqlDeclarator
extends java.lang.Object

Object that builds the declarative info for a PlSql object. Using the source from the object it uses the javatools pl/sql parser to build up information on the attributes, methods etc.


Field Summary
static int ATTRIBUTES
           
protected  DBObjectProvider m_prv
           
protected  PlsqlRoot m_root
           
static int METHODS
           
static int NAME
           
 
Constructor Summary
PlSqlDeclarator()
           
PlSqlDeclarator(DBObjectProvider prv)
           
 
Method Summary
protected  void _loadAttributes()
          Only call if you know the SourceObject can have methods - i.e.
protected  void _loadMethods()
          Only call if you know the SourceObject can have methods - i.e.
 void checkRoot()
           
protected  void checkState()
           
protected  int getAttributesType()
           
 PlsqlNode getKid(int type, java.lang.String name)
           
 PlsqlNode[] getKids(int type)
           
protected  int getMethodsType()
           
 java.lang.String getName(PlsqlNode node)
          Returns the name of the given PlsqlNode, if it has one.
 PlSqlParameter[] getPlsqlParams(PlSqlFragment fragment, DBObjectProvider provider, DBObject parent)
           
static java.lang.String getReturnType(PlsqlNode node)
          Returns the return type of the given PL/SQL node.
protected  PlsqlRoot getRoot()
           
protected  SourceObject getSourceObject()
           
static java.lang.String getType(PlsqlNode node)
          Returns the type of the given plsql node.
 void loadDeclarativeInfo(SourceObject obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_root

protected PlsqlRoot m_root

m_prv

protected DBObjectProvider m_prv

NAME

public static final int NAME
See Also:
Constant Field Values

ATTRIBUTES

public static final int ATTRIBUTES
See Also:
Constant Field Values

METHODS

public static final int METHODS
See Also:
Constant Field Values
Constructor Detail

PlSqlDeclarator

public PlSqlDeclarator()

PlSqlDeclarator

public PlSqlDeclarator(DBObjectProvider prv)
Method Detail

checkRoot

public void checkRoot()

loadDeclarativeInfo

public void loadDeclarativeInfo(SourceObject obj)

checkState

protected void checkState()

getSourceObject

protected SourceObject getSourceObject()

getRoot

protected PlsqlRoot getRoot()

getKid

public PlsqlNode getKid(int type,
                        java.lang.String name)

getKids

public PlsqlNode[] getKids(int type)

getName

public java.lang.String getName(PlsqlNode node)
Returns the name of the given PlsqlNode, if it has one.

Parameters:
node -
Returns:

getType

public static java.lang.String getType(PlsqlNode node)
Returns the type of the given plsql node. It must be an attribute. This helper method navigates through all the potential NPEs.

Parameters:
node -
Returns:

getReturnType

public static java.lang.String getReturnType(PlsqlNode node)
Returns the return type of the given PL/SQL node. This is only relevant to plsql nodes that represent a function declaration.

Parameters:
node -
Returns:

_loadAttributes

protected void _loadAttributes()
Only call if you know the SourceObject can have methods - i.e. is SpecPlSql


_loadMethods

protected void _loadMethods()
Only call if you know the SourceObject can have methods - i.e. is SpecPlSql


getMethodsType

protected int getMethodsType()

getAttributesType

protected int getAttributesType()

getPlsqlParams

public PlSqlParameter[] getPlsqlParams(PlSqlFragment fragment,
                                       DBObjectProvider provider,
                                       DBObject parent)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.