public class MethodList extends Object implements Iterable<AnnotatedMethod>
Modifier and Type | Class and Description |
---|---|
static interface |
MethodList.Filter |
Constructor and Description |
---|
MethodList(AnnotatedMethod... methods) |
MethodList(Class c) |
MethodList(Class c,
boolean declaredMethods) |
MethodList(List<Method> methods) |
MethodList(Method... methods) |
Modifier and Type | Method and Description |
---|---|
MethodList |
filter(MethodList.Filter f) |
<T extends Annotation> |
hasAnnotation(Class<T> annotation) |
<T extends Annotation> |
hasMetaAnnotation(Class<T> annotation) |
<T extends Annotation> |
hasNotAnnotation(Class<T> annotation) |
<T extends Annotation> |
hasNotMetaAnnotation(Class<T> annotation) |
<T extends Annotation> |
hasNumParams(int i) |
<T extends Annotation> |
hasReturnType(Class<?> r) |
<T extends Annotation> |
isNotPublic() |
Iterator<AnnotatedMethod> |
iterator() |
<T extends Annotation> |
nameStartsWith(String s) |
public MethodList(Class c)
public MethodList(Class c, boolean declaredMethods)
public MethodList(Method... methods)
public MethodList(AnnotatedMethod... methods)
public Iterator<AnnotatedMethod> iterator()
iterator
in interface Iterable<AnnotatedMethod>
public <T extends Annotation> MethodList isNotPublic()
public <T extends Annotation> MethodList hasNumParams(int i)
public <T extends Annotation> MethodList hasReturnType(Class<?> r)
public <T extends Annotation> MethodList nameStartsWith(String s)
public <T extends Annotation> MethodList hasAnnotation(Class<T> annotation)
public <T extends Annotation> MethodList hasMetaAnnotation(Class<T> annotation)
public <T extends Annotation> MethodList hasNotAnnotation(Class<T> annotation)
public <T extends Annotation> MethodList hasNotMetaAnnotation(Class<T> annotation)
public MethodList filter(MethodList.Filter f)
Copyright © 2013 Oracle Corporation. All rights reserved.