- All Superinterfaces:
- Tree
- public interface TypeArgumentT
- extends Tree
A type argument for a type reference.
| Methods inherited from interface javax.ide.model.java.source.tree.Tree |
accept, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty |
EMPTY_ARRAY
public static final TypeArgumentT[] EMPTY_ARRAY
getBoundKind
public 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
public 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.
setType
public void setType(TypeReferenceT type)
- Unlinks the current source type and links the input element.