public class CounterConditionalClassVisitor extends java.lang.Object implements ClassVisitor
Counter
before and after values, also to a second given class visitor.Constructor and Description |
---|
CounterConditionalClassVisitor(Counter counter,
java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> predicate,
ClassVisitor classVisitor1,
ClassVisitor classVisitor2)
Creates a new CounterConditionalClassVisitor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
hasIncreased(int before,
int after) |
static boolean |
isSame(int before,
int after) |
void |
visitAnyClass(Clazz clazz)
Visits any Clazz instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitLibraryClass, visitProgramClass
public CounterConditionalClassVisitor(Counter counter, java.util.function.BiPredicate<java.lang.Integer,java.lang.Integer> predicate, ClassVisitor classVisitor1, ClassVisitor classVisitor2)
public void visitAnyClass(Clazz clazz)
ClassVisitor
visitAnyClass
in interface ClassVisitor
public static boolean hasIncreased(int before, int after)
public static boolean isSame(int before, int after)