/** * @return deep copy of this attribute */ public Attribute copy(ConstantPool constant_pool) { LocalVariableTable c = (LocalVariableTable)clone(); c.local_variable_table = new LocalVariable[local_variable_table_length]; for(int i=0; i < local_variable_table_length; i++) c.local_variable_table[i] = local_variable_table[i].copy(); c.constant_pool = constant_pool; return c; }
/** * @return deep copy of this attribute */ @Override public Attribute copy(final ConstantPool constant_pool) { final LocalVariableTypeTable c = (LocalVariableTypeTable) clone(); c.local_variable_type_table = new LocalVariable[local_variable_type_table.length]; for (int i = 0; i < local_variable_type_table.length; i++) { c.local_variable_type_table[i] = local_variable_type_table[i].copy(); } c.setConstantPool(constant_pool); return c; }
/** * @return deep copy of this attribute */ @Override public Attribute copy( final ConstantPool _constant_pool ) { final LocalVariableTable c = (LocalVariableTable) clone(); c.local_variable_table = new LocalVariable[local_variable_table.length]; for (int i = 0; i < local_variable_table.length; i++) { c.local_variable_table[i] = local_variable_table[i].copy(); } c.setConstantPool(_constant_pool); return c; }