Package proguard.classfile.editor

This package contains visitors to edit byte code.

See:
          Description

Class Summary
AccessFixer This ConstantVisitor fixes the access modifiers of all classes and class members that are referenced by the constants that it visits.
AnnotationAdder This AnnotationVisitor adds all annotations that it visits to the given target annotation element value, target annotation attribute, or target parameter annotation attribute.
AnnotationsAttributeEditor This class can add annotations to a given annotations attribute.
AttributeAdder This AttributeVisitor adds all attributes that it visits to the given target class, class member, or attribute.
AttributesEditor This class can add and delete attributes to and from classes, fields, methods, and code attributes.
AttributeSorter This ClassVisitor sorts the attributes of the classes that it visits.
ClassEditor This class can add interfaces and class members to a given class.
ClassElementSorter This ClassVisitor sorts the various elements of the classes that it visits: interfaces, constants, fields, methods, and attributes.
ClassMemberSorter This ClassVisitor sorts the class members of the classes that it visits.
ClassReferenceFixer This ClassVisitor fixes references of constant pool entries, fields, methods, and attributes to classes whose names have changed.
CodeAttributeComposer This AttributeVisitor accumulates instructions and exceptions, and then copies them into code attributes that it visits.
CodeAttributeEditor This AttributeVisitor accumulates specified changes to code, and then applies these accumulated changes to the code attributes that it visits.
CodeAttributeEditorResetter This AttributeVisitor resets it CodeAttributeEditor whenever it visits a code attribute.
ConstantAdder This ConstantVisitor adds all constants that it visits to the constant pool of a given target class.
ConstantPoolEditor This class can add constant pool entries to a given class.
ConstantPoolRemapper This ClassVisitor remaps all possible references to constant pool entries of the classes that it visits, based on a given index map.
ConstantPoolSorter This ClassVisitor sorts the constant pool entries of the program classes that it visits.
ElementValueAdder This AnnotationVisitor adds all element values that it visits to the given target annotation default attribute, annotation, or element value.
ElementValuesEditor This class can add and delete element values to and from a given target annotation default attribute, annotation, or array element value.
ExceptionAdder This ConstantVisitor adds all class constants that it visits to the given target exceptions attribute.
ExceptionInfoAdder This ExceptionInfoVisitor adds all exception information that it visits to the given target code attribute.
ExceptionsAttributeEditor This class can add exceptions to a given exceptions attribute.
InstructionAdder This InstructionVisitor adds all instructions that it visits to the given target code attribute.
InstructionWriter This InstructionVisitor writes out the instructions that it visits, collecting instructions that have to be widened.
InterfaceAdder This ConstantVisitor adds all interfaces that it visits to the given target class.
InterfacesEditor This class can add and delete interfaces to and from classes.
InterfaceSorter This ClassVisitor sorts the interfaces of the program classes that it visits.
LineNumberInfoAdder This LineNumberInfoVisitor adds all line numbers that it visits to the given target line number attribute.
LineNumberTableAttributeEditor This class can add line numbers to a given line number table attribute.
LocalVariableInfoAdder This LocalVariableInfoVisitor adds all line numbers that it visits to the given target line number attribute.
LocalVariableTableAttributeEditor This class can add local variables to a given local variable table attribute.
LocalVariableTypeInfoAdder This LocalVariableTypeInfoVisitor adds all line numbers that it visits to the given target line number attribute.
LocalVariableTypeTableAttributeEditor This class can add local variables to a given local variable type table attribute.
MemberAdder This ConstantVisitor adds all class members that it visits to the given target class.
MemberReferenceFixer This ClassVisitor fixes constant pool field and method references to fields and methods whose names or descriptors have changed.
MethodInvocationFixer This AttributeVisitor fixes all inappropriate special/virtual/static/interface invocations of the code attributes that it visits.
NamedAttributeDeleter This ClassVisitor deletes attributes with a given name in the program classes that it visits.
ParameterAnnotationsAttributeEditor This class can add annotations to a given parameter annotations attribute.
StackSizeUpdater This AttributeVisitor computes and updates the maximum stack size of the code attributes that it visits.
SubclassAdder This ClassVisitor adds the given class to the list of subclasses of the classes that it visits.
SubclassToAdder This ClassVisitor adds all classes that it visits to the list of subclasses of the given target class.
VariableCleaner This AttributeVisitor cleans up unused variables in all attributes that it visits.
VariableEditor This AttributeVisitor accumulates specified changes to local variables, and then applies these accumulated changes to the code attributes that it visits.
VariableRemapper This AttributeVisitor remaps variable indexes in all attributes that it visits, based on a given index map.
VariableSizeUpdater This AttributeVisitor computes and updates the maximum local variable frame size of the code attributes that it visits.
 

Package proguard.classfile.editor Description

This package contains visitors to edit byte code.