Package com.strobel.assembler.metadata
Class FieldDefinition
java.lang.Object
com.strobel.assembler.metadata.MemberReference
com.strobel.assembler.metadata.FieldReference
com.strobel.assembler.metadata.FieldDefinition
- All Implemented Interfaces:
IAnnotationsProvider
,IConstantValueProvider
,IMemberDefinition
,IMetadataTypeMember
public class FieldDefinition
extends FieldReference
implements IMemberDefinition, IConstantValueProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object
private final Collection
<CustomAnnotation> private final List
<CustomAnnotation> private TypeDefinition
private TypeReference
private long
private String
private final Collection
<SourceAttribute> private final List
<SourceAttribute> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringBuilder
protected StringBuilder
protected StringBuilder
protected StringBuilder
appendName
(StringBuilder sb, boolean fullName, boolean dottedName) protected StringBuilder
boolean
final List
<CustomAnnotation> protected final Collection
<CustomAnnotation> Human-readable brief description of a type or member, which does not include information super types, thrown exceptions, or modifiers other than 'static'.final Object
final TypeDefinition
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.final TypeReference
final long
getFlags()
final int
final String
getName()
Human-readable simple description of a type or member, which does not include information super type or fully-qualified type names.final List
<SourceAttribute> protected final Collection
<SourceAttribute> final boolean
int
hashCode()
final boolean
final boolean
final boolean
final boolean
isFinal()
final boolean
final boolean
final boolean
final boolean
final boolean
isPublic()
final boolean
isStatic()
final boolean
protected final void
setConstantValue
(Object constantValue) protected final void
setDeclaringType
(TypeDefinition declaringType) protected final void
setFieldType
(TypeReference fieldType) protected final void
setFlags
(long flags) protected final void
toString()
private boolean
typeNamesMatch
(TypeReference t1, TypeReference t2) Methods inherited from class com.strobel.assembler.metadata.FieldReference
appendErasedSignature, appendSignature, containsGenericParameters, isEquivalentTo, resolve
Methods inherited from class com.strobel.assembler.metadata.MemberReference
getErasedSignature, getFullName, getSignature, 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
getFullName, isSpecialName
-
Field Details
-
_customAnnotations
-
_sourceAttributes
-
_customAnnotationsView
-
_sourceAttributesView
-
_name
-
_fieldType
-
_declaringType
-
_constantValue
-
_flags
private long _flags
-
-
Constructor Details
-
FieldDefinition
-
-
Method Details
-
getAnnotations
- Specified by:
getAnnotations
in interfaceIAnnotationsProvider
- Overrides:
getAnnotations
in classMemberReference
-
getAnnotationsInternal
-
getSourceAttributes
-
getSourceAttributesInternal
-
hashCode
public int hashCode() -
equals
-
typeNamesMatch
-
isEnumConstant
public final boolean isEnumConstant() -
hasConstantValue
public final boolean hasConstantValue()- Specified by:
hasConstantValue
in interfaceIConstantValueProvider
-
getConstantValue
- Specified by:
getConstantValue
in interfaceIConstantValueProvider
-
getFieldType
- Specified by:
getFieldType
in classFieldReference
-
setFieldType
-
setConstantValue
-
getName
- Specified by:
getName
in interfaceIMemberDefinition
- Specified by:
getName
in interfaceIMetadataTypeMember
- Specified by:
getName
in classMemberReference
-
setName
-
isDefinition
public final boolean isDefinition()- Overrides:
isDefinition
in classMemberReference
-
getDeclaringType
- Specified by:
getDeclaringType
in interfaceIMemberDefinition
- Specified by:
getDeclaringType
in interfaceIMetadataTypeMember
- Specified by:
getDeclaringType
in classMemberReference
-
setDeclaringType
-
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
-
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
-
getBriefDescription
Human-readable brief description of a type or member, which does not include information super types, thrown exceptions, or modifiers other than 'static'.- Specified by:
getBriefDescription
in interfaceIMemberDefinition
-
getDescription
Human-readable full description of a type or member, which includes specification of super types (in brief format), thrown exceptions, and modifiers.- Specified by:
getDescription
in interfaceIMemberDefinition
-
getErasedDescription
Human-readable erased description of a type or member.- Specified by:
getErasedDescription
in interfaceIMemberDefinition
-
getSimpleDescription
Human-readable simple description of a type or member, which does not include information super type or fully-qualified type names.- Specified by:
getSimpleDescription
in interfaceIMemberDefinition
-
appendName
- Specified by:
appendName
in classFieldReference
-
appendDescription
-
appendBriefDescription
-
appendErasedDescription
-
appendSimpleDescription
-
toString
- Overrides:
toString
in classMemberReference
-