public class JvmHierarchyUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
testSupers(JvmClass start,
boolean skipStart,
java.util.function.Predicate<? super JvmClass> predicate) |
static <R> R |
traverseSupers(JvmClass start,
boolean skipStart,
java.util.function.Function<? super JvmClass,R> f)
Traverses class tree in BFS order applying the function to each superclass.
|
static <R> R |
traverseSupers(JvmClass start,
java.util.function.Function<? super JvmClass,R> f) |
public static boolean testSupers(JvmClass start, boolean skipStart, java.util.function.Predicate<? super JvmClass> predicate)
public static <R> R traverseSupers(JvmClass start, java.util.function.Function<? super JvmClass,R> f)
public static <R> R traverseSupers(JvmClass start, boolean skipStart, java.util.function.Function<? super JvmClass,R> f)
R
- type of the resultstart
- class to start traversal from