Schnittstelle IFieldInfo

Alle bekannten Implementierungsklassen:
FieldInfo

public interface IFieldInfo
Description of a field info as described in the JVM specifications. This interface may be implemented by clients.
Seit:
2.0
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    Answer back the access flag of this field info.
    int
    Answer back the attribute number of the field info.
    Answer back the collection of all attributes of the field info.
    Answer back the constant value attribute of this field info if specified, null otherwise.
    char[]
    Answer back the descriptor of this field info.
    int
    Answer back the descriptor index of this field info.
    char[]
    Answer back the name of this field info.
    int
    Answer back the name index of this field info.
    boolean
    Return true if the field info has a constant value attribute, false otherwise.
    boolean
    Return true if the field info has a deprecated attribute, false otherwise.
    boolean
    Return true if the field info is synthetic according to the JVM specification, false otherwise.
  • Methodendetails

    • getConstantValueAttribute

      IConstantValueAttribute getConstantValueAttribute()
      Answer back the constant value attribute of this field info if specified, null otherwise.
      Gibt zurück:
      the constant value attribute of this field info if specified, null otherwise
    • getAccessFlags

      int getAccessFlags()
      Answer back the access flag of this field info.
      Gibt zurück:
      the access flag of this field info
    • getName

      char[] getName()
      Answer back the name of this field info. The name is returned as specified in the JVM specifications.
      Gibt zurück:
      the name of this field info. The name is returned as specified in the JVM specifications
    • getNameIndex

      int getNameIndex()
      Answer back the name index of this field info.
      Gibt zurück:
      the name index of this field info
    • getDescriptor

      char[] getDescriptor()
      Answer back the descriptor of this field info. The descriptor is returned as specified in the JVM specifications.
      Gibt zurück:
      the descriptor of this field info. The descriptor is returned as specified in the JVM specifications
    • getDescriptorIndex

      int getDescriptorIndex()
      Answer back the descriptor index of this field info.
      Gibt zurück:
      the descriptor index of this field info
    • hasConstantValueAttribute

      boolean hasConstantValueAttribute()
      Return true if the field info has a constant value attribute, false otherwise.
      Gibt zurück:
      true if the field info has a constant value attribute, false otherwise
    • isSynthetic

      boolean isSynthetic()
      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.

      Gibt zurück:
      true if the field info is synthetic according to the JVM specification, false otherwise
    • isDeprecated

      boolean isDeprecated()
      Return true if the field info has a deprecated attribute, false otherwise.
      Gibt zurück:
      true if the field info has a deprecated attribute, false otherwise
    • getAttributeCount

      int getAttributeCount()
      Answer back the attribute number of the field info.
      Gibt zurück:
      the attribute number of the field info
    • getAttributes

      IClassFileAttribute[] getAttributes()
      Answer back the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none.
      Gibt zurück:
      the collection of all attributes of the field info. It includes SyntheticAttribute, ConstantValueAttributes, etc. Returns an empty collection if none