Package proguard.classfile.visitor
package proguard.classfile.visitor
-
ClassDescriptionThis
ClassPoolVisitorlets a givenClassVisitorvisit all Clazz instances of the class pools it visits.ThisClassVisitorlets a givenMemberVisitorvisit all Member instances of the classes it visits.TheAllProcessableVisitorlets a givenProcessableVisitorvisit allProcessables and any nested processables.ThisClassVisitordelegates its visits to one of two other givenClassVisitorinstances, depending on whether they have any subclasses or not.ThisClassVisitordelegates its visits to another givenClassVisitor, but only when the visited class has the proper access flags.ThisClassVisitorremoves all processing information of the classes it visits.ThisClassVisitorcollects the classes that it visits in the given collection.This ClassVisitor delegates all visits to another given visitor, but only if the visited class contains the specified class constant.ThisClassVisitorcounts the number of classes that has been visited.ThisClassVisitorcollects the feature names of the classes that it visits in the given collection.ThisClassVisitorlets a givenClassVisitoroptionally travel to the visited class, its superclass, its interfaces, and its subclasses.ThisClassVisitorcollects the names of the classes that it visits in the given collection.ThisClassVisitordelegates its visits to another givenClassVisitor, but only when the visited class has a name that matches a given regular expression.ThisClassPoolVisitorandClassVisitorremembers theClassPoolinstances that it visits and applies the givenClassPoolVisitorto the most recently remembered one, every time it visits a Clazz instance.ThisClassVisitorcollects all the classes it visits in a given class pool.ThisClassVisitorremoves all the classes it visits from a given class pool.This interface specifies the methods for a visitor ofClassPoolinstances.ThisClassVisitordelegates its visits to one of twoClassVisitorinstances, depending on whether the name of the visited class file is present in a givenClassPoolor not.ThisClassVisitorprints out the complete internal structure of the classes it visits.ThisClassVisitordelegates its visits to another givenClassVisitor, but only when the visited class has the proper processing flags.Delegates all class visits to another given visitor, depending on if the given predicate passes or not.ThisClassVisitordelegates its visits to program classes to another givenClassVisitor, but only when the class version number of the visited program class lies in a given range.ThisClassVisitorsets the version number of the program classes that it visits.This interface specifies the methods for a visitor ofClazzinstances.ThisClassVisitorlets a givenClassVisitortravel to the first concrete subclasses down in its hierarchy of abstract classes and concrete classes.ThisConstantVisitordelegates its visits to another givenConstantVisitor, but only when the visited constant has the proper processing flags.ThisMemberVisitordelegates its visits to one of three delegates, depending on whether the visited method is:This ClassVisitor delegates to a given class visitor, and then, if the given predicate succeeds with the givenCounterbefore and after values, also to a second given class visitor.ThisInstructionVisitorlets a givenClassVisitorvisit all classes involved in any.classconstructs that it visits.ThisConstantVisitorlets a givenClassVisitorvisit all the referenced classes that are returned by the dynamic constants and invoke dynamic constants that it visits.ThisClassVisitordelegates its visits to another givenClassVisitor, except for classes are in a given list.ThisClassVisitordelegates its visits to another givenClassVisitor, except for one given class.ThisExceptionInfoVisitorcounts the number of exceptions that has been visited.ThisExceptionInfoVisitordelegates its visits to another givenExceptionInfoVisitor, but only when the visited exception does not cover the instruction at the given offset.ThisExceptionInfoVisitorlets a givenConstantVisitorvisit all catch class constants of exceptions that it visits.ThisExceptionInfoVisitordelegates its visits to another givenExceptionInfoVisitor, but only when the visited exception targets an instruction in the given range of offsets.ThisExceptionInfoVisitordelegates its visits to another givenExceptionInfoVisitor, but only when the visited exception covers the instruction at the given offset.ThisExceptionInfoVisitordelegates its visits to another givenExceptionInfoVisitor, but only when the visited exception overlaps with the given instruction range.ThisClassPoolVisitorlets a givenClassVisitorvisit all matching Clazz instances of the class pools it visits.ThisClassVisitordelegates its visits to another givenClassVisitor, but only for functional interfaces, that is, interface classes that have exactly one abstract method.ThisConstantVisitordelegates its visits to class constants to another givenConstantVisitor, except for classes that extend or implement a given class.ThisClassVisitordelegates its visits to one of two givenClassVisitors, depending on whether the visited classes extend/implement a given class or not.ThisConstantVisitordelegates its visits to class constants to another givenConstantVisitor, except for classes that are extended or implemented by a given class.ThisMemberVisitordelegates its visits to one of two other givenMemberVisitorinstances, depending on whether the visited method is a static initializer or instance initializer, or not.ThisClassVisitordelegates its visits to another givenClassVisitor, but only when visiting library classes.ThisMemberVisitordelegates its visits to another givenMemberVisitor, but only when visiting members of library classes.Retrieves the lineNumber for a given offset from a codeattribute.ThisMemberVisitordelegates its visits to another givenMemberVisitor, but only when the visited member has the proper access flags.ThisClassVisitorandMemberVisitorclears the specified access flags of the classes and class members that its visits.ThisMemberVisitorsets the specified access flags of the program class members that it visits.ThisMemberVisitorsets the access part of the access flags of the program class members that its visits to a given value.ThisMemberVisitordelegates its visits to another givenMemberVisitor, but only when the visited member is accessible from the given referencing class.This MemberVisitor delegates its visits to one of two other visitors, depending on whether the member is present in the given member collection or not.ThisMemberVisitorcollects dot-separated classname.membername.descriptor strings of the class members that it visits.ThisMemberVisitorcounts the number of class members that have been visited.ThisMemberVisitordelegates its visits to another givenMemberVisitor, but only when the visited member has a descriptor that matches a given regular expression.ThisMemberVisitorlets a givenClassVisitorvisit all the classes referenced by the descriptors of the class members that it visits.ThisMemberVisitordelegates its visits to another givenMemberVisitor, but only when the visited member has a name that matches a given regular expression.ThisMemberVisitordelegates its visits to another givenMemberVisitor, but only when the visited member has the proper processing flags.Delegate all member visits to another given visitor, depending on if the given predicate passes or not.ThisMemberVisitordelegates all visits to a givenClassVisitor.This interface specifies the methods for a visitor ofProgramMemberinstances andLibraryMemberinstances.ThisMemberVisitorcollects the methods that it visits in the given collection.ThisMemberVisitorcounts the number of methods that have been visited.This class visitor is able to create a method and add it to a program class in case it does not exist yet.ThisMemberVisitordelegates its visits to one of two other givenMemberVisitorinstances, depending on whether the visited method is a method or a field.ThisMemberVisitordelegates its visits to methods to another givenMemberVisitor, but only when the visited method may have implementations.ThisMemberVisitorlets a givenMemberVisitortravel to all concrete and abstract implementations of the visited methods in their class hierarchies.ThisClassPoolVisitordelegates all visits to eachClassPoolVisitorin a given list.ThisClassVisitordelegates all visits to eachClassVisitorin a given list.ThisConstantVisitordelegates all visits to eachConstantVisitorin a given list.ThisMemberVisitordelegates all visits to eachMemberVisitorin a given list.ThisClassPoolVisitorlets a givenClassVisitorvisitClazzinstances with a given name, in the class pools that it visits.This class visitsProgramMemberinstances referring to fields, identified by a name and descriptor pair.This class visitsProgramMemberinstances referring to methods, identified by a name and descriptor pair.ThisClassPoolVisitorwill visit all Clazz instances of the class pool in a parallel way.A factory forClassVisitorobjects.This interface specifies the methods for a visitor of method parameters or field types (which can be considered parameters when storing values).This visitor sets a fixed info object on all theProcessableinstances that it visits.ThisClassVisitordelegates its visits to another givenClassVisitor, but only when visiting program classes.ThisMemberVisitordelegates its visits to another givenMemberVisitor, but only when visiting members of program classes.Divides the referenced classes in a program/library method in the classes referenced in return and parameters.ThisConstantVisitorandElementValueVisitorlets a givenMemberVisitorvisit all the referenced class members of the elements that it visits.SignatureAdapter<T extends Signature>ThisMemberVisitorprovides the consumer with a correspondingSignature.ThisAttributeVisitorlets a givenClassVisitorvisit all the classes referenced by the type descriptors of the signatures that it visits.ThisMemberVisitorlets a givenMemberVisitorvisit all members that have the same name and type as the visited methods in the class hierarchy of the members' classes or of a given target class.ThisClassVisitorandMemberVisitorprints out the class names of the classes it visits, and the full class member descriptions of the class members it visits.ThisClassVisitordelegates all visits to a givenClassVisitor, although only once to the same class in a row.ThisClassVisitordelegates its visits to another givenClassVisitor, except for classes that have a given class as direct subclass.ThisClassVisitorlets a givenClassVisitortravel to direct subclasses of the visited class.ThisClassVisitordelegates its visits to another givenClassVisitor, but at most a single time.ThisClassVisitordelegates all method calls to aClassVisitorthat can be changed at any time.ThisMemberVisitordelegates all method calls to aMemberVisitorthat can be changed at any time.