class MatchingConstraintsBuilder
extends Object
Builder for MatchingConstraints instances.
| Type | Name and description |
|---|---|
ConstraintPredicate<TreeContext> |
eventuallyPredicate that must match somewhere in the current tree context path. |
Set<String> |
placeholdersPlaceholder names accepted during matching. |
ConstraintPredicate<Token> |
tokenPredicatePredicate used to compare tokens. |
Set<String> |
varargPlaceholdersPlaceholder names that can absorb multiple arguments. |
| Constructor and description |
|---|
MatchingConstraintsBuilder() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
MatchingConstraintsBuilder |
anyToken()Configures token matching to accept any token. |
|
MatchingConstraints |
build(Closure spec)Builds constraints from the supplied builder closure. |
|
MatchingConstraintsBuilder |
eventually(Closure<Boolean> predicate)Configures a predicate that must match an enclosing tree context. |
|
MatchingConstraintsBuilder |
placeholder(String[] names)Registers one or more placeholder names. |
|
Object |
propertyMissing(String name)Treats unknown property names as placeholder identifiers. |
|
MatchingConstraintsBuilder |
token(Closure<Boolean> predicate)Configures a token predicate. |
|
MatchingConstraintsBuilder |
varargPlaceholder(String[] names)Registers one or more vararg placeholder names. |
Predicate that must match somewhere in the current tree context path.
Predicate used to compare tokens.
Configures token matching to accept any token.
Builds constraints from the supplied builder closure.
spec - the builder closureConfigures a predicate that must match an enclosing tree context.
predicate - the tree-context predicate closureRegisters one or more placeholder names.
names - the placeholder namesTreats unknown property names as placeholder identifiers.
name - the missing property namenameConfigures a token predicate.
predicate - the token predicate closureRegisters one or more vararg placeholder names.
names - the vararg placeholder namesCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.