|
|
@@ -104,6 +104,11 @@ public class PrintRules {
|
|
|
return Builder.this;
|
|
|
}
|
|
|
|
|
|
+ public Builder skip() {
|
|
|
+ getDelegate().skip();
|
|
|
+ return Builder.this;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
@@ -129,6 +134,10 @@ public class PrintRules {
|
|
|
return new TypeRule<>(delegate.match(type));
|
|
|
}
|
|
|
|
|
|
+ public MoreRule match(String name) {
|
|
|
+ return match(ctx -> name.equals(ctx.name()));
|
|
|
+ }
|
|
|
+
|
|
|
public MoreRule match(Predicate<WalkerContexts.ObjectContext<?>> predicate) {
|
|
|
return new MoreRule(delegate.match(predicate));
|
|
|
}
|
|
|
@@ -158,6 +167,10 @@ public class PrintRules {
|
|
|
return new MoreRule(delegate.match(type));
|
|
|
}
|
|
|
|
|
|
+ public MoreRule match(String name) {
|
|
|
+ return match(ctx -> name.equals(ctx.name()));
|
|
|
+ }
|
|
|
+
|
|
|
public MoreRule match(Predicate<WalkerContexts.ObjectContext<?>> predicate) {
|
|
|
return new MoreRule(delegate.match(predicate));
|
|
|
}
|
|
|
@@ -188,6 +201,10 @@ public class PrintRules {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ public MoreRule match(String name) {
|
|
|
+ return match(ctx -> name.equals(ctx.name()));
|
|
|
+ }
|
|
|
+
|
|
|
public MoreRule match(Predicate<WalkerContexts.ObjectContext<?>> predicate) {
|
|
|
delegate.match(predicate);
|
|
|
return this;
|