public class FieldDefinition extends FieldReference implements IMemberDefinition, IConstantValueProvider
| Modifier | Constructor and Description |
|---|---|
protected |
FieldDefinition(IMetadataResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.StringBuilder |
appendBriefDescription(java.lang.StringBuilder sb) |
protected java.lang.StringBuilder |
appendDescription(java.lang.StringBuilder sb) |
protected java.lang.StringBuilder |
appendErasedDescription(java.lang.StringBuilder sb) |
protected java.lang.StringBuilder |
appendName(java.lang.StringBuilder sb,
boolean fullName,
boolean dottedName) |
protected java.lang.StringBuilder |
appendSimpleDescription(java.lang.StringBuilder sb) |
boolean |
equals(java.lang.Object obj) |
java.util.List<CustomAnnotation> |
getAnnotations() |
protected Collection<CustomAnnotation> |
getAnnotationsInternal() |
java.lang.String |
getBriefDescription()
Human-readable brief description of a type or member, which does not include information super types, thrown exceptions, or modifiers other than
'static'.
|
java.lang.Object |
getConstantValue() |
TypeDefinition |
getDeclaringType() |
java.lang.String |
getDescription()
Human-readable full description of a type or member, which includes specification of super types (in brief format), thrown exceptions, and modifiers.
|
java.lang.String |
getErasedDescription()
Human-readable erased description of a type or member.
|
TypeReference |
getFieldType() |
long |
getFlags() |
int |
getModifiers() |
java.lang.String |
getName() |
java.lang.String |
getSimpleDescription()
Human-readable simple description of a type or member, which does not include information super type or fully-qualified type names.
|
java.util.List<SourceAttribute> |
getSourceAttributes() |
protected Collection<SourceAttribute> |
getSourceAttributesInternal() |
boolean |
hasConstantValue() |
int |
hashCode() |
boolean |
isDefinition() |
boolean |
isDeprecated() |
boolean |
isEnumConstant() |
boolean |
isFinal() |
boolean |
isNonPublic() |
boolean |
isPackagePrivate() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynthetic() |
protected void |
setConstantValue(java.lang.Object constantValue) |
protected void |
setDeclaringType(TypeDefinition declaringType) |
protected void |
setFieldType(TypeReference fieldType) |
protected void |
setFlags(long flags) |
protected void |
setName(java.lang.String name) |
java.lang.String |
toString() |
appendErasedSignature, appendSignature, containsGenericParameters, isEquivalentTo, resolvegetErasedSignature, getFullName, getSignature, hasAnnotations, isSpecialNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFullName, isSpecialNameprotected FieldDefinition(IMetadataResolver resolver)
public final java.util.List<CustomAnnotation> getAnnotations()
getAnnotations in interface IAnnotationsProvidergetAnnotations in class MemberReferenceprotected final Collection<CustomAnnotation> getAnnotationsInternal()
public final java.util.List<SourceAttribute> getSourceAttributes()
protected final Collection<SourceAttribute> getSourceAttributesInternal()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final boolean isEnumConstant()
public final boolean hasConstantValue()
hasConstantValue in interface IConstantValueProviderpublic final java.lang.Object getConstantValue()
getConstantValue in interface IConstantValueProviderpublic final TypeReference getFieldType()
getFieldType in class FieldReferenceprotected final void setFieldType(TypeReference fieldType)
protected final void setConstantValue(java.lang.Object constantValue)
public final java.lang.String getName()
getName in interface IMemberDefinitiongetName in interface IMetadataTypeMembergetName in class MemberReferenceprotected final void setName(java.lang.String name)
public final boolean isDefinition()
isDefinition in class MemberReferencepublic final TypeDefinition getDeclaringType()
getDeclaringType in interface IMemberDefinitiongetDeclaringType in interface IMetadataTypeMembergetDeclaringType in class MemberReferenceprotected final void setDeclaringType(TypeDefinition declaringType)
public 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 java.lang.String getBriefDescription()
getBriefDescription in interface IMemberDefinitionpublic java.lang.String getDescription()
getDescription in interface IMemberDefinitionpublic java.lang.String getErasedDescription()
getErasedDescription in interface IMemberDefinitionpublic java.lang.String getSimpleDescription()
getSimpleDescription in interface IMemberDefinitionprotected java.lang.StringBuilder appendName(java.lang.StringBuilder sb,
boolean fullName,
boolean dottedName)
appendName in class FieldReferenceprotected java.lang.StringBuilder appendDescription(java.lang.StringBuilder sb)
protected java.lang.StringBuilder appendBriefDescription(java.lang.StringBuilder sb)
protected java.lang.StringBuilder appendErasedDescription(java.lang.StringBuilder sb)
protected java.lang.StringBuilder appendSimpleDescription(java.lang.StringBuilder sb)
public java.lang.String toString()
toString in class MemberReference