public class MethodLinker extends java.lang.Object implements ClassVisitor, MemberVisitor
ClassVisitor
links all corresponding non-private, non-static, non-initializer
methods in the class hierarchies of all visited classes. Visited classes are typically all class
files that are not being subclassed. Chains of links that have been created in previous
invocations are merged with new chains of links, in order to create a consistent set of chains.Constructor and Description |
---|
MethodLinker() |
Modifier and Type | Method and Description |
---|---|
static Member |
lastMember(Member member)
Finds the last method in the linked list of related methods.
|
static Processable |
lastProcessable(Processable processable)
Finds the last method in the linked list of related methods.
|
void |
visitAnyClass(Clazz clazz)
Visits any Clazz instance.
|
void |
visitAnyMember(Clazz clazz,
Member member)
Visits any Member instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitLibraryClass, visitProgramClass
visitLibraryField, visitLibraryMember, visitLibraryMethod, visitProgramField, visitProgramMember, visitProgramMethod
public void visitAnyClass(Clazz clazz)
ClassVisitor
visitAnyClass
in interface ClassVisitor
public void visitAnyMember(Clazz clazz, Member member)
MemberVisitor
visitAnyMember
in interface MemberVisitor
public static Member lastMember(Member member)
member
- The given method.public static Processable lastProcessable(Processable processable)
processable
- The given method.