Method Summary |
|
public FieldInfo | addNewField(int modifiers, int typeIndex, int nameIndex) |
public FieldInfo | addNewField(int modifiers, int typeIndex, int nameIndex, int cvNameIndex, int constantValueIndex) |
public MethodInfo | addNewMethod(int modifiers, int typeIndex, int nameIndex, int exceptionIndex, int[] exceptionTypeIndices, int codeIndex) Adds a new method to this class. |
public int | classIndex() Get the index into the constant pool of class. |
public void | commit() Commit any changes to the file or to the virtual machine. |
public void | commitOnly(Set methods, Set fields) Commits only certain methods and fields.
Parameters: methods - Methods (MethodInfos) to commit. |
public Constant[] | constants() Returns an array of the constants in the constant pool. |
public void | deleteField(int nameIndex) |
public void | deleteMethod(int nameIndex, int typeIndex) |
public FieldInfo[] | fields() Get an array of FieldInfo structures for each field in the class. |
public int[] | interfaceIndices() Get the indices into the constant pool of class's interfaces. |
public ClassInfoLoader | loader() Get the class info loader for the class. |
public MethodInfo[] | methods() Returns an array of MethodInfo structures for each method in the class. |
public int | modifiers() Get the modifiers of the class. |
public String | name() Get the name of the class. |
public void | print(java.io.PrintStream out) |
public void | print(java.io.PrintWriter out) |
public void | setClassIndex(int index) Set the index into the constant pool of class. |
public void | setConstants(Constant[] constants) Set all the constants in the constant pool. |
public void | setInterfaceIndices(int[] indices) Set the indices into the constant pool of class's interfaces. |
public void | setMethods(MethodInfo[] methods) Sets the methods in this class. |
public void | setModifiers(int modifiers) Set the modifiers of the class. |
public void | setSuperclassIndex(int index) Set the index into the constant pool of class's superclass. |
public int | superclassIndex() Get the index into the constant pool of class's superclass. |
public String | toString() |