@Test public void testGetConvert(){ ASMSupportClassLoader classLoader = CachedThreadLocalClassLoader.getInstance(); Value value = Value.value(classLoader, 1); Value newValue = value.getConvert(classLoader.getType(double.class)); Assert.assertEquals(Type.DOUBLE_TYPE, newValue.getType()); Assert.assertTrue(newValue.getValue() instanceof Double); }
public Value getConvert(IClass type) { Value newVal = value(type.getClassHolder(), value); convert(newVal, type); return newVal; }
Value implements IValue { public Value getConvert(IClass type) { Value newVal = value(type.getClassHolder(), value); convert(newVal, type); return newVal; } }
Value implements IValue { public Value getConvert(IClass type) { Value newVal = value(type.getClassHolder(), value); convert(newVal, type); return newVal; } private  Value(ClassHolder holder, Boolean value); private  Value(ClassHolder holder, Byte value); private  Value(ClassHolder holder, Short value); private  Value(ClassHolder holder, Character value); private  Value(ClassHolder holder, Integer value); private  Value(ClassHolder holder, Long value); private  Value(ClassHolder holder, Float value); private  Value(ClassHolder holder, Double value); private  Value(ClassHolder holder, String value); private  Value(); private  Value(IClass aclass); }
Value implements IValue { public Value getConvert(IClass type) { Value newVal = value(type.getClassHolder(), value); convert(newVal, type); return newVal; } private  Value(ClassHolder holder, Boolean value); private  Value(ClassHolder holder, Byte value); private  Value(ClassHolder holder, Short value); private  Value(ClassHolder holder, Character value); private  Value(ClassHolder holder, Integer value); private  Value(ClassHolder holder, Long value); private  Value(ClassHolder holder, Float value); private  Value(ClassHolder holder, Double value); private  Value(ClassHolder holder, String value); private  Value(); private  Value(IClass aclass); static Value defaultValue(IClass aclass); static Value getNullValue(ClassHolder holder, Class<?> type); static Value getNullValue(IClass type); static Value value(ClassHolder holder, Integer obj); static Value value(ClassHolder holder, Short obj); static Value value(ClassHolder holder, Byte obj); static Value value(ClassHolder holder, Boolean obj); static Value value(ClassHolder holder, Long obj); static Value value(ClassHolder holder, Double obj); static Value value(ClassHolder holder, Character obj); static Value value(ClassHolder holder, Float obj); static Value value(ClassHolder holder, IClass obj); static Value value(ClassHolder holder, Class<?> obj); static Value value(ClassHolder holder, String obj); static Value number(IClass type, int val); void convert(IClass type); Value getConvert(IClass type); @SuppressWarnings({ "unchecked", "rawtypes" }) int numberCompare(Value comp); boolean isNumber(); boolean isBoolean(); @Override void push(MethodExecuteContext context); @Override void asArgument(); @Override boolean equals(Object obj); @Override int hashCode(); Type getType(); Object getValue(); @Override IClass getResultType(); @Override String toString(); @Override GlobalVariable field(String name); }
Value implements IValue { public Value getConvert(IClass type) { Value newVal = value(type.getClassHolder(), value); convert(newVal, type); return newVal; } private  Value(ClassHolder holder, Boolean value); private  Value(ClassHolder holder, Byte value); private  Value(ClassHolder holder, Short value); private  Value(ClassHolder holder, Character value); private  Value(ClassHolder holder, Integer value); private  Value(ClassHolder holder, Long value); private  Value(ClassHolder holder, Float value); private  Value(ClassHolder holder, Double value); private  Value(ClassHolder holder, String value); private  Value(); private  Value(IClass aclass); static Value defaultValue(IClass aclass); static Value getNullValue(ClassHolder holder, Class<?> type); static Value getNullValue(IClass type); static Value value(ClassHolder holder, Integer obj); static Value value(ClassHolder holder, Short obj); static Value value(ClassHolder holder, Byte obj); static Value value(ClassHolder holder, Boolean obj); static Value value(ClassHolder holder, Long obj); static Value value(ClassHolder holder, Double obj); static Value value(ClassHolder holder, Character obj); static Value value(ClassHolder holder, Float obj); static Value value(ClassHolder holder, IClass obj); static Value value(ClassHolder holder, Class<?> obj); static Value value(ClassHolder holder, String obj); static Value number(IClass type, int val); void convert(IClass type); Value getConvert(IClass type); @SuppressWarnings({ "unchecked", "rawtypes" }) int numberCompare(Value comp); boolean isNumber(); boolean isBoolean(); @Override void push(MethodExecuteContext context); @Override void asArgument(); @Override boolean equals(Object obj); @Override int hashCode(); Type getType(); Object getValue(); @Override IClass getResultType(); @Override String toString(); @Override GlobalVariable field(String name);  }