public interface SourceTypeArgument extends SourceElement, SourceHasType, JavaHasType
| Modifier and Type | Field and Description |
|---|---|
static SourceTypeArgument[] |
EMPTY_ARRAY |
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT| Modifier and Type | Method and Description |
|---|---|
int |
getBound()
Gets the bound kind.
|
SourceTypeReference |
getSourceType()
Gets the bound's source type.
|
setSourceTypeaddSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getJdkVersion, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, getTokens, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelfgetResolvedType, getUnresolvedTypegetElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfostatic final SourceTypeArgument[] EMPTY_ARRAY
int getBound()
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.
SourceTypeReference getSourceType()
BOUND_NARROW. Returns the specified type. BOUND_EXTENDS. Returns the "extends" bound. BOUND_SUPER. Returns the "super" bound. BOUND_NONE. Returns null.
getSourceType in interface SourceHasType