[Groovy] Class MatchingConstraintsBuilder
- org.codehaus.groovy.macro.matcher.internal.MatchingConstraintsBuilder
class MatchingConstraintsBuilder extends Object
Nested Class Summary
Modifiers | Name | Description |
---|---|---|
class | MatchingConstraintsBuilder.1 | |
class | MatchingConstraintsBuilder.2 |
Properties Summary
Type | Name and description |
---|---|
ConstraintPredicate<TreeContext> |
eventually |
Set<String> |
placeholders |
ConstraintPredicate<Token> |
tokenPredicate |
Constructor Summary
Constructor and description |
---|
MatchingConstraintsBuilder
() |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
MatchingConstraintsBuilder |
anyToken() | |
MatchingConstraints |
build(Closure spec) | |
MatchingConstraintsBuilder |
eventually(Closure<Boolean> predicate) | |
MatchingConstraintsBuilder |
placeholder(String[] names) | |
Object |
propertyMissing(String name) | |
MatchingConstraintsBuilder |
token(Closure<Boolean> predicate) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail
ConstraintPredicate<TreeContext> eventually
Set<String> placeholders
ConstraintPredicate<Token> tokenPredicate
Constructor Detail
MatchingConstraintsBuilder()
Method Detail
MatchingConstraintsBuilder anyToken()
MatchingConstraints build(@DelegatesTo(value: MatchingConstraintsBuilder, strategy: Closure.DELEGATE_ONLY) Closure spec)
MatchingConstraintsBuilder eventually(@DelegatesTo(value: TreeContext, strategy: Closure.DELEGATE_FIRST) Closure<Boolean> predicate)
MatchingConstraintsBuilder placeholder(String[] names)
Object propertyMissing(String name)
MatchingConstraintsBuilder token(@DelegatesTo(value: Token, strategy: Closure.DELEGATE_FIRST) Closure<Boolean> predicate)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/macro/matcher/internal/MatchingConstraintsBuilder.html