public static enum MethodSortMatcher.Sort extends Enum<MethodSortMatcher.Sort>
| Enum Constant and Description |
|---|
CONSTRUCTOR
Matches method descriptions that represent constructors, not methods or the type initializer.
|
DEFAULT_METHOD
Matches method descriptions that represent Java 8 default methods.
|
METHOD
Matches method descriptions that represent methods, not constructors or the type initializer.
|
OVERRIDABLE
Matches method descriptions that are overridable.
|
TYPE_INITIALIZER
Matches method descriptions that represent the type initializers.
|
VISIBILITY_BRIDGE
Matches method descriptions that represent bridge methods that are implemented in order to increase
a method's visibility in a subtype.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDescription()
Returns a textual representation of this instance's method sort.
|
protected abstract boolean |
isSort(MethodDescription target)
Determines if a method description is of the represented method sort.
|
static MethodSortMatcher.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodSortMatcher.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodSortMatcher.Sort METHOD
public static final MethodSortMatcher.Sort CONSTRUCTOR
public static final MethodSortMatcher.Sort TYPE_INITIALIZER
public static final MethodSortMatcher.Sort OVERRIDABLE
public static final MethodSortMatcher.Sort VISIBILITY_BRIDGE
public static final MethodSortMatcher.Sort DEFAULT_METHOD
public static MethodSortMatcher.Sort[] values()
for (MethodSortMatcher.Sort c : MethodSortMatcher.Sort.values()) System.out.println(c);
public static MethodSortMatcher.Sort valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected abstract boolean isSort(MethodDescription target)
target - A textual representation of the method sort that is represented by this instance.true if the given method if of the method sort that is represented by this instance.protected String getDescription()
Copyright © 2014. All rights reserved.