|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bc.jexp.impl.SymbolFactory
public final class SymbolFactory
A utility class, which can be used to create constants or variables of a primitive boolean or numeric type.
| Method Summary | |
|---|---|
static Symbol |
createConstant(String name,
boolean value)
Creates a new boolean constant. |
static Symbol |
createConstant(String name,
double value)
Creates a new double constant. |
static Symbol |
createConstant(String name,
int value)
Creates a new int constant. |
static Variable |
createVariable(String name,
boolean value)
Creates a new boolean variable. |
static Variable |
createVariable(String name,
double value)
Creates a new double variable. |
static Variable |
createVariable(String name,
int value)
Creates a new int variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Symbol createConstant(String name,
boolean value)
boolean constant.
name - the constant's namevalue - the constant's final value
null
public static Symbol createConstant(String name,
int value)
int constant.
name - the constant's namevalue - the constant's final value
null
public static Symbol createConstant(String name,
double value)
double constant.
name - the constant's namevalue - the constant's final value
null
public static Variable createVariable(String name,
boolean value)
boolean variable.
name - the variable's namevalue - the variable's initial value
null
public static Variable createVariable(String name,
int value)
int variable.
name - the variable's namevalue - the variable's initial value
null
public static Variable createVariable(String name,
double value)
double variable.
name - the variable's namevalue - the variable's initial value
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||