|
||||||||||
| 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. |
|
MethodIntrospector(HierarchyVisitorStrategy strategy)
Builds a new introspector with the specified hierarchy visitor strategy and a removeOverrides parameter set to false. |
|
MethodIntrospector(HierarchyVisitorStrategy strategy,
boolean removeOverrides)
Creates an introspector with the specified hierarchy visitor strategy and the specified removeOverrides parameter. |
|
| Method Summary | ||
|---|---|---|
java.util.Map<java.lang.String,MethodInfo> |
getGetterMap(ClassTypeInfo classTypeInfo)
Returns a map of all method info getters on the specified class type info. |
|
java.lang.Iterable<MethodInfo> |
getGetters(ClassTypeInfo classTypeInfo)
Find all method info getters on the specified class type info. |
|
java.util.Set<MethodInfo> |
getMethods(TypeInfo typeInfo)
Returns all method on the specified type info. |
|
java.util.Map<java.lang.String,java.util.Set<MethodInfo>> |
getSetterMap(ClassTypeInfo classTypeInfo)
Returns a map of all method info setters on the specified class type info. |
|
java.lang.Iterable<MethodInfo> |
getSetters(ClassTypeInfo classTypeInfo)
Find all method info setters on the specified class type info. |
|
|
resolveMethods(ClassTypeInfo cti,
AnnotationType<A,?> annotationClass)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodIntrospector(HierarchyVisitorStrategy strategy,
boolean removeOverrides)
throws java.lang.NullPointerException
strategy - the hierarchy visitor strategyremoveOverrides - the remove overrides
java.lang.NullPointerException - if the hierarchy scope is null
public MethodIntrospector(HierarchyScope hierarchyScope,
boolean removeOverrides)
throws java.lang.NullPointerException
hierarchyScope - the hierarchy scoperemoveOverrides - the remove overrides
java.lang.NullPointerException - if the hierarchy scope is null
public MethodIntrospector(HierarchyScope hierarchyScope)
throws java.lang.NullPointerException
hierarchyScope - the hierarchy scope
java.lang.NullPointerException - if the hierarchy scope is null
public MethodIntrospector(HierarchyVisitorStrategy strategy)
throws java.lang.NullPointerException
strategy - the hierarchy visitor strategy
java.lang.NullPointerException - if the hierarchy scope is null| Method Detail |
|---|
public <A> java.util.Collection<AnnotationTarget<MethodInfo,A>> resolveMethods(ClassTypeInfo cti,
AnnotationType<A,?> annotationClass)
public java.util.Map<java.lang.String,MethodInfo> getGetterMap(ClassTypeInfo classTypeInfo)
throws java.lang.NullPointerException
classTypeInfo - the class type info
java.lang.NullPointerException - if the specified class type info is null
public java.lang.Iterable<MethodInfo> getGetters(ClassTypeInfo classTypeInfo)
throws java.lang.NullPointerException
classTypeInfo - the class type info
java.lang.NullPointerException - if the specified class type info is null
public java.util.Map<java.lang.String,java.util.Set<MethodInfo>> getSetterMap(ClassTypeInfo classTypeInfo)
throws java.lang.NullPointerException
classTypeInfo - the class type info
java.lang.NullPointerException - if the specified class type info is nullpublic java.lang.Iterable<MethodInfo> getSetters(ClassTypeInfo classTypeInfo)
classTypeInfo - the class type info
java.lang.NullPointerException - if the specified class type info is null
public java.util.Set<MethodInfo> getMethods(TypeInfo typeInfo)
throws java.lang.NullPointerException
typeInfo - the type info
java.lang.NullPointerException - if the specified type info is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||