public class TypePredicate extends java.lang.Object implements 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) |
boolean |
apply(java.lang.String primary,
java.util.Set<java.lang.String> mixins) |
boolean |
apply(@Nullable Tree input) |
static @NotNull TypePredicate |
isOrderable(@NotNull NodeState root) |
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 apply(java.lang.String primary, java.util.Set<java.lang.String> mixins)
public boolean apply(@Nullable @Nullable Tree input)
public boolean apply(@Nullable @Nullable NodeState input)
apply
in interface com.google.common.base.Predicate<NodeState>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved