/** @return deep copy of this field */ public FieldGen copy(ConstantPoolGen cp) { FieldGen fg = (FieldGen)clone(); fg.setConstantPool(cp); return fg; } }
/** @return deep copy of this field */ public FieldGen copy( final ConstantPoolGen cp ) { final FieldGen fg = (FieldGen) clone(); fg.setConstantPool(cp); return fg; }
/** * Declare a field. If it is static (isStatic() == true) and has a * basic type like int or String it may have an initial value * associated with it as defined by setInitValue(). * * @param access_flags access qualifiers * @param type field type * @param name field name * @param cp constant pool */ public FieldGen(final int access_flags, final Type type, final String name, final ConstantPoolGen cp) { super(access_flags); setType(type); setName(name); setConstantPool(cp); }
/** * Declare a field. If it is static (isStatic() == true) and has a * basic type like int or String it may have an initial value * associated with it as defined by setInitValue(). * * @param access_flags access qualifiers * @param type field type * @param name field name * @param cp constant pool */ public FieldGen(int access_flags, Type type, String name, ConstantPoolGen cp) { setAccessFlags(access_flags); setType(type); setName(name); setConstantPool(cp); }