# Interface: com.pnfsoftware.jeb.core.units.code.android.ir.IDField

`dexdec` IR generic interface for field elements, that is, static fields and instance fields. Two pseudo field exists: the instance field for `array.length`, and the static field for `Type.class`. 

 Refer to [IDInstanceField](IDInstanceField) and [IDStaticField](IDStaticField).

## Method: duplicate
- return type: `com.pnfsoftware.jeb.core.units.code.android.ir.IDField`


## Method: getFieldname
- return type: `java.lang.String`

Description: Retrieve the field simple name. Example: `field1`.
return: the field simple name, null if this object represents a pseudo\-field

## Method: getIndex
- return type: `com.pnfsoftware.jeb.core.units.code.android.ir.IDIndex`

Description: Retrieve the field index in the corresponding dex unit, if it is an actual field \(not a pseudo field\).
return: the field index, or null for pseudo\-fields

## Method: getNativeField
- parameter: `gctx`, type: `com.pnfsoftware.jeb.core.units.code.android.ir.IDGlobalContext`
- return type: `com.pnfsoftware.jeb.core.units.code.android.dex.IDexField`

Description: Retrieve the corresponding dex field object.
parameter: gctx: global IR context
return: the field object, null if this object represents a pseudo\-field

