/** * Set the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setField(Field field) { if (field == null) return setFieldIndex(0); return setField(field.getDeclaringClass(), field.getName(), field.getType()); }
/** * Set the field this instruction operates on. * * @param dec the field's declaring class * @param name the field name * @param type the class of the field type * @return this instruction, for method chaining */ public FieldInstruction setField(Class dec, String name, Class type) { String decName = (dec == null) ? null : dec.getName(); String typeName = (type == null) ? null : type.getName(); return setField(decName, name, typeName); }
/** * Set the type of the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setFieldType(String type) { return setField(getFieldDeclarerName(), getFieldName(), type); }
/** * Set the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setField(Field field) { if (field == null) return setFieldIndex(0); return setField(field.getDeclaringClass(), field.getName(), field.getType()); }
/** * Set the declaring class of the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setFieldDeclarer(String type) { return setField(type, getFieldName(), getFieldTypeName()); }
/** * Set the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setField(BCField field) { if (field == null) return setFieldIndex(0); return setField(field.getDeclarer().getName(), field.getName(), field.getTypeName()); }
/** * Set the name of the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setFieldName(String name) { return setField(getFieldDeclarerName(), name, getFieldTypeName()); }
/** * Set the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setField(BCField field) { if (field == null) return setFieldIndex(0); return setField(field.getDeclarer().getName(), field.getName(), field.getTypeName()); }
/** * Set the type of the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setFieldType(String type) { return setField(getFieldDeclarerName(), getFieldName(), type); }
/** * Set the name of the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setFieldName(String name) { return setField(getFieldDeclarerName(), name, getFieldTypeName()); }
/** * Set the field this instruction operates on. * * @param dec the field's declaring class * @param name the field name * @param type the class of the field type * @return this instruction, for method chaining */ public FieldInstruction setField(BCClass dec, String name, BCClass type) { String decName = (dec == null) ? null : dec.getName(); String typeName = (type == null) ? null : type.getName(); return setField(decName, name, typeName); }
/** * Set the declaring class of the field this instruction operates on. * * @return this instruction, for method chaining */ public FieldInstruction setFieldDeclarer(String type) { return setField(type, getFieldName(), getFieldTypeName()); }
/** * Set the field this instruction operates on. * * @param dec the field's declaring class * @param name the field name * @param type the class of the field type * @return this instruction, for method chaining */ public FieldInstruction setField(BCClass dec, String name, BCClass type) { String decName = (dec == null) ? null : dec.getName(); String typeName = (type == null) ? null : type.getName(); return setField(decName, name, typeName); }
/** * Set the field this instruction operates on, for fields that are * declared by the current class. * * @param name the field name * @param type the class of the field type * @return this instruction, for method chaining */ public FieldInstruction setField(String name, Class type) { BCClass owner = getCode().getMethod().getDeclarer(); String typeName = (type == null) ? null : type.getName(); return setField(owner.getName(), name, typeName); }
void read(Instruction orig) { super.read(orig); FieldInstruction ins = (FieldInstruction) orig; setField(ins.getFieldDeclarerName(), ins.getFieldName(), ins.getFieldTypeName()); }
/** * Set the field this instruction operates on, for fields that are * declared by the current class. * * @param name the field name * @param type the full class name of the field type * @return this instruction, for method chaining */ public FieldInstruction setField(String name, String type) { BCClass owner = getCode().getMethod().getDeclarer(); return setField(owner.getName(), name, type); }
void read(Instruction orig) { super.read(orig); FieldInstruction ins = (FieldInstruction) orig; setField(ins.getFieldDeclarerName(), ins.getFieldName(), ins.getFieldTypeName()); }
/** * Set the field this instruction operates on, for fields that are * declared by the current class. * * @param name the field name * @param type the full class name of the field type * @return this instruction, for method chaining */ public FieldInstruction setField(String name, String type) { BCClass owner = getCode().getMethod().getDeclarer(); return setField(owner.getName(), name, type); }
/** * Set the field this instruction operates on, for fields that are * declared by the current class. * * @param name the field name * @param type the class of the field type * @return this instruction, for method chaining */ public FieldInstruction setField(String name, BCClass type) { BCClass owner = getCode().getMethod().getDeclarer(); String typeName = (type == null) ? null : type.getName(); return setField(owner.getName(), name, typeName); }
/** * Set the field this instruction operates on, for fields that are * declared by the current class. * * @param name the field name * @param type the class of the field type * @return this instruction, for method chaining */ public FieldInstruction setField(String name, BCClass type) { BCClass owner = getCode().getMethod().getDeclarer(); String typeName = (type == null) ? null : type.getName(); return setField(owner.getName(), name, typeName); }