public class Value extends Object implements IValue
String, Class and all of primitive type,| 限定符和类型 | 方法和说明 |
|---|---|
void |
asArgument()
If current
KernelParam has used by other, than need call this method. |
void |
convert(AClass type)
convert current value to new type.
|
static Value |
defaultValue(AClass aclass)
Get a default value according class type.
|
boolean |
equals(Object obj) |
GlobalVariable |
field(String name)
Override change return type.
|
Value |
getConvert(AClass type)
get converted value
|
static Value |
getNullValue(AClass type)
Get
null value |
static Value |
getNullValue(Class<?> type)
Get
null value |
AClass |
getResultType() |
cn.wensiqun.asmsupport.org.objectweb.asm.Type |
getType() |
Object |
getValue() |
int |
hashCode() |
boolean |
isBoolean() |
boolean |
isNumber() |
void |
loadToStack(KernelProgramBlock block)
Push current to a stack of specify block
|
static Value |
number(AClass type,
int val)
get a Value object, according arguments
for examples:
number(AClassFactory.defType(double.class), 1) will return a Value object that value is
1D, and type is Double
|
int |
numberCompare(Value comp) |
String |
toString() |
static Value |
value(AClass obj)
Get
class value |
static Value |
value(Boolean obj)
Get
boolean value |
static Value |
value(Byte obj)
Get
byte value |
static Value |
value(Character obj)
Get
char value |
static Value |
value(Class<?> obj)
Get
class value |
static Value |
value(Double obj)
Get
double value |
static Value |
value(Float obj)
Get
float value |
static Value |
value(Integer obj)
Get
int value |
static Value |
value(Long obj)
Get
long value |
static Value |
value(Short obj)
Get
short value |
static Value |
value(String obj)
Get
null value |
public static Value defaultValue(AClass aclass)
aclass - the value type that's you want to createpublic static Value number(AClass type, int val)
type - val - public void convert(AClass type)
type - public int numberCompare(Value comp)
val - public boolean isNumber()
public boolean isBoolean()
public void loadToStack(KernelProgramBlock block)
PushStackableloadToStack 在接口中 PushStackablepublic void asArgument()
KernelParamKernelParam has used by other, than need call this method.asArgument 在接口中 KernelParampublic cn.wensiqun.asmsupport.org.objectweb.asm.Type getType()
public Object getValue()
public AClass getResultType()
getResultType 在接口中 IParampublic GlobalVariable field(String name)
KernelParamfield 在接口中 KernelParamfield 在接口中 IParamCopyright © 2015. All rights reserved.