Skip navigation links
oracle.javatools.db.plsql
Class PlSqlFragment
java.lang.Object
oracle.javatools.db.plsql.PlSqlFragment
- All Implemented Interfaces:
- PlsqlNode, PlsqlRoot
-
public class PlSqlFragment
- extends java.lang.Object
- implements PlsqlRoot
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_PACKAGE_SPEC
public static final int TYPE_PACKAGE_SPEC
TYPE_PACKAGE_BODY
public static final int TYPE_PACKAGE_BODY
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
Copyright © 1997, 2013, Oracle. All rights reserved.