proguard.classfile.editor
Class MembersEditor

java.lang.Object
  extended by proguard.classfile.editor.MembersEditor

public class MembersEditor
extends java.lang.Object

This class can add class members to classes. Class members to be added must be filled out beforehand, including their references to the constant pool.


Constructor Summary
MembersEditor()
           
 
Method Summary
 void addField(ProgramClass programClass, Field field)
          Adds a given field to the given class.
 void addMethod(ProgramClass programClass, Method method)
          Adds a given method to the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MembersEditor

public MembersEditor()
Method Detail

addField

public void addField(ProgramClass programClass,
                     Field field)
Adds a given field to the given class.


addMethod

public void addMethod(ProgramClass programClass,
                      Method method)
Adds a given method to the given class.