| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | TypeVariableSource.AbstractBase
An abstract base implementation of a type variable source. |
| public static interface | TypeVariableSource.Visitor<
The visitor's return type. T>A visitor that can be applied to a type variable source. |
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeVariableSource | UNDEFINED
Indicates that a type variable source is undefined. |
| Modifier and Type | Method and Description |
|---|---|
| public < The visitor's return type. T> T | Returns: The visitor's return value.The visitor to apply. visitorApplies a visitor on this type variable source. |
| public TypeDescription. | Returns: The type variable.The symbolic name of the type variable. symbol)Finds a particular variable with the given name in the closes type variable source that is visible from this instance. |
| public TypeDescription. | Returns: The type variable ornull if it was not found.The symbolic name of the type variable. symbol)Finds a particular variable with the given name in the closes type variable source that is visible from this instance. |
| public TypeVariableSource | Returns: The enclosing source ornull if no such source exists.Returns the enclosing source of type variables that are valid in the scope of this type variable source. |
| public TypeList. | Returns: The type variables that are declared by this element.Returns the type variables that are declared by this element. |
| public boolean | Returns: true if this type code element has a generic declaration.Checks if this type variable source has a generic declaration. |
| public boolean | Returns: true if type variables declared by this type variable source allow dynamic type inference.Returns |
| UNDEFINED | back to summary |
|---|---|
| public static final TypeVariableSource UNDEFINED Indicates that a type variable source is undefined. | |
| accept | back to summary |
|---|---|
| public <T> T accept(TypeVariableSource. Applies a visitor on this type variable source.
| |
| findExpectedVariable | back to summary |
|---|---|
| public TypeDescription. Finds a particular variable with the given name in the closes type variable source that is visible from this instance. If the variable is not found, an exception is thrown.
| |
| findVariable | back to summary |
|---|---|
| public TypeDescription. Finds a particular variable with the given name in the closes type variable source that is visible from this instance.
| |
| getEnclosingSource | back to summary |
|---|---|
| public TypeVariableSource getEnclosingSource() Returns the enclosing source of type variables that are valid in the scope of this type variable source.
| |
| getTypeVariables | back to summary |
|---|---|
| public TypeList. Returns the type variables that are declared by this element. | |
| isGenerified | back to summary |
|---|---|
| public boolean isGenerified() Checks if this type variable source has a generic declaration. This means:
| |
| isInferrable | back to summary |
|---|---|
| public boolean isInferrable() Returns
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TypeDescription. | findExpectedVariable(String
The symbolic name of the type variable. symbol)Implements net. |
| public TypeDescription. | findVariable(String
The symbolic name of the type variable. symbol)Implements net. |
| protected abstract String | Returns: A safe string representation.Returns a |
| AbstractBase | back to summary |
|---|---|
| public AbstractBase() | |
| findExpectedVariable | back to summary |
|---|---|
| public TypeDescription. Implements net. Doc from net. Finds a particular variable with the given name in the closes type variable source that is visible from this instance. If the variable is not found, an exception is thrown.
| |
| findVariable | back to summary |
|---|---|
| public TypeDescription. Implements net. Doc from net. Finds a particular variable with the given name in the closes type variable source that is visible from this instance.
| |
| toSafeString | back to summary |
|---|---|
| protected abstract String toSafeString() Returns a
| |
| Modifier and Type | Class and Description |
|---|---|
| public static enum | TypeVariableSource.Visitor.NoOp
A none-operational implementation of a type variable visitor that simply returns the visited source. |
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: The visitor's return value.The method onto which this visitor is applied. methodDescriptionApplies the visitor on a method. |
| public T | Returns: The visitor's return value.The type onto which this visitor is applied. typeDescription)Applies the visitor on a type. |
| onMethod | back to summary |
|---|---|
| public T onMethod(MethodDescription. Applies the visitor on a method.
| |
| onType | back to summary |
|---|---|
| public T onType(TypeDescription typeDescription) Applies the visitor on a type.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeVariableSource. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public TypeVariableSource | onMethod(MethodDescription.
The method onto which this visitor is applied. methodDescriptionImplements net. |
| public TypeVariableSource | onType(TypeDescription
The type onto which this visitor is applied. typeDescription)Implements net. |
| public static TypeVariableSource. | |
| public static TypeVariableSource. |
| INSTANCE | back to summary |
|---|---|
| public static final TypeVariableSource. The singleton instance. | |
| NoOp | back to summary |
|---|---|
| private NoOp() | |
| onMethod | back to summary |
|---|---|
| public TypeVariableSource onMethod(MethodDescription. Implements net. Doc from net. Applies the visitor on a method.
| |
| onType | back to summary |
|---|---|
| public TypeVariableSource onType(TypeDescription typeDescription) Implements net. Doc from net. Applies the visitor on a type.
| |
| valueOf | back to summary |
|---|---|
| public static TypeVariableSource. | |
| values | back to summary |
|---|---|
| public static TypeVariableSource. | |