com.pnfsoftware.jeb.core.units.code.java.IJavaConstantFactory |
Builder for Java AST constants.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract IJavaConstant | createBoolean(boolean v) | ||||||||||
abstract IJavaConstant |
createBoolean(boolean v, String originInfo)
Create an AST
boolean value. | ||||||||||
abstract IJavaConstant |
createByte(byte v, String originInfo)
Create an AST
byte value. | ||||||||||
abstract IJavaConstant | createByte(byte v) | ||||||||||
abstract IJavaConstant |
createChar(char v, String originInfo)
Create an AST
char value. | ||||||||||
abstract IJavaConstant | createChar(char v) | ||||||||||
abstract IJavaConstant |
createDouble(double v, String originInfo)
Create an AST
double value. | ||||||||||
abstract IJavaConstant | createDouble(double v) | ||||||||||
abstract IJavaConstant |
createFloat(float v, String originInfo)
Create an AST
float value. | ||||||||||
abstract IJavaConstant | createFloat(float v) | ||||||||||
abstract IJavaConstant | createInt(int v) | ||||||||||
abstract IJavaConstant |
createInt(int v, String originInfo)
Create an AST
int value. | ||||||||||
abstract IJavaConstant |
createLong(long v, String originInfo)
Create an AST
long value. | ||||||||||
abstract IJavaConstant | createLong(long v) | ||||||||||
abstract IJavaConstant |
createNull()
Retrieve the AST
null value. | ||||||||||
abstract IJavaConstant |
createShort(short v, String originInfo)
Create an AST
short value. | ||||||||||
abstract IJavaConstant | createShort(short v) | ||||||||||
abstract IJavaConstant | createString(String v) | ||||||||||
abstract IJavaConstant |
createString(String v, String originInfo)
Create an AST String object.
|
Create an AST boolean
value.
originInfo | optional |
---|
Create an AST byte
value.
originInfo | optional |
---|
Create an AST char
value.
originInfo | optional |
---|
Create an AST double
value.
originInfo | optional |
---|
Create an AST float
value.
originInfo | optional |
---|
Create an AST int
value.
originInfo | optional |
---|
Create an AST long
value.
originInfo | optional |
---|
Create an AST short
value.
originInfo | optional |
---|
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 addString(String)
.
v | string value |
---|---|
originInfo | optional metadata information indicating the origin of the string; leave null if not necessary |