Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.javatools.parser.plsql.symtab
Class PtnodTypedef

java.lang.Object
  extended by oracle.javatools.parser.plsql.syntax.AST
      extended by oracle.javatools.parser.plsql.symtab.Ptnod
          extended by oracle.javatools.parser.plsql.symtab.PtnodTypedef
All Implemented Interfaces:
PlsqlHasName, PlsqlNode, PlsqlTypedef, PtnodConstants, PtnodInternals

public class PtnodTypedef
extends Ptnod
implements PlsqlTypedef


Field Summary
 
Fields inherited from class oracle.javatools.parser.plsql.syntax.AST
kidCount, kids, kind, parent, shushDepth, skipDepth, stackDepth, startOffset
 
Fields inherited from interface oracle.javatools.parser.plsql.symtab.PtnodInternals
PTNOD_BLOCK, PTNOD_FMLPART
 
Fields inherited from interface oracle.javatools.parser.plsql.data.PtnodConstants
PTNOD_ADT, PTNOD_ADT_CMPON_OBJECT, PTNOD_ADT_CMPON_SUBPRG, PTNOD_ADTBODY, PTNOD_ADTBODY_SUBPRG, PTNOD_base, PTNOD_C_ARRAY_DEF, PTNOD_CURSOR, PTNOD_ENUM_TY_DEF, PTNOD_ERROR, PTNOD_LITERAL, PTNOD_max, PTNOD_NAME, PTNOD_PKG, PTNOD_RECORD_TY_DEF, PTNOD_REF_CURSOR_TY_DEF, PTNOD_ROOT, PTNOD_SUBPRG, PTNOD_SUBTY_DEF, PTNOD_TABLE_TYPE, PTNOD_TBL_TY_DEF, PTNOD_TY_DEF, PTNOD_TYPE, PTNOD_UNCNSTRNED_ARRAY_DEF, PTNOD_VARIABLE, QCNOD_EXPRESSION
 
Constructor Summary
PtnodTypedef()
           
 
Method Summary
 PlsqlType getArrayComponentType()
          Valid if this is a PTNOD_UNCNSTRND_ARRAY_DEF.
 PlsqlType getArrayIndexType()
          Valid if this is a PTNOD_UNCNSTRND_ARRAY_DEF.
 PlsqlName getArrayLength()
          Valid if this is a PTNOD_C_ARRAY_DEF.
 PlsqlType getCursorReturnType()
          Valid if this is a PTNOD_REF_CURSOR_TY_DEF.
 PlsqlName[] getEnumeration()
          Valid if this is a PTNOD_ENUM_TY_DEF.
 PlsqlVariable[] getRecordColumns()
          Valid if this is a PTNOD_RECORD_TY_DEF.
 PlsqlType getSubtype()
          Valid if this is a PTNOD_SUBTY_DEF.
 PlsqlType getTableType()
          Valid if this is a PTNOD_TBL_TY_DEF.
 
Methods inherited from class oracle.javatools.parser.plsql.symtab.Ptnod
decl_item, fmlpart, getDeclarations, getFormalParameters, getName, getReturnType, getType, getVariables, literal, name, ty, var
 
Methods inherited from class oracle.javatools.parser.plsql.syntax.AST
addKid, getStartOffset, getTreeKind, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.javatools.parser.plsql.data.PlsqlHasName
getName
 
Methods inherited from interface oracle.javatools.parser.plsql.data.PlsqlNode
getStartOffset, getTreeKind
 

Constructor Detail

PtnodTypedef

public PtnodTypedef()
Method Detail

getSubtype

public PlsqlType getSubtype()
Description copied from interface: PlsqlTypedef
Valid if this is a PTNOD_SUBTY_DEF. Follows the syntax of "SUBTYPE name is type".

Specified by:
getSubtype in interface PlsqlTypedef
Returns:
the sub type.

getCursorReturnType

public PlsqlType getCursorReturnType()
Description copied from interface: PlsqlTypedef
Valid if this is a PTNOD_REF_CURSOR_TY_DEF. Follows the syntax of "TYPE name IS REF CURSOR RETURN return_type". The RETURN part is optional.

Specified by:
getCursorReturnType in interface PlsqlTypedef
Returns:
the (optional) cursor return type.

getEnumeration

public PlsqlName[] getEnumeration()
Description copied from interface: PlsqlTypedef
Valid if this is a PTNOD_ENUM_TY_DEF. Follows the syntax of "TYPE name IS ( enumeration )".

Specified by:
getEnumeration in interface PlsqlTypedef
Returns:
a list of the enumerated identifiers.

getRecordColumns

public PlsqlVariable[] getRecordColumns()
Description copied from interface: PlsqlTypedef
Valid if this is a PTNOD_RECORD_TY_DEF. Follows the syntax of "TYPE name IS RECORD( columns )".

Specified by:
getRecordColumns in interface PlsqlTypedef
Returns:
a list of the columns.

getTableType

public PlsqlType getTableType()
Description copied from interface: PlsqlTypedef
Valid if this is a PTNOD_TBL_TY_DEF. Follows the syntax of "TYPE name is TABLE( columns )".

Specified by:
getTableType in interface PlsqlTypedef
Returns:
the PlsqlType for the "TABLE( columns )" portion.

getArrayComponentType

public PlsqlType getArrayComponentType()
Description copied from interface: PlsqlTypedef
Valid if this is a PTNOD_UNCNSTRND_ARRAY_DEF. Follows the syntax "TYPE name IS TABLE OF component_type INDEX by index_type". Valid if this is a PTNOD_C_ARRAY_DEF. Follows the syntax "TYPE name IS ARRAY( length ) of component_type.

Specified by:
getArrayComponentType in interface PlsqlTypedef
Returns:
The component (element) type of this array.

getArrayIndexType

public PlsqlType getArrayIndexType()
Description copied from interface: PlsqlTypedef
Valid if this is a PTNOD_UNCNSTRND_ARRAY_DEF. Follows the syntax "TYPE name IS TABLE OF component_type INDEX by index_type".

Specified by:
getArrayIndexType in interface PlsqlTypedef
Returns:
The index type of this array.

getArrayLength

public PlsqlName getArrayLength()
Description copied from interface: PlsqlTypedef
Valid if this is a PTNOD_C_ARRAY_DEF. Follows the syntax "TYPE name IS ARRAY( length ) of component_type".

Specified by:
getArrayLength in interface PlsqlTypedef

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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