Constructor and Description |
---|
Builder(JebInstance instance)
Create a new Constant builder.
|
Modifier and Type | Method and Description |
---|---|
Constant |
buildBoolean(boolean z)
Build a boolean constant.
|
Constant |
buildByte(byte b)
Build a byte constant.
|
Constant |
buildChar(char c)
Build a character constant.
|
Constant |
buildDouble(double d)
Build a double constant.
|
Constant |
buildFloat(float f)
Build a float constant.
|
Constant |
buildInt(int i)
Build an integer constant.
|
Constant |
buildLong(long j)
Build a long constant.
|
Constant |
buildNegativeValue(Constant c)
Build a new constant that represents the negative value of the provided constant.
|
Constant |
buildNull()
Build the 'null' constant.
|
Constant |
buildShort(short s)
Build a short constant.
|
Constant |
buildString(java.lang.String str)
Build a string constant.
|
public Builder(JebInstance instance)
Create a new Constant builder.
instance
- mandatory JEB instancepublic Constant buildNull()
Build the 'null' constant.
public Constant buildBoolean(boolean z)
Build a boolean constant.
z
- boolean valuepublic Constant buildByte(byte b)
Build a byte constant.
b
- byte valuepublic Constant buildChar(char c)
Build a character constant.
c
- character valuepublic Constant buildShort(short s)
Build a short constant.
s
- short valuepublic Constant buildInt(int i)
Build an integer constant.
i
- integer valuepublic Constant buildLong(long j)
Build a long constant.
j
- long valuepublic Constant buildFloat(float f)
Build a float constant.
f
- float valuepublic Constant buildDouble(double d)
Build a double constant.
d
- double valuepublic Constant buildString(java.lang.String str)
Build a string constant.
str
- string value