Package com.strobel.assembler.metadata
Class CapturedType
- java.lang.Object
-
- com.strobel.assembler.metadata.MemberReference
-
- com.strobel.assembler.metadata.TypeReference
-
- com.strobel.assembler.metadata.CapturedType
-
- All Implemented Interfaces:
IAnnotationsProvider
,ICapturedType
,IGenericContext
,IGenericParameterProvider
,IMetadataTypeMember
public final class CapturedType extends TypeReference implements ICapturedType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.strobel.assembler.metadata.TypeReference
TypeReference.TypeFunctions
-
-
Field Summary
Fields Modifier and Type Field Description private TypeReference
_extendsBound
private TypeReference
_superBound
private WildcardType
_wildcard
-
Fields inherited from class com.strobel.assembler.metadata.TypeReference
EMPTY_REFERENCES
-
-
Constructor Summary
Constructors Constructor Description CapturedType(TypeReference superBound, TypeReference extendsBound, WildcardType wildcard)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(TypeMetadataVisitor<P,R> visitor, P parameter)
protected java.lang.StringBuilder
appendName(java.lang.StringBuilder sb, boolean fullName, boolean dottedName)
TypeReference
getExtendsBound()
java.lang.String
getSimpleName()
TypeReference
getSuperBound()
WildcardType
getWildcard()
boolean
hasExtendsBound()
boolean
hasSuperBound()
boolean
isBoundedType()
-
Methods inherited from class com.strobel.assembler.metadata.TypeReference
appendBriefDescription, appendClassDescription, appendClassSignature, appendDescription, appendErasedClassSignature, appendErasedDescription, appendErasedSignature, appendGenericSignature, appendSignature, appendSimpleDescription, checkRecursive, containsGenericParameters, equals, findTypeVariable, getBriefDescription, getDeclaringType, getDescription, getElementType, getErasedDescription, getFullName, getGenericParameters, getInternalName, getName, getPackageName, getRawType, getSimpleDescription, getSimpleType, getUnderlyingType, hasGenericParameters, hashCode, isArray, isCompoundType, isEquivalentTo, isGenericDefinition, isGenericParameter, isGenericType, isNested, isPrimitive, isUnbounded, isUnionType, isVoid, isWildcardType, makeArrayType, makeGenericType, makeGenericType, resolve, resolve, resolve, resolve, setDeclaringType, setName, toString
-
Methods inherited from class com.strobel.assembler.metadata.MemberReference
getAnnotations, getErasedSignature, getSignature, hasAnnotations, isDefinition, isSpecialName
-
-
-
-
Field Detail
-
_superBound
private final TypeReference _superBound
-
_extendsBound
private final TypeReference _extendsBound
-
_wildcard
private final WildcardType _wildcard
-
-
Constructor Detail
-
CapturedType
CapturedType(TypeReference superBound, TypeReference extendsBound, WildcardType wildcard)
-
-
Method Detail
-
getWildcard
public final WildcardType getWildcard()
- Specified by:
getWildcard
in interfaceICapturedType
-
getExtendsBound
public final TypeReference getExtendsBound()
- Overrides:
getExtendsBound
in classTypeReference
-
getSuperBound
public final TypeReference getSuperBound()
- Overrides:
getSuperBound
in classTypeReference
-
hasExtendsBound
public final boolean hasExtendsBound()
- Overrides:
hasExtendsBound
in classTypeReference
-
hasSuperBound
public final boolean hasSuperBound()
- Overrides:
hasSuperBound
in classTypeReference
-
isBoundedType
public final boolean isBoundedType()
- Overrides:
isBoundedType
in classTypeReference
-
getSimpleName
public java.lang.String getSimpleName()
- Specified by:
getSimpleName
in classTypeReference
-
accept
public final <R,P> R accept(TypeMetadataVisitor<P,R> visitor, P parameter)
- Specified by:
accept
in classTypeReference
-
appendName
protected final java.lang.StringBuilder appendName(java.lang.StringBuilder sb, boolean fullName, boolean dottedName)
- Overrides:
appendName
in classTypeReference
-
-