# Interface: com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICLabelFactory

A manager of [ICLabel](ICLabel). Each [ICMethod](ICMethod) has its own label factory.

## Method: create
- parameter: `offset`, type: `long`
- parameter: `name`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICLabel`

Description: Create a named label.
parameter: offset: a client\-defined offset, that may or may not represent a valid location within            the instruction sequence used to build this AST. In practice, this offset should            be an IR instruction one.
parameter: name: mandatory label name, should be unique, or the method will throw an exception.
return: the newly created label

## Method: create
- parameter: `offset`, type: `long`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICLabel`

Description: Create a named label. The label will be auto\-generated from the provided address.
parameter: offset: a client\-defined offset, that may or may not represent a valid location within            the instruction sequence used to build this AST. In practice, this offset should            be an IR instruction one.
return: 

## Method: create
- return type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICLabel`

Description: Create a label.
return: 

## Method: get
- parameter: `name`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICLabel`

Description: Retrieve an existing label by name.
parameter: name: label name
return: the label or null

## Method: get
- parameter: `offset`, type: `long`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICLabel`

Description: Retrieve an existing label by offset.
parameter: offset: label offset
return: the label or null

## Method: getLabels
- return type: `java.util.Collection<com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICLabel>`

Description: Retrieve a read\-only collection of labels defined by the factory.
return: 

