| Modifier and Type | Field and Description |
|---|---|
| private final ElementMatcher | matcher
The matcher that is to be applied to the type that declares a method of the same shape. |
| Access | Constructor and Description |
|---|---|
| public | MethodOverrideMatcher(ElementMatcher<? super TypeDescription.
The matcher that is to be applied to the type that declares a method of the same shape. matcher)Creates a new method override matcher. |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | doMatch(T
The instance to be matched. target)Implements abstract net. null.
|
| private boolean | Returns: true if any type defines a method with the same signature as the target method.The method that is matched as a target. target, List<? extends TypeDefinition> The type definitions to check if they declare a method with the same signature as typeDefinitions, Set<TypeDescription> target.A set containing duplicate interfaces that do not need to be revisited. duplicates)Matches a method against a list of types. |
| private boolean | Returns: true if the supplied type declares a compatible method.The method to be checked. target, TypeDefinition The type to check for declaring a method with the same signature as typeDefinition)target.Checks if a type declares a method with the same signature as |
| public String |
| matcher | back to summary |
|---|---|
| private final ElementMatcher<? super TypeDescription. The matcher that is to be applied to the type that declares a method of the same shape. | |
| MethodOverrideMatcher | back to summary |
|---|---|
| public MethodOverrideMatcher(ElementMatcher<? super TypeDescription. Creates a new method override matcher.
| |
| doMatch | back to summary |
|---|---|
| protected boolean doMatch(T target) Implements abstract net. Doc from net. Matches the supplied value if it was found not to be
| |
| matches | back to summary |
|---|---|
| private boolean matches(MethodDescription target, List<? extends TypeDefinition> typeDefinitions, Set<TypeDescription> duplicates) Matches a method against a list of types.
| |
| matches | back to summary |
|---|---|
| private boolean matches(MethodDescription target, TypeDefinition typeDefinition) Checks if a type declares a method with the same signature as
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |