public class MethodHierarchyReader
extends java.lang.Object
On the first call, parses and stores the full hierarchy information. The cached full hierarchy is then used for all subsequent calls. Returned iterables, maps, and lists are copied out without reference to the original full hierarchy information to allow the caller to keep just the needed portion of information and release the full hierarchy along with this class.
| Constructor and Description |
|---|
MethodHierarchyReader(java.lang.Class<?> endpointClass)
Constructs a
MethodHierarchyReader for the given class type. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<java.util.List<EndpointMethod>> |
getEndpointOverrides()
Returns a collection of public service methods defined by the class and its super classes.
|
java.lang.Iterable<EndpointMethod> |
getLeafEndpointMethods()
Returns a collection of public service methods defined by the class and its super classes.
|
java.lang.Iterable<java.lang.reflect.Method> |
getLeafMethods()
Returns a collection of public service methods defined by the class and its super classes.
|
java.lang.Iterable<java.util.List<java.lang.reflect.Method>> |
getMethodOverrides()
Returns a collection of public service methods defined by the class and its super classes.
|
com.google.common.collect.ListMultimap<java.lang.String,EndpointMethod> |
getNameToEndpointOverridesMap()
Returns a mapping of public service methods defined by the class and its super classes,
keyed by method name.
|
java.util.Map<java.lang.String,java.lang.reflect.Method> |
getNameToLeafMethodMap()
Returns a mapping of public service methods defined by the class and its super classes,
keyed by method name.
|
public MethodHierarchyReader(java.lang.Class<?> endpointClass)
MethodHierarchyReader for the given class type.endpointClass - Must be a concrete type (not abstract or interface).public java.lang.Iterable<java.lang.reflect.Method> getLeafMethods()
public java.lang.Iterable<EndpointMethod> getLeafEndpointMethods()
public java.lang.Iterable<java.util.List<java.lang.reflect.Method>> getMethodOverrides()
public java.lang.Iterable<java.util.List<EndpointMethod>> getEndpointOverrides()
public java.util.Map<java.lang.String,java.lang.reflect.Method> getNameToLeafMethodMap()
public com.google.common.collect.ListMultimap<java.lang.String,EndpointMethod> getNameToEndpointOverridesMap()