# Interface: com.pnfsoftware.jeb.core.units.code.android.render.IDexItemToAnchor

Convert an [ICodeItem](ICodeItem) to its related [IAnchor](IAnchor) id.

## Method: from
- parameter: `itemCoordinates`, type: `com.pnfsoftware.jeb.core.output.code.coordinates.ICodeCoordinates`
- return type: `java.lang.Long`

Description: Convert an [ICodeCoordinates](ICodeCoordinates) to its anchor id.
parameter: itemCoordinates: item [ICodeCoordinates](ICodeCoordinates).
return: anchor id. See [IAnchor](IAnchor) for more details.

## Method: fromClass
- parameter: `c`, type: `com.pnfsoftware.jeb.core.units.code.android.dex.IDexClass`
- return type: `java.lang.Long`

Description: Convert an [IDexClass](IDexClass) to its anchor id.
parameter: c: dex class.
return: anchor id. See [IAnchor](IAnchor) for more details.

## Method: fromField
- parameter: `f`, type: `com.pnfsoftware.jeb.core.units.code.android.dex.IDexField`
- return type: `java.lang.Long`

Description: Convert an [IDexField](IDexField) to its anchor id.
parameter: f: dex field.
return: anchor id. See [IAnchor](IAnchor) for more details.

## Method: fromInstruction
- parameter: `m`, type: `com.pnfsoftware.jeb.core.units.code.android.dex.IDexMethod`
- parameter: `b`, type: `com.pnfsoftware.jeb.core.units.code.android.controlflow.BasicBlock<com.pnfsoftware.jeb.core.units.code.android.dex.IDalvikInstruction>`
- return type: `java.lang.Long`

Description: Convert the first instruction of a [BasicBlock](BasicBlock) of an [IDexMethod](IDexMethod) to its anchor id.
parameter: m: dex method.
parameter: b: 
return: anchor id. See [IAnchor](IAnchor) for more details.

## Method: fromMethod
- parameter: `m`, type: `com.pnfsoftware.jeb.core.units.code.android.dex.IDexMethod`
- return type: `java.lang.Long`

Description: Convert an [IDexMethod](IDexMethod) to its anchor id.
parameter: m: dex method.
return: anchor id. See [IAnchor](IAnchor) for more details.

## Method: get
- parameter: `anchorId`, type: `long`
- return type: `com.pnfsoftware.jeb.core.output.code.coordinates.ICodeCoordinates`

Description: 
parameter: anchorId: 
return: 

## Method: size
- return type: `int`

Description: Same as [ITextDocument#getAnchorCount()](ITextDocument#getAnchorCount())
return: the anchor count

