java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.FieldInfo
All Implemented Interfaces:
IFieldInfo

public class FieldInfo extends ClassFileStruct implements IFieldInfo
Default implementation of IFieldInfo.
  • Constructor Details

  • Method Details

    • getAccessFlags

      public int getAccessFlags()
      Description copied from interface: IFieldInfo
      Answer back the access flag of this field info.
      Specified by:
      getAccessFlags in interface IFieldInfo
      Returns:
      the access flag of this field info
      See Also:
    • getAttributeCount

      public int getAttributeCount()
      Description copied from interface: IFieldInfo
      Answer back the attribute number of the field info.
      Specified by:
      getAttributeCount in interface IFieldInfo
      Returns:
      the attribute number of the field info
      See Also:
    • getAttributes

      public IClassFileAttribute[] getAttributes()
      Description copied from interface: IFieldInfo
      Answer back the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none.
      Specified by:
      getAttributes in interface IFieldInfo
      Returns:
      the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none
      See Also:
    • getConstantValueAttribute

      public IConstantValueAttribute getConstantValueAttribute()
      Description copied from interface: IFieldInfo
      Answer back the constant value attribute of this field info if specified, null otherwise.
      Specified by:
      getConstantValueAttribute in interface IFieldInfo
      Returns:
      the constant value attribute of this field info if specified, null otherwise
      See Also:
    • getDescriptor

      public char[] getDescriptor()
      Description copied from interface: IFieldInfo
      Answer back the descriptor of this field info. The descriptor is returned as specified in the JVM specifications.
      Specified by:
      getDescriptor in interface IFieldInfo
      Returns:
      the descriptor of this field info. The descriptor is returned as specified in the JVM specifications
      See Also:
    • getDescriptorIndex

      public int getDescriptorIndex()
      Description copied from interface: IFieldInfo
      Answer back the descriptor index of this field info.
      Specified by:
      getDescriptorIndex in interface IFieldInfo
      Returns:
      the descriptor index of this field info
      See Also:
    • getName

      public char[] getName()
      Description copied from interface: IFieldInfo
      Answer back the name of this field info. The name is returned as specified in the JVM specifications.
      Specified by:
      getName in interface IFieldInfo
      Returns:
      the name of this field info. The name is returned as specified in the JVM specifications
      See Also:
    • getNameIndex

      public int getNameIndex()
      Description copied from interface: IFieldInfo
      Answer back the name index of this field info.
      Specified by:
      getNameIndex in interface IFieldInfo
      Returns:
      the name index of this field info
      See Also:
    • hasConstantValueAttribute

      public boolean hasConstantValueAttribute()
      Description copied from interface: IFieldInfo
      Return true if the field info has a constant value attribute, false otherwise.
      Specified by:
      hasConstantValueAttribute in interface IFieldInfo
      Returns:
      true if the field info has a constant value attribute, false otherwise
      See Also:
    • isDeprecated

      public boolean isDeprecated()
      Description copied from interface: IFieldInfo
      Return true if the field info has a deprecated attribute, false otherwise.
      Specified by:
      isDeprecated in interface IFieldInfo
      Returns:
      true if the field info has a deprecated attribute, false otherwise
      See Also:
    • isSynthetic

      public boolean isSynthetic()
      Description copied from interface: IFieldInfo
      Return true if the field info is synthetic according to the JVM specification, false otherwise.

      Note that prior to JDK 1.5, synthetic fields were always marked using an attribute; with 1.5, synthetic fields can also be marked using the IModifierConstants.ACC_SYNTHETIC flag.

      Specified by:
      isSynthetic in interface IFieldInfo
      Returns:
      true if the field info is synthetic according to the JVM specification, false otherwise
      See Also: