public class TypeDefinition extends TypeReference implements IMemberDefinition
| Constructor and Description |
|---|
TypeDefinition() |
TypeDefinition(IMetadataResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(TypeMetadataVisitor<P,R> visitor,
P parameter) |
protected java.lang.StringBuilder |
appendDescription(java.lang.StringBuilder sb) |
protected java.lang.StringBuilder |
appendGenericSignature(java.lang.StringBuilder sb) |
protected java.lang.StringBuilder |
appendName(java.lang.StringBuilder sb,
boolean fullName,
boolean dottedName) |
GenericParameter |
findTypeVariable(java.lang.String name) |
java.util.List<CustomAnnotation> |
getAnnotations() |
protected Collection<CustomAnnotation> |
getAnnotationsInternal() |
TypeReference |
getBaseType() |
int |
getCompilerMajorVersion() |
int |
getCompilerMinorVersion() |
ConstantPool |
getConstantPool() |
java.util.List<FieldDefinition> |
getDeclaredFields() |
protected Collection<FieldDefinition> |
getDeclaredFieldsInternal() |
java.util.List<MethodDefinition> |
getDeclaredMethods() |
protected Collection<MethodDefinition> |
getDeclaredMethodsInternal() |
java.util.List<TypeDefinition> |
getDeclaredTypes() |
protected Collection<TypeDefinition> |
getDeclaredTypesInternal() |
MethodReference |
getDeclaringMethod() |
java.util.List<java.lang.Enum> |
getEnumConstants() |
java.lang.String |
getErasedSignature()
Method that returns type erased signature of a type or member;
suitable as non-generic signature some packages need.
|
java.util.List<TypeReference> |
getExplicitInterfaces() |
protected Collection<TypeReference> |
getExplicitInterfacesInternal() |
long |
getFlags() |
java.lang.String |
getFullName() |
java.util.List<GenericParameter> |
getGenericParameters() |
protected GenericParameterCollection |
getGenericParametersInternal() |
java.lang.String |
getInternalName() |
int |
getModifiers() |
java.lang.String |
getPackageName() |
TypeReference |
getRawType() |
IMetadataResolver |
getResolver() |
java.lang.String |
getSignature()
Method that returns full generic signature of a type or member.
|
java.lang.String |
getSimpleName() |
JvmType |
getSimpleType() |
java.util.List<SourceAttribute> |
getSourceAttributes() |
protected Collection<SourceAttribute> |
getSourceAttributesInternal() |
boolean |
isAnnotation() |
boolean |
isAnonymous() |
boolean |
isArray() |
boolean |
isClass() |
boolean |
isCompoundType() |
boolean |
isDefinition() |
boolean |
isDeprecated() |
boolean |
isEnum() |
boolean |
isFinal() |
boolean |
isInnerClass() |
boolean |
isInterface() |
boolean |
isLocalClass() |
boolean |
isNested() |
boolean |
isNonPublic() |
boolean |
isPackagePrivate() |
boolean |
isPrimitive() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynthetic() |
TypeDefinition |
resolve() |
protected void |
setBaseType(TypeReference baseType) |
protected void |
setCompilerVersion(int majorVersion,
int minorVersion) |
protected void |
setConstantPool(ConstantPool constantPool) |
protected void |
setDeclaringMethod(MethodReference declaringMethod) |
protected void |
setEnumConstants(java.lang.Enum... values) |
protected void |
setFlags(long flags) |
protected void |
setPackageName(java.lang.String packageName) |
protected void |
setResolver(IMetadataResolver resolver) |
protected void |
setSimpleName(java.lang.String simpleName) |
appendBriefDescription, appendClassDescription, appendClassSignature, appendErasedClassSignature, appendErasedDescription, appendErasedSignature, appendSignature, appendSimpleDescription, containsGenericParameters, equals, getBriefDescription, getDeclaringType, getDescription, getElementType, getErasedDescription, getExtendsBound, getName, getSimpleDescription, getSuperBound, getUnderlyingType, hasExtendsBound, hasGenericParameters, hashCode, hasSuperBound, isBoundedType, isEquivalentTo, isGenericDefinition, isGenericParameter, isGenericType, isUnbounded, isVoid, isWildcardType, makeArrayType, makeGenericType, makeGenericType, resolve, resolve, resolve, setDeclaringType, setName, toStringhasAnnotations, isSpecialNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBriefDescription, getDeclaringType, getDescription, getErasedDescription, getName, getSimpleDescription, isSpecialNamepublic TypeDefinition()
public TypeDefinition(IMetadataResolver resolver)
public final int getCompilerMajorVersion()
public final int getCompilerMinorVersion()
public final ConstantPool getConstantPool()
protected final void setConstantPool(ConstantPool constantPool)
protected final void setCompilerVersion(int majorVersion,
int minorVersion)
public final IMetadataResolver getResolver()
protected final void setResolver(IMetadataResolver resolver)
public java.lang.String getPackageName()
getPackageName in class TypeReferencepublic java.lang.String getSimpleName()
getSimpleName in class TypeReferenceprotected final void setSimpleName(java.lang.String simpleName)
protected void setPackageName(java.lang.String packageName)
public java.lang.String getFullName()
getFullName in interface IMemberDefinitiongetFullName in class TypeReferencepublic java.lang.String getErasedSignature()
MemberReferencegetErasedSignature in class MemberReferencepublic java.lang.String getSignature()
MemberReferencegetSignature in class MemberReferencepublic java.lang.String getInternalName()
getInternalName in class TypeReferencepublic <R,P> R accept(TypeMetadataVisitor<P,R> visitor, P parameter)
accept in class TypeReferencepublic final MethodReference getDeclaringMethod()
protected final void setDeclaringMethod(MethodReference declaringMethod)
public final TypeReference getBaseType()
protected final void setBaseType(TypeReference baseType)
public final java.util.List<java.lang.Enum> getEnumConstants()
protected final void setEnumConstants(java.lang.Enum... values)
public final java.util.List<TypeReference> getExplicitInterfaces()
public final java.util.List<CustomAnnotation> getAnnotations()
getAnnotations in interface IAnnotationsProvidergetAnnotations in class MemberReferencepublic final java.util.List<SourceAttribute> getSourceAttributes()
public final java.util.List<GenericParameter> getGenericParameters()
getGenericParameters in interface IGenericParameterProvidergetGenericParameters in class TypeReferencepublic TypeReference getRawType()
getRawType in class TypeReferencepublic GenericParameter findTypeVariable(java.lang.String name)
findTypeVariable in interface IGenericContextfindTypeVariable in class TypeReferenceprotected java.lang.StringBuilder appendName(java.lang.StringBuilder sb,
boolean fullName,
boolean dottedName)
appendName in class TypeReferenceprotected final GenericParameterCollection getGenericParametersInternal()
protected final Collection<TypeDefinition> getDeclaredTypesInternal()
protected final Collection<FieldDefinition> getDeclaredFieldsInternal()
protected final Collection<MethodDefinition> getDeclaredMethodsInternal()
protected final Collection<TypeReference> getExplicitInterfacesInternal()
protected final Collection<CustomAnnotation> getAnnotationsInternal()
protected final Collection<SourceAttribute> getSourceAttributesInternal()
public TypeDefinition resolve()
resolve in class TypeReferencepublic final long getFlags()
getFlags in interface IMemberDefinitionprotected final void setFlags(long flags)
public final int getModifiers()
getModifiers in interface IMemberDefinitionpublic final boolean isFinal()
isFinal in interface IMemberDefinitionpublic final boolean isNonPublic()
isNonPublic in interface IMemberDefinitionpublic final boolean isPrivate()
isPrivate in interface IMemberDefinitionpublic final boolean isProtected()
isProtected in interface IMemberDefinitionpublic final boolean isPublic()
isPublic in interface IMemberDefinitionpublic final boolean isStatic()
isStatic in interface IMemberDefinitionpublic final boolean isSynthetic()
isSynthetic in interface IMemberDefinitionpublic final boolean isDeprecated()
isDeprecated in interface IMemberDefinitionpublic final boolean isPackagePrivate()
isPackagePrivate in interface IMemberDefinitionpublic JvmType getSimpleType()
getSimpleType in class TypeReferencepublic final boolean isAnnotation()
public final boolean isClass()
public final boolean isInterface()
public final boolean isEnum()
public final boolean isAnonymous()
public final boolean isInnerClass()
public final boolean isLocalClass()
public boolean isNested()
isNested in class TypeReferencepublic boolean isArray()
isArray in class TypeReferencepublic boolean isPrimitive()
isPrimitive in class TypeReferencepublic final boolean isDefinition()
isDefinition in class MemberReferencepublic final java.util.List<FieldDefinition> getDeclaredFields()
public final java.util.List<MethodDefinition> getDeclaredMethods()
public final java.util.List<TypeDefinition> getDeclaredTypes()
public boolean isCompoundType()
isCompoundType in class TypeReferenceprotected java.lang.StringBuilder appendDescription(java.lang.StringBuilder sb)
appendDescription in class TypeReferenceprotected java.lang.StringBuilder appendGenericSignature(java.lang.StringBuilder sb)
appendGenericSignature in class TypeReference