public static class Node {
/**
* Restrict execution if the supported {@literal Node} has the given name.
*/
public Predicate named(final String expected) {
return new Predicate() {
public boolean matches(BindingContext context) {
if (context.getFieldNode() != null) {
FieldNode field = context.getFieldNode();
return field.name.equals(expected);
}