Package proguard.classfile.editor
package proguard.classfile.editor
-
ClassDescriptionThis
ClassVisitorfixes the access modifiers of all classes and class members that are referenced by the classes that it visits.ThisAnnotationVisitoradds all annotations that it visits to the given target annotation element value, target annotation attribute, or target parameter annotation attribute.This class can add annotations to a given annotations attribute.ThisAttributeVisitoradds all attributes that it visits to the given target class, class member, or attribute.This class can add and delete attributes to and from classes, fields, methods, and code attributes.ThisClassVisitorsorts the attributes of the classes that it visits.ThisBootstrapMethodInfoVisitoradds all bootstrap methods that it visits to the given target bootstrap methods attribute.ThisConstantVisitorremaps all possible indices of bootstrap methods of the constants that it visits, based on a given index map.ThisBootstrapMethodInfoVisitoradds all bootstrap methods that it visits to the given target class, creating a bootstrap methods attribute if necessary.This class can add/remove bootstrap methods to/from a given bootstrap methods attribute.ThisClassVisitorremoves all unused entries from the bootstrap method attribute.ThisMemberVisitorfixes all inappropriate bridge access flags of the program methods that it visits, checking whether the methods to which they bridge have the same name.This editor allows to build or extend classes (ProgramClass instances).This functional interface provides a code attribute composer to its implementation.This class can add interfaces and class members to a given class.ThisClassVisitorsorts the various elements of the classes that it visits: interfaces, constants, fields, methods, and attributes.Typical sizes, counts, and lengths for elements in class files.ThisClassVisitorsorts the class members of the classes that it visits.ThisClassVisitorfixes references of constant pool entries, fields, methods, attributes and kotlin metadata to classes whose names have changed.This interface provides an abstraction on how aMembershould be renamed when its descriptor need to be updated.ThisAttributeVisitoraccumulates instructions, exceptions and line numbers, and then adds them to a method or copies them into code attributes that it visits.ThisAttributeVisitoraccumulates specified changes to code, and then applies these accumulated changes to the code attributes that it visits.This pseudo-instruction represents a label that marks an instruction offset, for use in the context of the code attribute editor only.ThisAttributeVisitorresets itCodeAttributeEditorwhenever it visits a code attribute.ThisAttributeVisitoraccumulates instructions, exceptions and line numbers, in a compact and fluent style, and then adds them to a method or copies them into code attributes that it visits.ThisConstantVisitoradds all constants that it visits to the constant pool of a given target class.This class can add constant pool entries to a given class.ThisClassVisitorremaps all possible references to constant pool entries of the classes that it visits, based on a given index map.ThisClassVisitorremoves all unused entries from the constant pool.ThisClassVisitorsorts the constant pool entries of the program classes that it visits.ThisElementValueVisitoradds all element values that it visits to the given target annotation default attribute, annotation, or element value.This class can add and delete element values to and from a given target annotation default attribute, annotation, or array element value.ThisConstantVisitoradds all class constants that it visits to the given target exceptions attribute.ThisExceptionInfoVisitoradds all exception information that it visits to the given target code attribute.This class can add exceptions to the exception table of a given code attribute.This class can add exceptions to a given exceptions attribute.This editor allows to build and/or edit classes (ProgramClass instances).This functional interface provides an instruction sequence builder to its caller.ThisInnerClassesInfoVisitorfixes the inner class access flags of the inner classes information that it visits.This class can add/remove bootstrap methods to/from a given inner classes attribute.ThisInstructionVisitoradds all instructions that it visits to the given target code attribute.This utility class allows to construct sequences of instructions and their constants.ThisInstructionVisitorreplaces a given pattern instruction sequence by another given replacement instruction sequence.This pseudo-instruction represents a label that marks an instruction offset, for use in the context of the sequence replacer only.ThisInstructionVisitorreplaces multiple instruction sequences at once.ThisInstructionVisitorwrites out the instructions that it visits, collecting instructions that have to be widened.ThisConstantVisitoradds all interfaces that it visits to the given target class.ThisClassVisitorremoves specified interfaces from the classes and class signatures that it visits.This class can add and delete interfaces to and from classes.ThisClassVisitorsorts the interfaces of the program classes that it visits.ThisClassVisitorfixes thealiasNameof Kotlin types that reference a type alias whose declaration container has been renamed.This editor allows to build or extend classes (LibraryClassinstances).This class can add interfaces and class members to a given class.ThisAttributeVisitoradds the line numbers of all line number attributes that it visits to the given target line number attribute.This class can add line numbers to a given line number table attribute.ThisAttributeVisitortrims the line number table attributes that it visits.ThisLocalVariableInfoVisitoradds all local variables that it visits to the given target local variable table attribute.This class can add local variables to a given local variable table attribute.ThisLocalVariableTypeInfoVisitoradds all local variable types that it visits to the given target local variable type attribute.This class can add local variables to a given local variable type table attribute.ThisMemberVisitorcopies all class members that it visits to the given target class.ThisClassVisitorfixes constant pool field and method references to fields and methods whose names or descriptors have changed.This visitor removes all members it visits in aProgramClass.ThisClassVisitorcopies a method into a target class.ThisAttributeVisitorfixes all inappropriate special/virtual/static/interface invocations of the code attributes that it visits.ThisClassVisitorremovesNameAndTypeconstant pool entries that are not used.ThisClassVisitordeletes attributes with a given name in the program classes, fields, methods, or code attributes that it visits.ThisConstantVisitorandClassVisitoradds the class constants or the classes that it visits to the given target nest member attribute.This class can add annotations to a given parameter annotations attribute.ThisParameterInfoVisitoradds all parameter information that it visits to the given target method parameters attribute.ThisAttributeVisitorlets a given instruction visitor edit the code attributes that it visits.ThisConstantVisitorandClassVisitoradds the class constants or the classes that it visits to the given target permitted classes attribute.ThisAttributeVisitorcomputes and updates the maximum stack size of the code attributes that it visits.ThisClassVisitoradds the given class to the list of subclasses of the classes that it visits.ThisClassVisitorremoves the given class from the list of subclasses of the classes that it visits.ThisClassVisitoradds all classes that it visits to the list of subclasses of the given target class.ThisTargetInfoVisitorcopies the target info instances that it visits to the given type annotation (each time overwriting any previous target info).ThisTypeAnnotationVisitoradds all type annotations that it visits to the given target annotation element value, target annotation attribute, or target parameter annotation attribute.ThisClassVisitorremoves UTF-8 constant pool entries that are not used.ThisAttributeVisitorcleans up variable tables in all code attributes that it visits.ThisAttributeVisitoraccumulates specified changes to local variables, and then applies these accumulated changes to the code attributes that it visits.ThisAttributeVisitorremaps variable indexes in all attributes that it visits, based on a given index map.ThisAttributeVisitorcomputes and updates the maximum local variable frame size of the code attributes that it visits.