net.vidageek.mirror.reflect.dsl
Interface AllReflectionHandler<T>

All Known Implementing Classes:
DefaultAllReflectionHandler

public interface AllReflectionHandler<T>


Method Summary
 AllAnnotationsHandler annotations()
          Use this method to reflect all annotations on a AccessibleObject
 java.util.List<java.lang.annotation.Annotation> annotationsMatching(Matcher<java.lang.annotation.Annotation> matcher)
          Use this method to reflect all annotations on the wrapped AnnotatedElement that matches matcher.
 java.util.List<java.lang.reflect.Constructor<T>> constructors()
          Use this method to reflect all constructors on the wrapped class
 java.util.List<java.lang.reflect.Constructor<T>> constructorsMatching(Matcher<java.lang.reflect.Constructor<T>> matcher)
          Use this method to reflect all constructors on the wrapped class that matches matcher.
 java.util.List<java.lang.reflect.Field> fields()
          Use this method to reflect all fields on the wrapped class
 java.util.List<java.lang.reflect.Field> fieldsMatching(Matcher<java.lang.reflect.Field> matcher)
          Use this method to reflect all fields on the wrapped class that matches matcher.
 java.util.List<java.lang.reflect.Method> getters()
          Use this method to reflect all getters that follow JavaBean convention
 java.util.List<java.lang.reflect.Method> methods()
          Use this method to reflect all methods on the wrapped class
 java.util.List<java.lang.reflect.Method> methodsMatching(Matcher<java.lang.reflect.Method> matcher)
          Use this method to reflect all methods on the wrapped class that matches matcher.
 java.util.List<java.lang.reflect.Method> setters()
          Use this method to reflect all setters that follow JavaBean convention
 

Method Detail

fields

java.util.List<java.lang.reflect.Field> fields()
Use this method to reflect all fields on the wrapped class

Returns:
The list of fields or an empty list if none was found.
See Also:
ClassReflectionProvider.reflectAllFields()

methods

java.util.List<java.lang.reflect.Method> methods()
Use this method to reflect all methods on the wrapped class

Returns:
The list of methods or an empty list if none was found.
See Also:
ClassReflectionProvider.reflectAllMethods()

constructors

java.util.List<java.lang.reflect.Constructor<T>> constructors()
Use this method to reflect all constructors on the wrapped class

Returns:
The list of constructors or an empty list if none was found.
See Also:
ClassReflectionProvider.reflectAllConstructors()

annotations

AllAnnotationsHandler annotations()
Use this method to reflect all annotations on a AccessibleObject

Returns:
An object responsible for reflecting annotations.

setters

java.util.List<java.lang.reflect.Method> setters()
Use this method to reflect all setters that follow JavaBean convention

Returns:
A list of setter methods

getters

java.util.List<java.lang.reflect.Method> getters()
Use this method to reflect all getters that follow JavaBean convention

Returns:
A list of getter methods

fieldsMatching

java.util.List<java.lang.reflect.Field> fieldsMatching(Matcher<java.lang.reflect.Field> matcher)
Use this method to reflect all fields on the wrapped class that matches matcher.

Returns:
The list of fields or an empty list if none was accepted by the matcher.
See Also:
fields()

methodsMatching

java.util.List<java.lang.reflect.Method> methodsMatching(Matcher<java.lang.reflect.Method> matcher)
Use this method to reflect all methods on the wrapped class that matches matcher.

Returns:
The list of methods or an empty list if none was accepted by the matcher.
See Also:
methods()

constructorsMatching

java.util.List<java.lang.reflect.Constructor<T>> constructorsMatching(Matcher<java.lang.reflect.Constructor<T>> matcher)
Use this method to reflect all constructors on the wrapped class that matches matcher.

Returns:
The list of constructors or an empty list if none was accepted by the matcher.
See Also:
constructors()

annotationsMatching

java.util.List<java.lang.annotation.Annotation> annotationsMatching(Matcher<java.lang.annotation.Annotation> matcher)
Use this method to reflect all annotations on the wrapped AnnotatedElement that matches matcher.

Returns:
The list of annotations or an empty list if none was accepted by the matcher.
See Also:
annotations()


Copyright © 2009 VidaGeek.net. All Rights Reserved.