*/
public static Constant convertArgumentToConstantValue(Object object) {
if (object == null) {
return NullConstant.v();
} else if (object instanceof BooleanToken) {
BooleanToken flag = (BooleanToken) object;
if (flag.booleanValue()) {
return IntConstant.v(1);
} else {
return IntConstant.v(0);
}
} else if (object instanceof IntToken) {
return IntConstant.v(((IntToken) object).intValue());
} else if (object instanceof LongToken) {
return LongConstant.v(((LongToken) object).longValue());
} else if (object instanceof StringToken) {
return StringConstant.v(((StringToken) object).stringValue());
} else if (object instanceof DoubleToken) {
return DoubleConstant.v(((DoubleToken) object).doubleValue());
} else if (object instanceof Boolean) {
Boolean flag = (Boolean) object;
if (flag.booleanValue()) {
return IntConstant.v(1);
} else {
return IntConstant.v(0);
}
} else if (object instanceof Integer) {