public static FieldOptimizationInfo getFieldOptimizationInfo(Field field) { Object visitorInfo = MethodLinker.lastMember(field).getVisitorInfo(); return visitorInfo instanceof FieldOptimizationInfo ? (FieldOptimizationInfo)visitorInfo : null; } }
/** * Returns whether the new name of the given class member is fixed. * @param member the class member. * @return whether its new name is fixed. */ static boolean hasFixedNewMemberName(Member member) { VisitorAccepter lastVisitorAccepter = MethodLinker.lastVisitorAccepter(member); return lastVisitorAccepter instanceof LibraryMember || lastVisitorAccepter instanceof MyFixedName; }
public void visitAnyMember(Clazz clazz, Member member) { // Get the class member's name and descriptor. String name = member.getName(clazz); String descriptor = member.getDescriptor(clazz); // Special cases: <clinit> and <init> are always kept unchanged. // We can ignore them here. if (name.equals(ClassConstants.INTERNAL_METHOD_NAME_CLINIT) || name.equals(ClassConstants.INTERNAL_METHOD_NAME_INIT)) { return; } // See if we've already come across a method with the same name and // descriptor. String key = name + ' ' + descriptor; Member otherMember = (Member)memberMap.get(key); if (otherMember == null) { // Get the last method in the chain. Member thisLastMember = lastMember(member); // Store the new class method in the map. memberMap.put(key, thisLastMember); } else { // Link both members. link(member, otherMember); } }
(ClassVisitor)new AllMemberVisitor(new MethodLinker()) : (ClassVisitor)new BottomClassFilter(new MethodLinker());
public void visitAnyMember(Clazz clazz, Member member) { // Get the class member's name and descriptor. String name = member.getName(clazz); String descriptor = member.getDescriptor(clazz); // Special cases: <clinit> and <init> are always kept unchanged. // We can ignore them here. if (ClassUtil.isInitializer(name)) { return; } // See if we've already come across a method with the same name and // descriptor. String key = name + ' ' + descriptor; Member otherMember = (Member)memberMap.get(key); if (otherMember == null) { // Get the last method in the chain. Member thisLastMember = lastMember(member); // Store the new class method in the map. memberMap.put(key, thisLastMember); } else { // Link both members. link(member, otherMember); } }
(ClassVisitor)new AllMemberVisitor(new MethodLinker()) : (ClassVisitor)new BottomClassFilter(new MethodLinker());
public static MethodOptimizationInfo getMethodOptimizationInfo(Method method) { Object visitorInfo = MethodLinker.lastMember(method).getVisitorInfo(); return visitorInfo instanceof MethodOptimizationInfo ? (MethodOptimizationInfo)visitorInfo : null; } }
/** * Returns whether the new name of the given class member is fixed. * @param member the class member. * @return whether its new name is fixed. */ static boolean hasFixedNewMemberName(Member member) { VisitorAccepter lastVisitorAccepter = MethodLinker.lastVisitorAccepter(member); return lastVisitorAccepter instanceof LibraryMember || lastVisitorAccepter instanceof MyFixedName; }
public void visitAnyMember(Clazz clazz, Member member) { // Get the class member's name and descriptor. String name = member.getName(clazz); String descriptor = member.getDescriptor(clazz); // Special cases: <clinit> and <init> are always kept unchanged. // We can ignore them here. if (ClassUtil.isInitializer(name)) { return; } // See if we've already come across a method with the same name and // descriptor. String key = name + ' ' + descriptor; Member otherMember = (Member)memberMap.get(key); if (otherMember == null) { // Get the last method in the chain. Member thisLastMember = lastMember(member); // Store the new class method in the map. memberMap.put(key, thisLastMember); } else { // Link both members. link(member, otherMember); } }
(ClassVisitor)new AllMemberVisitor(new MethodLinker()) : (ClassVisitor)new BottomClassFilter(new MethodLinker());
public static MethodOptimizationInfo getMethodOptimizationInfo(Method method) { return (MethodOptimizationInfo)MethodLinker.lastMember(method).getVisitorInfo(); } }
/** * Returns whether the new name of the given class member is fixed. * @param member the class member. * @return whether its new name is fixed. */ static boolean hasFixedNewMemberName(Member member) { VisitorAccepter lastVisitorAccepter = MethodLinker.lastVisitorAccepter(member); return lastVisitorAccepter instanceof LibraryMember || lastVisitorAccepter instanceof MyFixedName; }
public void visitAnyMember(Clazz clazz, Member member) { // Get the class member's name and descriptor. String name = member.getName(clazz); String descriptor = member.getDescriptor(clazz); // Special cases: <clinit> and <init> are always kept unchanged. // We can ignore them here. if (ClassUtil.isInitializer(name)) { return; } // See if we've already come across a method with the same name and // descriptor. String key = name + ' ' + descriptor; Member otherMember = (Member)memberMap.get(key); if (otherMember == null) { // Get the last method in the chain. Member thisLastMember = lastMember(member); // Store the new class method in the map. memberMap.put(key, thisLastMember); } else { // Link both members. link(member, otherMember); } }
(ClassVisitor)new AllMemberVisitor(new MethodLinker()) : (ClassVisitor)new BottomClassFilter(new MethodLinker());
public static MethodOptimizationInfo getMethodOptimizationInfo(Method method) { return (MethodOptimizationInfo)MethodLinker.lastMember(method).getVisitorInfo(); } }
/** * Returns whether the new name of the given class member is fixed. * @param member the class member. * @return whether its new name is fixed. */ static boolean hasFixedNewMemberName(Member member) { VisitorAccepter lastVisitorAccepter = MethodLinker.lastVisitorAccepter(member); return lastVisitorAccepter instanceof LibraryMember || lastVisitorAccepter instanceof MyFixedName; }
new MethodLinker())); libraryClassPool.classesAccept(new BottomClassFilter( new MethodLinker()));
public static MethodOptimizationInfo getMethodOptimizationInfo(Method method) { return (MethodOptimizationInfo)MethodLinker.lastMember(method).getVisitorInfo(); } }
/** * Retrieves the new name of the given class member. * @param member the class member. * @return the class member's new name, or <code>null</code> if it doesn't * have one yet. */ static String newMemberName(Member member) { return (String)MethodLinker.lastVisitorAccepter(member).getVisitorInfo(); }
new MethodLinker())); libraryClassPool.classesAccept(new BottomClassFilter( new MethodLinker()));