/** * Constructs a float constant value. * * @param f the initial value. */ public FloatMemberValue(float f, ConstPool cp) { super('F', cp); setValue(f); }
/** * Obtains the string representation of this object. */ public String toString() { return Float.toString(getValue()); }
return new LongMemberValue(cp); else if (type == CtClass.floatType) return new FloatMemberValue(cp); else if (type == CtClass.doubleType) return new DoubleMemberValue(cp);
@Override public void visitFloatMemberValue(FloatMemberValue node) { array[index] = new FloatMemberValue(node.getValue(), constPool); }
break; case 'F' : m = new FloatMemberValue(index, cp); break; case 'I' :
@Override public void visitFloatMemberValue(FloatMemberValue node) { array[index] = new FloatMemberValue(node.getValue(), constPool); }
/** * Constructs a float constant value. The initial value is 0.0. */ public FloatMemberValue(ConstPool cp) { super('F', cp); setValue(0.0F); }
Object getValue(ClassLoader cl, ClassPool cp, Method m) { return new Float(getValue()); }
return new LongMemberValue(cp); else if (type == CtClass.floatType) return new FloatMemberValue(cp); else if (type == CtClass.doubleType) return new DoubleMemberValue(cp);
/** * Constructs a float constant value. * * @param f the initial value. */ public FloatMemberValue(float f, ConstPool cp) { super('F', cp); setValue(f); }
/** * Obtains the string representation of this object. */ @Override public String toString() { return Float.toString(getValue()); }
break; case 'F' : m = new FloatMemberValue(index, cp); break; case 'I' :
/** * Constructs a float constant value. The initial value is 0.0. */ public FloatMemberValue(ConstPool cp) { super('F', cp); setValue(0.0F); }
@Override Object getValue(ClassLoader cl, ClassPool cp, Method m) { return Float.valueOf(getValue()); }
public void visitFloatMemberValue(FloatMemberValue floatMemberValue) { value = new FloatMemberValue(cp); }
((LongMemberValue) memberValue).setValue((Long) value); } else if (memberValue instanceof FloatMemberValue) { ((FloatMemberValue) memberValue).setValue((Float) value); } else if (memberValue instanceof DoubleMemberValue) { ((DoubleMemberValue) memberValue).setValue((Double) value);
/** * Writes the value. */ public void write(AnnotationsWriter writer) throws IOException { writer.constValueIndex(getValue()); }
public void visitFloatMemberValue(FloatMemberValue floatMemberValue) { value = new FloatMemberValue(cp); }
((LongMemberValue) memberValue).setValue((Long) value); } else if (memberValue instanceof FloatMemberValue) { ((FloatMemberValue) memberValue).setValue((Float) value); } else if (memberValue instanceof DoubleMemberValue) { ((DoubleMemberValue) memberValue).setValue((Double) value);
@Override public void visitFloatMemberValue(FloatMemberValue node) { values.add(String.valueOf(node.getValue())); }