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

E17493-02

oracle.javatools.parser.java.v2.model
Interface SourceTypeArgument

All Superinterfaces:
Element, JavaElement, JavaHasType, SourceElement, SourceHasType

public interface SourceTypeArgument
extends SourceElement, SourceHasType, JavaHasType

A type argument for a type reference.


Field Summary
static SourceTypeArgument[] EMPTY_ARRAY
           
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
 
Method Summary
 int getBound()
          Gets the bound kind.
 SourceTypeReference getSourceType()
          Gets the bound's source type.
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceHasType
setSourceType
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
addSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasType
getResolvedType, getUnresolvedType
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo
 

Field Detail

EMPTY_ARRAY

static final SourceTypeArgument[] EMPTY_ARRAY
Method Detail

getBound

int getBound()
Gets the bound kind.
 BOUND_NARROW. The exact type is specified.
 BOUND_EXTENDS. Type specifies an "extends" bound. Only types that
                extend the given bound are allowed.
 BOUND_SUPER. Type specifies a "super" bound. Only super types of
              the given bound are allowed.
 BOUND_NONE. No explicit bound. Implies "extends" java/lang/Object.


getSourceType

SourceTypeReference getSourceType()
Gets the bound's source type.
 BOUND_NARROW. Returns the specified type.
 BOUND_EXTENDS. Returns the "extends" bound.
 BOUND_SUPER. Returns the "super" bound.
 BOUND_NONE. Returns null.

Specified by:
getSourceType in interface SourceHasType
Returns:
The type of this variable. In some cases, the type symbol will be synthetic.

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

E17493-02

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