public class MethodFinder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MethodFinder.ErrorTypeHandling<E extends java.lang.Exception> |
| Modifier and Type | Method and Description |
|---|---|
static <E extends java.lang.Exception> |
methodsOn(javax.lang.model.element.TypeElement type,
javax.lang.model.util.Elements elements,
MethodFinder.ErrorTypeHandling<E> errorTypeHandling)
Returns all methods, declared and inherited, on
type, except those specified by
Object. |
public static <E extends java.lang.Exception> com.google.common.collect.ImmutableSet<javax.lang.model.element.ExecutableElement> methodsOn(javax.lang.model.element.TypeElement type,
javax.lang.model.util.Elements elements,
MethodFinder.ErrorTypeHandling<E> errorTypeHandling)
throws E extends java.lang.Exception
type, except those specified by
Object.
If method B overrides method A, only method B will be included in the return set. Additionally, if methods A and B have the same signature, but are on unrelated interfaces, one will be arbitrarily picked to be returned.
E extends java.lang.Exception