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

E17493-01

javax.ide.model.java.source.tree
Interface TypeArgumentT

All Superinterfaces:
Tree

public interface TypeArgumentT
extends Tree

A type argument for a type reference.


Nested Class Summary
static class TypeArgumentT.BoundKind
          In this version, this class is 1.4 compatible.
 
Field Summary
static TypeArgumentT[] EMPTY_ARRAY
           
 
Method Summary
 TypeArgumentT.BoundKind getBoundKind()
          Gets the bound kind.
 TypeReferenceT getType()
          Gets the bound's type reference.
 void setType(TypeReferenceT type)
          Unlinks the current source type and links the input element.
 
Methods inherited from interface javax.ide.model.java.source.tree.Tree
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 

Field Detail

EMPTY_ARRAY

static final TypeArgumentT[] EMPTY_ARRAY
Method Detail

getBoundKind

TypeArgumentT.BoundKind getBoundKind()
Gets the bound kind.

 EXACT. The exact type is specified.
 EXTENDS. Type specifies an "extends" bound. Only types that
                extend the given bound are allowed.
 SUPER. Type specifies a "super" bound. Only super types of
              the given bound are allowed.
 UNBOUNDED. No explicit bound. Implies "extends" java/lang/Object.
 


getType

TypeReferenceT getType()
Gets the bound's type reference.

 EXACT. Returns the specified type.
 EXTENDS. Returns the "extends" bound.
 SUPER. Returns the "super" bound.
 UNBOUNDED. Returns null.
 

Returns:
This element's type reference.

setType

void setType(TypeReferenceT type)
Unlinks the current source type and links the input element.

Parameters:
type - The new type reference.
Throws:
java.lang.IllegalStateException - if the input type is already linked.

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.