net.bytebuddy.matcher.MethodSortMatcher.Sort .
| Modifier and Type | Class and Description |
|---|---|
| public static enum | MethodSortMatcher.Sort
Represents a specific characteristic of a method description. |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodSortMatcher. | sort
The sort of method description to be matched by this element matcher. |
| Access | Constructor and Description |
|---|---|
| public | MethodSortMatcher(MethodSortMatcher.
The sort of method description to be matched by this element matcher. sortCreates a new element matcher that matches a specific sort of method description. |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | doMatch(T
The instance to be matched. target)Implements abstract net. null.
|
| public static < The type of the matched entity. T extends MethodDescription> ElementMatcher. | Returns: A matcher that matches methods of the provided sort.The sort of method description to be matched by this element matcher. sortReturns an element matcher that matches a specific sort of method description. |
| public String |
| sort | back to summary |
|---|---|
| private final MethodSortMatcher. The sort of method description to be matched by this element matcher. | |
| MethodSortMatcher | back to summary |
|---|---|
| public MethodSortMatcher(MethodSortMatcher. Creates a new element matcher that matches a specific sort of method description.
| |
| 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
| |
| of | back to summary |
|---|---|
| public static <T extends MethodDescription> ElementMatcher. Returns an element matcher that matches a specific sort of method description.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final MethodSortMatcher. | CONSTRUCTOR
Matches method descriptions that represent constructors, not methods or the type initializer. |
| public static final MethodSortMatcher. | DEFAULT_METHOD
Matches method descriptions that represent Java 8 default methods. |
| private final String | description
A textual representation of the method sort that is represented by this instance. |
| private final MethodSortMatcher | matcher
A reusable matcher for this sort. |
| public static final MethodSortMatcher. | METHOD
Matches method descriptions that represent methods, not constructors or the type initializer. |
| public static final MethodSortMatcher. | TYPE_INITIALIZER
Matches method descriptions that represent the type initializers. |
| public static final MethodSortMatcher. | VIRTUAL
Matches method descriptions that are overridable. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: A textual representation of this instance's method sort.Returns a textual representation of this instance's method sort. |
| protected MethodSortMatcher | Returns: The predefined matcher for this method sort.Returns the predefined matcher for this method sort. |
| protected abstract boolean | Returns: true if the given method if of the method sort that is represented by this instance.A textual representation of the method sort that is represented by this instance. target)Determines if a method description is of the represented method sort. |
| public static MethodSortMatcher. | |
| public static MethodSortMatcher. |
| CONSTRUCTOR | back to summary |
|---|---|
| public static final MethodSortMatcher. Matches method descriptions that represent constructors, not methods or the type initializer. | |
| DEFAULT_METHOD | back to summary |
|---|---|
| public static final MethodSortMatcher. Matches method descriptions that represent Java 8 default methods. | |
| description | back to summary |
|---|---|
| private final String description A textual representation of the method sort that is represented by this instance. | |
| matcher | back to summary |
|---|---|
| private final MethodSortMatcher<?> matcher A reusable matcher for this sort. | |
| METHOD | back to summary |
|---|---|
| public static final MethodSortMatcher. Matches method descriptions that represent methods, not constructors or the type initializer. | |
| TYPE_INITIALIZER | back to summary |
|---|---|
| public static final MethodSortMatcher. Matches method descriptions that represent the type initializers. | |
| VIRTUAL | back to summary |
|---|---|
| public static final MethodSortMatcher. Matches method descriptions that are overridable. | |
| Sort | back to summary |
|---|---|
| private Sort(String description) Creates a new method sort representation.
| |
| getDescription | back to summary |
|---|---|
| protected String getDescription() Returns a textual representation of this instance's method sort.
| |
| getMatcher | back to summary |
|---|---|
| protected MethodSortMatcher Returns the predefined matcher for this method sort.
| |
| isSort | back to summary |
|---|---|
| protected abstract boolean isSort(MethodDescription target) Determines if a method description is of the represented method sort.
| |
| valueOf | back to summary |
|---|---|
| public static MethodSortMatcher. | |
| values | back to summary |
|---|---|
| public static MethodSortMatcher. | |