Class NodePredicates
- java.lang.Object
-
- de.mirkosertic.bytecoder.core.optimizer.NodePredicates
-
public class NodePredicates extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NodePredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.function.Predicate<Node[]>
empty()
static GraphNodePredicate
incomingDataFlows(java.util.function.Predicate<Node[]> pred)
static java.util.function.Predicate<Node[]>
item(int index, java.util.function.Predicate<Node> pred)
static java.util.function.Predicate<Node>
itemOfType(java.lang.Class nodeClass)
static java.util.function.Predicate<Node[]>
length(int expected)
static GraphNodePredicate
ofType(java.lang.Class nodeClass)
static GraphNodePredicate
outgoingDataFlows(java.util.function.Predicate<Node[]> pred)
static GraphNodePredicate
singlePredWithForwardEdge()
static GraphNodePredicate
singleSuccWithForwardEdge()
-
-
-
Method Detail
-
itemOfType
public static java.util.function.Predicate<Node> itemOfType(java.lang.Class nodeClass)
-
ofType
public static GraphNodePredicate ofType(java.lang.Class nodeClass)
-
empty
public static java.util.function.Predicate<Node[]> empty()
-
length
public static java.util.function.Predicate<Node[]> length(int expected)
-
item
public static java.util.function.Predicate<Node[]> item(int index, java.util.function.Predicate<Node> pred)
-
incomingDataFlows
public static GraphNodePredicate incomingDataFlows(java.util.function.Predicate<Node[]> pred)
-
outgoingDataFlows
public static GraphNodePredicate outgoingDataFlows(java.util.function.Predicate<Node[]> pred)
-
singlePredWithForwardEdge
public static GraphNodePredicate singlePredWithForwardEdge()
-
singleSuccWithForwardEdge
public static GraphNodePredicate singleSuccWithForwardEdge()
-
-