/** * Constructs a short constant value. The initial value is 0. */ public ShortMemberValue(ConstPool cp) { super('S', cp); setValue((short)0); }
/** * Obtains the string representation of this object. */ public String toString() { return Short.toString(getValue()); }
break; case 'S' : m = new ShortMemberValue(index, cp); break; case 'Z' :
@Override public void visitShortMemberValue(ShortMemberValue node) { array[index] = new ShortMemberValue(node.getValue(), constPool); }
return new CharMemberValue(cp); else if (type == CtClass.shortType) return new ShortMemberValue(cp); else if (type == CtClass.intType) return new IntegerMemberValue(cp);
@Override public void visitShortMemberValue(ShortMemberValue node) { array[index] = new ShortMemberValue(node.getValue(), constPool); }
/** * Constructs a short constant value. * * @param s the initial value. */ public ShortMemberValue(short s, ConstPool cp) { super('S', cp); setValue(s); }
Object getValue(ClassLoader cl, ClassPool cp, Method m) { return new Short(getValue()); }
break; case 'S' : m = new ShortMemberValue(index, cp); break; case 'Z' :
/** * Constructs a short constant value. The initial value is 0. */ public ShortMemberValue(ConstPool cp) { super('S', cp); setValue((short)0); }
/** * Obtains the string representation of this object. */ @Override public String toString() { return Short.toString(getValue()); }
return new CharMemberValue(cp); else if (type == CtClass.shortType) return new ShortMemberValue(cp); else if (type == CtClass.intType) return new IntegerMemberValue(cp);
/** * Constructs a short constant value. * * @param s the initial value. */ public ShortMemberValue(short s, ConstPool cp) { super('S', cp); setValue(s); }
@Override Object getValue(ClassLoader cl, ClassPool cp, Method m) { return Short.valueOf(getValue()); }
public void visitShortMemberValue(ShortMemberValue shortMemberValue) { value = new ShortMemberValue(cp); }
((CharMemberValue) memberValue).setValue((Character) value); } else if (memberValue instanceof ShortMemberValue) { ((ShortMemberValue) memberValue).setValue((Short) value); } else if (memberValue instanceof IntegerMemberValue) { ((IntegerMemberValue) memberValue).setValue((Integer) value);
/** * Writes the value. */ public void write(AnnotationsWriter writer) throws IOException { writer.constValueIndex(getValue()); }
public void visitShortMemberValue(ShortMemberValue shortMemberValue) { value = new ShortMemberValue(cp); }
((CharMemberValue) memberValue).setValue((Character) value); } else if (memberValue instanceof ShortMemberValue) { ((ShortMemberValue) memberValue).setValue((Short) value); } else if (memberValue instanceof IntegerMemberValue) { ((IntegerMemberValue) memberValue).setValue((Integer) value);
@Override public void visitShortMemberValue(ShortMemberValue node) { values.add(String.valueOf(node.getValue())); }