com.sun.jersey.core.reflection
Class MethodList

java.lang.Object
  extended by com.sun.jersey.core.reflection.MethodList
All Implemented Interfaces:
Iterable<AnnotatedMethod>

public class MethodList
extends Object
implements Iterable<AnnotatedMethod>

Author:
Paul.Sandoz@Sun.Com

Nested Class Summary
static interface MethodList.Filter
           
 
Constructor Summary
MethodList(AnnotatedMethod... methods)
           
MethodList(Class c)
           
MethodList(Class c, boolean declaredMethods)
           
MethodList(List<Method> methods)
           
MethodList(Method... methods)
           
 
Method Summary
 MethodList filter(MethodList.Filter f)
           
<T extends Annotation>
MethodList
hasAnnotation(Class<T> annotation)
           
<T extends Annotation>
MethodList
hasMetaAnnotation(Class<T> annotation)
           
<T extends Annotation>
MethodList
hasNotAnnotation(Class<T> annotation)
           
<T extends Annotation>
MethodList
hasNotMetaAnnotation(Class<T> annotation)
           
<T extends Annotation>
MethodList
hasNumParams(int i)
           
<T extends Annotation>
MethodList
hasReturnType(Class<?> r)
           
<T extends Annotation>
MethodList
isNotPublic()
           
 Iterator<AnnotatedMethod> iterator()
           
<T extends Annotation>
MethodList
nameStartsWith(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodList

public MethodList(Class c)

MethodList

public MethodList(Class c,
                  boolean declaredMethods)

MethodList

public MethodList(List<Method> methods)

MethodList

public MethodList(Method... methods)

MethodList

public MethodList(AnnotatedMethod... methods)
Method Detail

iterator

public Iterator<AnnotatedMethod> iterator()
Specified by:
iterator in interface Iterable<AnnotatedMethod>

isNotPublic

public <T extends Annotation> MethodList isNotPublic()

hasNumParams

public <T extends Annotation> MethodList hasNumParams(int i)

hasReturnType

public <T extends Annotation> MethodList hasReturnType(Class<?> r)

nameStartsWith

public <T extends Annotation> MethodList nameStartsWith(String s)

hasAnnotation

public <T extends Annotation> MethodList hasAnnotation(Class<T> annotation)

hasMetaAnnotation

public <T extends Annotation> MethodList hasMetaAnnotation(Class<T> annotation)

hasNotAnnotation

public <T extends Annotation> MethodList hasNotAnnotation(Class<T> annotation)

hasNotMetaAnnotation

public <T extends Annotation> MethodList hasNotMetaAnnotation(Class<T> annotation)

filter

public MethodList filter(MethodList.Filter f)


Copyright © 2011 Oracle Corporation. All Rights Reserved.