|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.reflext.api.introspection.MethodIntrospector
public class MethodIntrospector
An introspector for methods of various types. The introspector execution is parameterized by the hierarchy scope that is used to navigate the class and its super classes and implemented interfaces. The introspector execution is parameterized by the remove overrides boolean that tells to keep or not the overriden methods that are redefined in a class.
| Constructor Summary | |
|---|---|
MethodIntrospector(HierarchyScope hierarchyScope)
Builds a new introspector with the specified hierarchy scope and a removeOverrides parameter set to false. |
|
MethodIntrospector(HierarchyScope hierarchyScope,
boolean removeOverrides)
Creates an introspector with the specified hierarchy scope and the specified removeOverrides parameter. |
|
| Method Summary | ||
|---|---|---|
Map<String,MethodInfo> |
getGetterMap(ClassTypeInfo classTypeInfo)
Returns a map of all method info getters on the specified class type info. |
|
Iterable<MethodInfo> |
getGetters(ClassTypeInfo classTypeInfo)
Find all method info getters on the specified class type info. |
|
Set<MethodInfo> |
getMethods(TypeInfo typeInfo)
Returns all method on the specified type info. |
|
Map<String,Set<MethodInfo>> |
getSetterMap(ClassTypeInfo classTypeInfo)
Returns a map of all method info setters on the specified class type info. |
|
Iterable<MethodInfo> |
getSetters(ClassTypeInfo classTypeInfo)
Find all method info setters on the specified class type info. |
|
|
resolveMethods(ClassTypeInfo cti,
Class<A> annotationClass)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodIntrospector(HierarchyScope hierarchyScope,
boolean removeOverrides)
throws NullPointerException
hierarchyScope - the hierarchy scoperemoveOverrides - the remove overrides
NullPointerException - if the hierarchy scope is null
public MethodIntrospector(HierarchyScope hierarchyScope)
throws NullPointerException
hierarchyScope - the hierarchy scope
NullPointerException - if the hierarchy scope is null| Method Detail |
|---|
public <A extends Annotation> Collection<MethodInfo> resolveMethods(ClassTypeInfo cti,
Class<A> annotationClass)
public Map<String,MethodInfo> getGetterMap(ClassTypeInfo classTypeInfo)
throws NullPointerException
classTypeInfo - the class type info
NullPointerException - if the specified class type info is null
public Iterable<MethodInfo> getGetters(ClassTypeInfo classTypeInfo)
throws NullPointerException
classTypeInfo - the class type info
NullPointerException - if the specified class type info is null
public Map<String,Set<MethodInfo>> getSetterMap(ClassTypeInfo classTypeInfo)
throws NullPointerException
classTypeInfo - the class type info
NullPointerException - if the specified class type info is nullpublic Iterable<MethodInfo> getSetters(ClassTypeInfo classTypeInfo)
classTypeInfo - the class type info
NullPointerException - if the specified class type info is null
public Set<MethodInfo> getMethods(TypeInfo typeInfo)
throws NullPointerException
typeInfo - the type info
NullPointerException - if the specified type info is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||