ElementMatcher
after supplying a type description.
Modifier and Type | Class and Description |
---|---|
public static class | LatentMatcher.Conjunction<
The type of the matched element. S>A matcher that computes the conjunction of all supplied latent matchers. |
public static class | LatentMatcher.Disjunction<
The type of the matched element. S>A matcher that computes the disjunction of all supplied latent matchers. |
public static class | LatentMatcher.ForFieldToken
A latent matcher where the field token is being attached to the supplied type description before matching. |
public static class | LatentMatcher.ForMethodToken
A latent matcher where the method token is being attached to the supplied type description before matching. |
public static class | LatentMatcher.ForRecordComponentToken
A latent matcher for a record component token. |
public static enum | LatentMatcher.ForSelfDeclaredMethod
A latent matching methods that are declared by the resolved type. |
public static class | LatentMatcher.Resolved<
The type of the matched element. S>A latent matcher representing an already resolved |
Modifier and Type | Method and Description |
---|---|
public ElementMatcher | Returns: AnElementMatcher that represents this matcher's resolved form.The type description for which the represented matcher should be resolved. typeDescription)Resolves the element matcher this instance represents for the supplied type description. |
resolve | back to summary |
---|---|
public ElementMatcher Resolves the element matcher this instance represents for the supplied type description.
|
Modifier and Type | Field and Description |
---|---|
private final List | matchers
The matchers this conjunction represents. |
Access | Constructor and Description |
---|---|
public | Conjunction(LatentMatcher<? super S>...
The matchers this conjunction represents. matcher)Creates a new conjunction of latent matchers. |
public | Conjunction(List<? extends LatentMatcher<? super S>>
The matchers this conjunction represents. matchers)Creates a new conjunction of latent matchers. |
Modifier and Type | Method and Description |
---|---|
public ElementMatcher | resolve(TypeDescription
The type description for which the represented matcher should be resolved. typeDescription)Implements net. |
matchers | back to summary |
---|---|
private final List<? extends LatentMatcher<? super S>> matchers The matchers this conjunction represents. |
Conjunction | back to summary |
---|---|
public Conjunction(LatentMatcher<? super S>... matcher) Creates a new conjunction of latent matchers.
|
Conjunction | back to summary |
---|---|
public Conjunction(List<? extends LatentMatcher<? super S>> matchers) Creates a new conjunction of latent matchers.
|
resolve | back to summary |
---|---|
public ElementMatcher Implements net. Doc from net. Resolves the element matcher this instance represents for the supplied type description.
|
Modifier and Type | Field and Description |
---|---|
private final List | matchers
The matchers this disjunction represents. |
Access | Constructor and Description |
---|---|
public | Disjunction(LatentMatcher<? super S>...
The matchers this disjunction represents. matcher)Creates a new disjunction of latent matchers. |
public | Disjunction(List<? extends LatentMatcher<? super S>>
The matchers this disjunction represents. matchers)Creates a new disjunction of latent matchers. |
Modifier and Type | Method and Description |
---|---|
public ElementMatcher | resolve(TypeDescription
The type description for which the represented matcher should be resolved. typeDescription)Implements net. |
matchers | back to summary |
---|---|
private final List<? extends LatentMatcher<? super S>> matchers The matchers this disjunction represents. |
Disjunction | back to summary |
---|---|
public Disjunction(LatentMatcher<? super S>... matcher) Creates a new disjunction of latent matchers.
|
Disjunction | back to summary |
---|---|
public Disjunction(List<? extends LatentMatcher<? super S>> matchers) Creates a new disjunction of latent matchers.
|
resolve | back to summary |
---|---|
public ElementMatcher Implements net. Doc from net. Resolves the element matcher this instance represents for the supplied type description.
|
Modifier and Type | Class and Description |
---|---|
protected static class | LatentMatcher.ForFieldToken.ResolvedMatcher
A resolved matcher of a latent field matcher for a field token. |
Modifier and Type | Field and Description |
---|---|
private final FieldDescription. | token
A token representing the field being matched. |
Access | Constructor and Description |
---|---|
public | ForFieldToken(FieldDescription.
A token representing the field being matched. tokenCreates a new latent matcher for a field token. |
Modifier and Type | Method and Description |
---|---|
public ElementMatcher | resolve(TypeDescription
The type description for which the represented matcher should be resolved. typeDescription)Implements net. |
token | back to summary |
---|---|
private final FieldDescription. A token representing the field being matched. |
ForFieldToken | back to summary |
---|---|
public ForFieldToken(FieldDescription. Creates a new latent matcher for a field token.
|
resolve | back to summary |
---|---|
public ElementMatcher Implements net. Doc from net. Resolves the element matcher this instance represents for the supplied type description.
|
Modifier and Type | Field and Description |
---|---|
private final FieldDescription. | signatureToken
The signature token representing the matched field. |
Access | Constructor and Description |
---|---|
protected | ResolvedMatcher(FieldDescription.
The signature token representing the matched field. signatureTokenCreates a new resolved matcher. |
Modifier and Type | Method and Description |
---|---|
protected boolean | doMatch(FieldDescription
The instance to be matched. target)Implements abstract net. null .
|
signatureToken | back to summary |
---|---|
private final FieldDescription. The signature token representing the matched field. |
ResolvedMatcher | back to summary |
---|---|
protected ResolvedMatcher(FieldDescription. Creates a new resolved matcher.
|
doMatch | back to summary |
---|---|
protected boolean doMatch(FieldDescription target) Implements abstract net. Doc from net. Matches the supplied value if it was found not to be
|
Modifier and Type | Class and Description |
---|---|
protected static class | LatentMatcher.ForMethodToken.ResolvedMatcher
A resolved matcher of a latent method matcher for a method token. |
Modifier and Type | Field and Description |
---|---|
private final MethodDescription. | token
A token representing the method being matched. |
Access | Constructor and Description |
---|---|
public | ForMethodToken(MethodDescription.
A token representing the method being matched. tokenCreates a new latent matcher for a method token. |
Modifier and Type | Method and Description |
---|---|
public ElementMatcher | resolve(TypeDescription
The type description for which the represented matcher should be resolved. typeDescription)Implements net. |
token | back to summary |
---|---|
private final MethodDescription. A token representing the method being matched. |
ForMethodToken | back to summary |
---|---|
public ForMethodToken(MethodDescription. Creates a new latent matcher for a method token.
|
resolve | back to summary |
---|---|
public ElementMatcher Implements net. Doc from net. Resolves the element matcher this instance represents for the supplied type description.
|
Modifier and Type | Field and Description |
---|---|
private final MethodDescription. | signatureToken
The signature token representing the matched field. |
Access | Constructor and Description |
---|---|
protected | ResolvedMatcher(MethodDescription.
The signature token representing the matched field. signatureTokenCreates a new resolved matcher. |
Modifier and Type | Method and Description |
---|---|
public boolean | doMatch(MethodDescription
The instance to be matched. target)Implements abstract net. null .
|
signatureToken | back to summary |
---|---|
private final MethodDescription. The signature token representing the matched field. |
ResolvedMatcher | back to summary |
---|---|
protected ResolvedMatcher(MethodDescription. Creates a new resolved matcher.
|
doMatch | back to summary |
---|---|
public boolean doMatch(MethodDescription target) Implements abstract net. Doc from net. Matches the supplied value if it was found not to be
|
Modifier and Type | Field and Description |
---|---|
private final RecordComponentDescription. | token
The token being matched. |
Access | Constructor and Description |
---|---|
public | ForRecordComponentToken(RecordComponentDescription.
The token being matched. tokenCreates a latent matcher for a record component token. |
Modifier and Type | Method and Description |
---|---|
public ElementMatcher | resolve(TypeDescription
The type description for which the represented matcher should be resolved. typeDescription)Implements net. |
token | back to summary |
---|---|
private final RecordComponentDescription. The token being matched. |
ForRecordComponentToken | back to summary |
---|---|
public ForRecordComponentToken(RecordComponentDescription. Creates a latent matcher for a record component token.
|
resolve | back to summary |
---|---|
public ElementMatcher Implements net. Doc from net. Resolves the element matcher this instance represents for the supplied type description.
|
Modifier and Type | Field and Description |
---|---|
public static final LatentMatcher. | DECLARED
Matches any method declared by the resolved type. |
private final boolean | inverted
|
public static final LatentMatcher. | NOT_DECLARED
Matches any method not declared by the resolved type. |
Access | Constructor and Description |
---|---|
private | ForSelfDeclaredMethod(boolean
true if the matcher is inverted.Creates a new latent matcher for a self-declared method. |
Modifier and Type | Method and Description |
---|---|
public ElementMatcher | resolve(TypeDescription
The type description for which the represented matcher should be resolved. typeDescription)Implements net. |
public static LatentMatcher. | |
public static LatentMatcher. |
DECLARED | back to summary |
---|---|
public static final LatentMatcher. Matches any method declared by the resolved type. |
inverted | back to summary |
---|---|
private final boolean inverted
|
NOT_DECLARED | back to summary |
---|---|
public static final LatentMatcher. Matches any method not declared by the resolved type. |
ForSelfDeclaredMethod | back to summary |
---|---|
private ForSelfDeclaredMethod(boolean inverted) Creates a new latent matcher for a self-declared method.
|
resolve | back to summary |
---|---|
public ElementMatcher Implements net. Doc from net. Resolves the element matcher this instance represents for the supplied type description.
|
valueOf | back to summary |
---|---|
public static LatentMatcher. |
values | back to summary |
---|---|
public static LatentMatcher. |
ElementMatcher
.
Modifier and Type | Field and Description |
---|---|
private final ElementMatcher | matcher
The resolved matcher. |
Access | Constructor and Description |
---|---|
public | Resolved(ElementMatcher<? super S>
The resolved matcher. matcher)Creates a new resolved latent matcher. |
Modifier and Type | Method and Description |
---|---|
public ElementMatcher | resolve(TypeDescription
The type description for which the represented matcher should be resolved. typeDescription)Implements net. |
matcher | back to summary |
---|---|
private final ElementMatcher<? super S> matcher The resolved matcher. |
Resolved | back to summary |
---|---|
public Resolved(ElementMatcher<? super S> matcher) Creates a new resolved latent matcher.
|
resolve | back to summary |
---|---|
public ElementMatcher Implements net. Doc from net. Resolves the element matcher this instance represents for the supplied type description.
|