/** * Return the {@link Class} object for the type of this field. */ public Class getType() { return Strings.toClass(getTypeName(), getClassLoader()); }
/** * Return the {@link Class} object for the type of this field. */ public Class getType() { return Strings.toClass(getTypeName(), getClassLoader()); }
/** * Return the bytecode for the type of this field. */ public BCClass getTypeBC() { return getProject().loadClass(getTypeName(), getClassLoader()); }
/** * Return the bytecode for the type of this field. */ public BCClass getTypeBC() { return getProject().loadClass(getTypeName(), getClassLoader()); }
/** * 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 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()); }
/** * Import the information from given field as a new field in this class. * * @return the added field */ public BCField declareField(BCField field) { BCField newField = declareField(field.getName(), field.getTypeName()); newField.setAccessFlags(field.getAccessFlags()); newField.setAttributes(field.getAttributes()); return newField; }
/** * Import the information from given field as a new field in this class. * * @return the added field */ public BCField declareField(BCField field) { BCField newField = declareField(field.getName(), field.getTypeName()); newField.setAccessFlags(field.getAccessFlags()); newField.setAttributes(field.getAttributes()); return newField; }
public void enterBCField(BCField obj) { openBlock("Field"); println("access=" + obj.getAccessFlags()); println("name=" + obj.getNameIndex() + " <" + obj.getName() + ">"); println("type=" + obj.getDescriptorIndex() + " <" + obj.getTypeName() + ">"); }
public void enterBCField(BCField obj) { openBlock("Field"); println("access=" + obj.getAccessFlags()); println("name=" + obj.getNameIndex() + " <" + obj.getName() + ">"); println("type=" + obj.getDescriptorIndex() + " <" + obj.getTypeName() + ">"); }