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
 List<Annotation> annotationsMatching(Matcher<Annotation> matcher)
          Deprecated. This functionality is going to be dropped.
 MirrorList<Constructor<T>> constructors()
          Use this method to reflect all constructors on the wrapped class
 List<Constructor<T>> constructorsMatching(Matcher<Constructor<T>> matcher)
          Deprecated. Use constructors().matching(Matcher>) instead.
 MirrorList<Field> fields()
          Use this method to reflect all fields on the wrapped class
 List<Field> fieldsMatching(Matcher<Field> matcher)
          Deprecated. Use fields().matching(Matcher) instead.
 MirrorList<Method> getters()
          Use this method to reflect all getters that follow JavaBean convention
 MirrorList<Method> methods()
          Use this method to reflect all methods on the wrapped class
 List<Method> methodsMatching(Matcher<Method> matcher)
          Deprecated. Use methods().matching(Matcher) instead.
 MirrorList<Method> setters()
          Use this method to reflect all setters that follow JavaBean convention
 

Method Detail

fields

MirrorList<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

MirrorList<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

MirrorList<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

MirrorList<Method> setters()
Use this method to reflect all setters that follow JavaBean convention

Returns:
A list of setter methods

getters

MirrorList<Method> getters()
Use this method to reflect all getters that follow JavaBean convention

Returns:
A list of getter methods

fieldsMatching

@Deprecated
List<Field> fieldsMatching(Matcher<Field> matcher)
Deprecated. Use fields().matching(Matcher) instead.

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

@Deprecated
List<Method> methodsMatching(Matcher<Method> matcher)
Deprecated. Use methods().matching(Matcher) instead.

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

@Deprecated
List<Constructor<T>> constructorsMatching(Matcher<Constructor<T>> matcher)
Deprecated. Use constructors().matching(Matcher>) instead.

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

@Deprecated
List<Annotation> annotationsMatching(Matcher<Annotation> matcher)
Deprecated. This functionality is going to be dropped.

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 © 2011 VidaGeek.net. All Rights Reserved.