Skip navigation links

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

E13403-10


oracle.javatools.db.plsql
Class PlSqlFragment

java.lang.Object
  extended by oracle.javatools.db.plsql.PlSqlFragment

All Implemented Interfaces:
PlsqlNode, PlsqlRoot

public class PlSqlFragment
extends java.lang.Object
implements PlsqlRoot

Nested Class Summary
static class PlSqlFragment.AlterSubType
           
static class PlSqlFragment.Type
           

 

Field Summary
static int TYPE_PACKAGE_BODY
           
static int TYPE_PACKAGE_SPEC
           

 

Method Summary
 PlSqlFragment findChild(PlSqlFragment.Type type, boolean deep)
           
 PlSqlFragment.AlterSubType getAlterSubType()
           
 PlSqlFragment[] getChildren()
           
 java.lang.String getDescriptionString()
           
 int getEndOffset()
           
 PlsqlError[] getErrors()
           
 PlSqlToken getFirstToken()
           
 PlSqlFragment.Type getFramentType()
           
 PlSqlToken getLastToken()
           
 PlSqlFragment getParent()
           
 java.lang.String getSource()
           
 java.lang.String getSourceSnippet(int maxChars)
           
 int getStartOffset()
           
 java.util.ArrayList getSubFragments()
          Deprecated. - use getChildren instead
 int getTreeKind()
          The term "tree kind" comes directly out of the database and indicates what structure this tree is, e.g.
 int getType()
          Deprecated.  
 java.lang.String getTypeString()
           
static java.lang.String getTypeString(PlSqlFragment.Type type)
           
 PlsqlNode[] getUnits()
           
 void setAlterSubType(PlSqlFragment.AlterSubType alterSubType)
           
 void setFirstToken(PlSqlToken firstToken)
           
 void setFragmentType(PlSqlFragment.Type type)
           
 void setLastToken(PlSqlToken lastToken)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

TYPE_PACKAGE_SPEC

public static final int TYPE_PACKAGE_SPEC

TYPE_PACKAGE_BODY

public static final int TYPE_PACKAGE_BODY

Method Detail

getParent

public PlSqlFragment getParent()

getType

@Deprecated
public int getType()
Deprecated. 
Returns:

getFramentType

public PlSqlFragment.Type getFramentType()

setFragmentType

public void setFragmentType(PlSqlFragment.Type type)

getFirstToken

public PlSqlToken getFirstToken()

setAlterSubType

public void setAlterSubType(PlSqlFragment.AlterSubType alterSubType)

getAlterSubType

public PlSqlFragment.AlterSubType getAlterSubType()

setFirstToken

public void setFirstToken(PlSqlToken firstToken)

getLastToken

public PlSqlToken getLastToken()

setLastToken

public void setLastToken(PlSqlToken lastToken)

getSubFragments

@Deprecated
public final java.util.ArrayList getSubFragments()
Deprecated. - use getChildren instead

getChildren

public PlSqlFragment[] getChildren()

getSource

public java.lang.String getSource()

getSourceSnippet

public java.lang.String getSourceSnippet(int maxChars)

getErrors

public PlsqlError[] getErrors()
Specified by:
getErrors in interface PlsqlRoot
Returns:
The errors found under this root.

getUnits

public PlsqlNode[] getUnits()
Specified by:
getUnits in interface PlsqlRoot
Returns:
The units declared under this root.

getTreeKind

public int getTreeKind()
Description copied from interface: PlsqlNode
The term "tree kind" comes directly out of the database and indicates what structure this tree is, e.g. subprg.
Specified by:
getTreeKind in interface PlsqlNode
Returns:
The kind of this tree node.

getStartOffset

public int getStartOffset()
Specified by:
getStartOffset in interface PlsqlNode
Returns:
The starting offset for this node.

getEndOffset

public int getEndOffset()

getTypeString

public java.lang.String getTypeString()

getTypeString

public static java.lang.String getTypeString(PlSqlFragment.Type type)

getDescriptionString

public java.lang.String getDescriptionString()

findChild

public PlSqlFragment findChild(PlSqlFragment.Type type,
                               boolean deep)

Skip navigation links

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

E13403-10


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