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