| Constructor and Description |
|---|
TypePredicate(@NotNull NodeState root,
@NotNull Iterable<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 String name)
Creates a predicate for checking whether a node state is an instance of
the named node type.
|
TypePredicate(@NotNull NodeState root,
@NotNull 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(String primary,
Set<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(String primary,
Set<String> mixins) |
boolean |
test(@Nullable Tree input) |
String |
toString() |
public TypePredicate(@NotNull
@NotNull NodeState root,
@NotNull
@NotNull String name)
root - root node statename - Oak name of the node type to check forpublic TypePredicate(@NotNull
@NotNull NodeState root,
@NotNull
@NotNull Iterable<String> names)
root - root node statenames - Oak names of the node types to check forpublic TypePredicate(@NotNull
@NotNull NodeState root,
@NotNull
@NotNull 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(@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)Predicateinput. This method is generally
expected, but not absolutely required, to have the following properties:
Objects.equal(a, b) implies that predicate.apply(a) ==
predicate.apply(b)).
@Deprecated public boolean apply(@Nullable @Nullable Tree input)
test(Tree) instead (see OAK-8874)@Deprecated public boolean apply(String primary, Set<String> mixins)
test(String, Set) instead (see OAK-8874)Copyright © 2010 - 2020 Adobe. All Rights Reserved