Class TypeReference
java.lang.Object
com.strobel.assembler.metadata.MemberReference
com.strobel.assembler.metadata.TypeReference
- All Implemented Interfaces:
IAnnotationsProvider, IGenericContext, IGenericParameterProvider, IMetadataTypeMember
- Direct Known Subclasses:
ArrayType, BytecodeLanguage.DummyTypeReference, CapturedType, CompoundTypeReference, CoreMetadataFactory.UnresolvedGenericType, CoreMetadataFactory.UnresolvedType, ParameterizedType, RawType, TypeDefinition, UnionType, WildcardType
public abstract class TypeReference
extends MemberReference
implements IGenericParameterProvider, IGenericContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayTypeprivate TypeReferenceprivate Stringstatic final TypeReference[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <R,P> R accept(TypeMetadataVisitor<P, R> visitor, P parameter) protected StringBuilderprotected StringBuilderprotected StringBuilderprotected StringBuilderprotected StringBuilderprotected StringBuilderprotected StringBuilderprotected StringBuilderprotected StringBuilderappendName(StringBuilder sb, boolean fullName, boolean dottedName) protected StringBuilderprotected StringBuilderprotected static booleancheckRecursive(TypeReference type, List<? extends TypeReference> arguments) private static booleancheckRecursiveCore(String typeName, List<? extends TypeReference> arguments, int depth) booleanbooleanfindTypeVariable(String name) Human-readable brief description of a type or member, which does not include information super types, thrown exceptions, or modifiers other than 'static'.Human-readable full description of a type or member, which includes specification of super types (in brief format), thrown exceptions, and modifiers.Human-readable erased description of a type or member.getName()Human-readable simple description of a type or member, which does not include information super type or fully-qualified type names.abstract StringbooleanbooleaninthashCode()booleanbooleanisArray()booleanbooleanbooleanisEquivalentTo(MemberReference member) booleanbooleanbooleanbooleanisNested()booleanbooleanbooleanbooleanisVoid()booleanmakeGenericType(TypeReference... typeArguments) makeGenericType(List<? extends TypeReference> typeArguments) resolve()resolve(FieldReference field) resolve(MethodReference method) resolve(TypeReference type) protected final voidsetDeclaringType(TypeReference declaringType) protected voidtoString()Methods inherited from class MemberReference
getAnnotations, getErasedSignature, getSignature, hasAnnotations, isDefinition, isSpecialName
-
Field Details
-
EMPTY_REFERENCES
-
_name
-
_declaringType
-
_arrayType
-
-
Constructor Details
-
TypeReference
public TypeReference()
-
-
Method Details
-
containsGenericParameters
public boolean containsGenericParameters()- Overrides:
containsGenericParametersin classMemberReference
-
getName
- Specified by:
getNamein interfaceIMetadataTypeMember- Specified by:
getNamein classMemberReference
-
getPackageName
-
getDeclaringType
- Specified by:
getDeclaringTypein interfaceIMetadataTypeMember- Specified by:
getDeclaringTypein classMemberReference
-
isEquivalentTo
- Overrides:
isEquivalentToin classMemberReference
-
setName
-
setDeclaringType
-
getSimpleName
-
getFullName
- Overrides:
getFullNamein classMemberReference
-
getInternalName
-
getUnderlyingType
-
getElementType
-
accept
-
hashCode
-
equals
-
makeArrayType
-
makeGenericType
-
makeGenericType
-
isWildcardType
public boolean isWildcardType() -
isCompoundType
public boolean isCompoundType() -
isUnionType
public boolean isUnionType() -
isBoundedType
public boolean isBoundedType() -
isUnbounded
public boolean isUnbounded() -
hasExtendsBound
public boolean hasExtendsBound() -
hasSuperBound
public boolean hasSuperBound() -
getExtendsBound
-
getSuperBound
-
getSimpleType
-
isNested
public boolean isNested() -
isArray
public boolean isArray() -
isPrimitive
public boolean isPrimitive() -
isVoid
public boolean isVoid() -
hasGenericParameters
public boolean hasGenericParameters()- Specified by:
hasGenericParametersin interfaceIGenericParameterProvider
-
isGenericDefinition
public boolean isGenericDefinition()- Specified by:
isGenericDefinitionin interfaceIGenericParameterProvider
-
getGenericParameters
- Specified by:
getGenericParametersin interfaceIGenericParameterProvider
-
isGenericParameter
public boolean isGenericParameter() -
isGenericType
public boolean isGenericType() -
getRawType
-
findTypeVariable
- Specified by:
findTypeVariablein interfaceIGenericContext
-
getBriefDescription
Human-readable brief description of a type or member, which does not include information super types, thrown exceptions, or modifiers other than 'static'. -
getDescription
Human-readable full description of a type or member, which includes specification of super types (in brief format), thrown exceptions, and modifiers. -
getErasedDescription
Human-readable erased description of a type or member. -
getSimpleDescription
Human-readable simple description of a type or member, which does not include information super type or fully-qualified type names. -
appendName
- Specified by:
appendNamein classMemberReference
-
appendBriefDescription
-
appendSimpleDescription
-
appendErasedDescription
-
appendDescription
-
appendSignature
- Specified by:
appendSignaturein classMemberReference
-
appendErasedSignature
- Specified by:
appendErasedSignaturein classMemberReference
-
toString
- Overrides:
toStringin classMemberReference
-
appendGenericSignature
-
appendClassSignature
-
appendErasedClassSignature
-
appendClassDescription
-
resolve
-
resolve
-
resolve
-
resolve
-
checkRecursive
protected static boolean checkRecursive(TypeReference type, List<? extends TypeReference> arguments) -
checkRecursiveCore
private static boolean checkRecursiveCore(String typeName, List<? extends TypeReference> arguments, int depth)
-