public class TypePredicate extends java.lang.Object implements java.util.function.Predicate<NodeState>, com.google.common.base.Predicate<NodeState>
node states.| Constructor and Description |
|---|
TypePredicate(@NotNull NodeState root,
@NotNull java.lang.Iterable<java.lang.String> names)
Creates a predicate for checking whether a node state is an instance of
any of the named node types.
|
TypePredicate(@NotNull NodeState root,
@NotNull java.lang.String name)
Creates a predicate for checking whether a node state is an instance of
the named node type.
|
TypePredicate(@NotNull NodeState root,
@NotNull java.lang.String[] names)
Creates a predicate for checking whether a node state is an instance of
any of the named node types.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(@Nullable NodeState input)
Deprecated.
use
test(NodeState) instead (see OAK-8874) |
boolean |
apply(java.lang.String primary,
java.util.Set<java.lang.String> mixins)
Deprecated.
use
test(String, Set) instead (see OAK-8874) |
boolean |
apply(@Nullable Tree input)
Deprecated.
use
test(Tree) instead (see OAK-8874) |
static @NotNull TypePredicate |
isOrderable(@NotNull NodeState root) |
boolean |
test(@Nullable NodeState input) |
boolean |
test(java.lang.String primary,
java.util.Set<java.lang.String> mixins) |
boolean |
test(@Nullable Tree input) |
java.lang.String |
toString() |
public TypePredicate(@NotNull
@NotNull NodeState root,
@NotNull
@NotNull java.lang.String name)
root - root node statename - Oak name of the node type to check forpublic TypePredicate(@NotNull
@NotNull NodeState root,
@NotNull
@NotNull java.lang.Iterable<java.lang.String> names)
root - root node statenames - Oak names of the node types to check forpublic TypePredicate(@NotNull
@NotNull NodeState root,
@NotNull
@NotNull java.lang.String[] names)
root - root node statenames - Oak names of the node types to check for@NotNull public static @NotNull TypePredicate isOrderable(@NotNull @NotNull NodeState root)
public boolean test(java.lang.String primary,
java.util.Set<java.lang.String> mixins)
public boolean test(@Nullable
@Nullable Tree input)
public boolean test(@Nullable
@Nullable NodeState input)
@Deprecated
public boolean apply(@Nullable
@Nullable NodeState input)
test(NodeState) instead (see OAK-8874)apply in interface com.google.common.base.Predicate<NodeState>@Deprecated
public boolean apply(@Nullable
@Nullable Tree input)
test(Tree) instead (see OAK-8874)@Deprecated
public boolean apply(java.lang.String primary,
java.util.Set<java.lang.String> mixins)
test(String, Set) instead (see OAK-8874)public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved