# Interface: com.pnfsoftware.jeb.core.units.code.java.IJavaConstantFactory

Builder for Java AST constants.

## Method: createBoolean
- parameter: `v`, type: `boolean`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `boolean` value.
parameter: v: boolean value
return: boolean constant

## Method: createBoolean
- parameter: `v`, type: `boolean`
- parameter: `originInfo`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `boolean` value.
parameter: v: boolean value
parameter: originInfo: optional metadata information indicating the origin of the value
return: boolean constant

## Method: createByte
- parameter: `v`, type: `byte`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `byte` value.
parameter: v: byte value
return: byte constant

## Method: createByte
- parameter: `v`, type: `byte`
- parameter: `originInfo`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `byte` value.
parameter: v: byte value
parameter: originInfo: optional metadata information indicating the origin of the value
return: byte constant

## Method: createChar
- parameter: `v`, type: `char`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `char` value.
parameter: v: char value
return: char constant

## Method: createChar
- parameter: `v`, type: `char`
- parameter: `originInfo`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `char` value.
parameter: v: char value
parameter: originInfo: optional metadata information indicating the origin of the value
return: char constant

## Method: createDouble
- parameter: `v`, type: `double`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `double` value.
parameter: v: double value
return: double constant

## Method: createDouble
- parameter: `v`, type: `double`
- parameter: `originInfo`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `double` value.
parameter: v: double value
parameter: originInfo: optional metadata information indicating the origin of the value
return: double constant

## Method: createFloat
- parameter: `v`, type: `float`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `float` value.
parameter: v: float value
return: float constant

## Method: createFloat
- parameter: `v`, type: `float`
- parameter: `originInfo`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `float` value.
parameter: v: float value
parameter: originInfo: optional metadata information indicating the origin of the value
return: float constant

## Method: createInt
- parameter: `v`, type: `int`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `int` value.
parameter: v: int value
return: int constant

## Method: createInt
- parameter: `v`, type: `int`
- parameter: `originInfo`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `int` value.
parameter: v: int value
parameter: originInfo: optional metadata information indicating the origin of the value
return: int constant

## Method: createLong
- parameter: `v`, type: `long`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `long` value.
parameter: v: long value
return: long constant

## Method: createLong
- parameter: `v`, type: `long`
- parameter: `originInfo`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `long` value.
parameter: v: long value
parameter: originInfo: optional metadata information indicating the origin of the value
return: long constant

## Method: createNull
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Retrieve the AST `null` value.
return: the `null` constant

## Method: createShort
- parameter: `v`, type: `short`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `short` value.
parameter: v: short value
return: short constant

## Method: createShort
- parameter: `v`, type: `short`
- parameter: `originInfo`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST `short` value.
parameter: v: short value
parameter: originInfo: optional metadata information indicating the origin of the value
return: short constant

## Method: createString
- parameter: `v`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST String object.
parameter: v: string value
return: string constant

## Method: createString
- parameter: `v`, type: `java.lang.String`
- parameter: `originInfo`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaConstant`

Description: Create an AST String object. Note that the created object is not necessarily backed by a lower\-level \(dex\) string item. If the user needs to ensure that an AST String object is backed by a dex item, the existence of a matching dex string must be verified, or a new dex string be created. Refer to [IDexUnit#addString(String)](IDexUnit#addString(String)).
parameter: v: string value
parameter: originInfo: optional metadata information indicating the origin of the string; leave            null if not necessary
return: string constant

