Package com.strobel.assembler.metadata
Class TypeDefinition
java.lang.Object
com.strobel.assembler.metadata.MemberReference
com.strobel.assembler.metadata.TypeReference
com.strobel.assembler.metadata.TypeDefinition
- All Implemented Interfaces:
IAnnotationsProvider
,IGenericContext
,IGenericParameterProvider
,IMemberDefinition
,IMetadataTypeMember
- Direct Known Subclasses:
BottomType
,CompoundTypeDefinition
,GenericParameter
,InvokeDynamicRewriter.IndyHelperBuilder.HelperTypeDefinition
,MethodHandleConstantRewriter.LcdMHHelperBuilder.HelperTypeDefinition
,NullType
,PrimitiveType
,RecordTypeDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from class com.strobel.assembler.metadata.TypeReference
TypeReference.TypeFunctions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TypeReference
private int
private ConstantPool
private final Collection
<CustomAnnotation> private final List
<CustomAnnotation> private final Collection
<FieldDefinition> private final List
<FieldDefinition> private final Collection
<MethodDefinition> private final List
<MethodDefinition> private final Collection
<TypeDefinition> private final List
<TypeDefinition> private MethodReference
private String
private final Collection
<TypeReference> private final List
<TypeReference> private long
private String
private final GenericParameterCollection
private final List
<GenericParameter> private String
private String
private final Collection
<TypeReference> private final List
<TypeReference> private TypeReference
private IMetadataResolver
private String
private String
private final Collection
<SourceAttribute> private final List
<SourceAttribute> private ITypeLoader
Fields inherited from class com.strobel.assembler.metadata.TypeReference
EMPTY_REFERENCES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,
P> R accept
(TypeMetadataVisitor<P, R> visitor, P parameter) protected StringBuilder
protected StringBuilder
protected StringBuilder
appendName
(StringBuilder sb, boolean fullName, boolean dottedName) findTypeVariable
(String name) final List
<CustomAnnotation> protected final Collection
<CustomAnnotation> final TypeReference
final int
final int
final CompilerTarget
final ConstantPool
final List
<FieldDefinition> protected final Collection
<FieldDefinition> final List
<MethodDefinition> protected final Collection
<MethodDefinition> final List
<TypeDefinition> protected final Collection
<TypeDefinition> final MethodReference
Method that returns type erased signature of a type or member; suitable as non-generic signature some packages need.final List
<TypeReference> protected final Collection
<TypeReference> final long
getFlags()
final List
<GenericParameter> protected final GenericParameterCollection
final int
final List
<TypeReference> protected final Collection
<TypeReference> final IMetadataResolver
Method that returns full generic signature of a type or member.final List
<SourceAttribute> protected final Collection
<SourceAttribute> (package private) final ITypeLoader
final boolean
final boolean
boolean
isArray()
final boolean
isClass()
boolean
final boolean
final boolean
final boolean
isEnum()
final boolean
isFinal()
final boolean
final boolean
final boolean
final boolean
isModule()
boolean
isNested()
final boolean
final boolean
final boolean
boolean
final boolean
final boolean
final boolean
isPublic()
final boolean
isRecord()
final boolean
isSealed()
final boolean
isStatic()
final boolean
resolve()
protected final void
setBaseType
(TypeReference baseType) protected final void
setCompilerVersion
(int majorVersion, int minorVersion) protected final void
setConstantPool
(ConstantPool constantPool) protected final void
setDeclaringMethod
(MethodReference declaringMethod) protected final void
setEnumConstants
(Enum... values) protected final void
setFlags
(long flags) protected void
setPackageName
(String packageName) protected final void
setResolver
(IMetadataResolver resolver) protected final void
setSimpleName
(String simpleName) (package private) final void
setTypeLoader
(ITypeLoader typeLoader) Methods inherited from class com.strobel.assembler.metadata.TypeReference
appendBriefDescription, appendClassDescription, appendClassSignature, appendErasedClassSignature, appendErasedDescription, appendErasedSignature, appendSignature, appendSimpleDescription, checkRecursive, containsGenericParameters, equals, getBriefDescription, getDeclaringType, getDescription, getElementType, getErasedDescription, getExtendsBound, getName, getSimpleDescription, getSuperBound, getUnderlyingType, hasExtendsBound, hasGenericParameters, hashCode, hasSuperBound, isBoundedType, isEquivalentTo, isGenericDefinition, isGenericParameter, isGenericType, isUnbounded, isUnionType, isVoid, isWildcardType, makeArrayType, makeGenericType, makeGenericType, resolve, resolve, resolve, setDeclaringType, setName, toString
Methods inherited from class com.strobel.assembler.metadata.MemberReference
hasAnnotations, isSpecialName
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.strobel.assembler.metadata.IMemberDefinition
getBriefDescription, getDeclaringType, getDescription, getErasedDescription, getName, getSimpleDescription, isSpecialName
-
Field Details
-
_genericParameters
-
_declaredTypes
-
_declaredFields
-
_declaredMethods
-
_explicitInterfaces
-
_permittedSubclasses
-
_customAnnotations
-
_sourceAttributes
-
_genericParametersView
-
_declaredTypesView
-
_declaredFieldsView
-
_declaredMethodsView
-
_explicitInterfacesView
-
_permittedSubclassesView
-
_customAnnotationsView
-
_sourceAttributesView
-
_resolver
-
_simpleName
-
_packageName
-
_internalName
-
_fullName
-
_signature
-
_erasedSignature
-
_baseType
-
_flags
private long _flags -
_compilerVersion
private int _compilerVersion -
_enumConstants
-
_rawType
-
_declaringMethod
-
_constantPool
-
_typeLoader
-
-
Constructor Details
-
TypeDefinition
public TypeDefinition() -
TypeDefinition
-
-
Method Details
-
getTypeLoader
-
setTypeLoader
-
getCompilerTarget
-
getCompilerMajorVersion
public final int getCompilerMajorVersion() -
getCompilerMinorVersion
public final int getCompilerMinorVersion() -
getConstantPool
-
setConstantPool
-
setCompilerVersion
protected final void setCompilerVersion(int majorVersion, int minorVersion) -
getResolver
-
setResolver
-
getPackageName
- Overrides:
getPackageName
in classTypeReference
-
getSimpleName
- Specified by:
getSimpleName
in classTypeReference
-
setSimpleName
-
setPackageName
-
getFullName
- Specified by:
getFullName
in interfaceIMemberDefinition
- Overrides:
getFullName
in classTypeReference
-
getErasedSignature
Description copied from class:MemberReference
Method that returns type erased signature of a type or member; suitable as non-generic signature some packages need.- Overrides:
getErasedSignature
in classMemberReference
-
getSignature
Description copied from class:MemberReference
Method that returns full generic signature of a type or member.- Overrides:
getSignature
in classMemberReference
-
getInternalName
- Overrides:
getInternalName
in classTypeReference
-
accept
- Specified by:
accept
in classTypeReference
-
getDeclaringMethod
-
setDeclaringMethod
-
getBaseType
-
setBaseType
-
getEnumConstants
-
setEnumConstants
-
getExplicitInterfaces
-
getPermittedSubclasses
-
getAnnotations
- Specified by:
getAnnotations
in interfaceIAnnotationsProvider
- Overrides:
getAnnotations
in classMemberReference
-
getSourceAttributes
-
getGenericParameters
- Specified by:
getGenericParameters
in interfaceIGenericParameterProvider
- Overrides:
getGenericParameters
in classTypeReference
-
getRawType
- Overrides:
getRawType
in classTypeReference
-
findTypeVariable
- Specified by:
findTypeVariable
in interfaceIGenericContext
- Overrides:
findTypeVariable
in classTypeReference
-
appendName
- Overrides:
appendName
in classTypeReference
-
getGenericParametersInternal
-
getDeclaredTypesInternal
-
getDeclaredFieldsInternal
-
getDeclaredMethodsInternal
-
getExplicitInterfacesInternal
-
getPermittedSubclassesInternal
-
getAnnotationsInternal
-
getSourceAttributesInternal
-
resolve
- Overrides:
resolve
in classTypeReference
-
getFlags
public final long getFlags()- Specified by:
getFlags
in interfaceIMemberDefinition
-
setFlags
protected final void setFlags(long flags) -
getModifiers
public final int getModifiers()- Specified by:
getModifiers
in interfaceIMemberDefinition
-
isFinal
public final boolean isFinal()- Specified by:
isFinal
in interfaceIMemberDefinition
-
isNonPublic
public final boolean isNonPublic()- Specified by:
isNonPublic
in interfaceIMemberDefinition
-
isPrivate
public final boolean isPrivate()- Specified by:
isPrivate
in interfaceIMemberDefinition
-
isProtected
public final boolean isProtected()- Specified by:
isProtected
in interfaceIMemberDefinition
-
isPublic
public final boolean isPublic()- Specified by:
isPublic
in interfaceIMemberDefinition
-
isStatic
public final boolean isStatic()- Specified by:
isStatic
in interfaceIMemberDefinition
-
isSealed
public final boolean isSealed() -
isNonSealed
public final boolean isNonSealed() -
isSynthetic
public final boolean isSynthetic()- Specified by:
isSynthetic
in interfaceIMemberDefinition
-
isDeprecated
public final boolean isDeprecated()- Specified by:
isDeprecated
in interfaceIMemberDefinition
-
isPackagePrivate
public final boolean isPackagePrivate()- Specified by:
isPackagePrivate
in interfaceIMemberDefinition
-
getSimpleType
- Overrides:
getSimpleType
in classTypeReference
-
isAnnotation
public final boolean isAnnotation() -
isClass
public final boolean isClass() -
isInterface
public final boolean isInterface() -
isEnum
public final boolean isEnum() -
isRecord
public final boolean isRecord() -
isModule
public final boolean isModule() -
isAnonymous
public final boolean isAnonymous() -
isInnerClass
public final boolean isInnerClass() -
isLocalClass
public final boolean isLocalClass() -
isNested
public boolean isNested()- Overrides:
isNested
in classTypeReference
-
isArray
public boolean isArray()- Overrides:
isArray
in classTypeReference
-
isPrimitive
public boolean isPrimitive()- Overrides:
isPrimitive
in classTypeReference
-
isDefinition
public final boolean isDefinition()- Overrides:
isDefinition
in classMemberReference
-
getDeclaredFields
-
getDeclaredMethods
-
getDeclaredTypes
-
isCompoundType
public boolean isCompoundType()- Overrides:
isCompoundType
in classTypeReference
-
appendDescription
- Overrides:
appendDescription
in classTypeReference
-
appendGenericSignature
- Overrides:
appendGenericSignature
in classTypeReference
-