# Class: com.pnfsoftware.jeb.core.units.code.asm.type.CodeConstantManager

A manager for [Integer](Integer), [Long](Long) and [String](String) constants.

## Constructor: CodeConstantManager

Description: Create an empty constant manager.

## Static Field: EMPTY
Type: `com.pnfsoftware.jeb.core.units.code.asm.type.CodeConstantManager`
Description: An empty read\-only constant manager.

## Method: addConstant
- parameter: `name`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.Object`

Description: Add a constant.
parameter: name: constant name
parameter: value: constant value

## Method: clear

Description: Remove all constants.

## Method: equals
- parameter: `obj`, type: `java.lang.Object`
- return type: `boolean`


## Method: getNamedConstantsByValue
- parameter: `value`, type: `java.lang.Object`
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.asm.type.CodeConstant>`

Description: Get named constants matching a value.
parameter: value: constant value
return: matching named constants

## Method: getNamesByValue
- parameter: `value`, type: `java.lang.Object`
- return type: `java.util.Set<java.lang.String>`

Description: Get constant names for a value.
parameter: value: constant value
return: matching constant names

## Method: getValuesByName
- parameter: `name`, type: `java.lang.String`
- return type: `java.util.Set<java.lang.Object>`

Description: Get values for a constant name.
parameter: name: constant name
return: matching values

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


## Method: isLegalName
- parameter: `name`, type: `java.lang.String`
- return type: `boolean`

Description: Determine whether a constant name is legal.
parameter: name: constant name
return: true if the name is legal

## Method: isLegalValue
- parameter: `value`, type: `java.lang.Object`
- return type: `boolean`

Description: Determine whether a constant value is legal.
parameter: value: constant value
return: true if the value is legal

## Method: isLocked
- return type: `boolean`

Description: Determine whether this manager is read\-only.
return: true if this manager is locked

## Method: removeConstant
- parameter: `name`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.Object`

Description: Remove a constant.
parameter: name: constant name
parameter: value: constant value

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

Description: Get the number of stored name/value pairs.
return: number of constants

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


## Method: unlock

Description: RESERVED FOR INTERNAL USE.

