public class Methods
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ClassDescriptor |
classDescriptor |
protected java.util.HashMap<java.lang.String,MethodDescriptor[]> |
methodsMap |
| Constructor and Description |
|---|
Methods(ClassDescriptor classDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
protected MethodDescriptor |
createMethodDescriptor(java.lang.reflect.Method method)
Creates new
MethodDescriptor. |
MethodDescriptor[] |
getAllMethodDescriptors()
Returns all methods.
|
MethodDescriptor[] |
getAllMethodDescriptors(java.lang.String name)
Returns all methods for given name.
|
MethodDescriptor |
getMethodDescriptor(java.lang.String name)
Returns method descriptor for given name.
|
MethodDescriptor |
getMethodDescriptor(java.lang.String name,
java.lang.Class[] paramTypes)
Returns a method that matches given name and parameter types.
|
protected java.util.HashMap<java.lang.String,MethodDescriptor[]> |
inspectMethods()
Inspects types methods and return map of
method descriptors. |
protected final ClassDescriptor classDescriptor
protected final java.util.HashMap<java.lang.String,MethodDescriptor[]> methodsMap
public Methods(ClassDescriptor classDescriptor)
protected java.util.HashMap<java.lang.String,MethodDescriptor[]> inspectMethods()
method descriptors.protected MethodDescriptor createMethodDescriptor(java.lang.reflect.Method method)
MethodDescriptor.public MethodDescriptor getMethodDescriptor(java.lang.String name, java.lang.Class[] paramTypes)
null if method is not found.public MethodDescriptor getMethodDescriptor(java.lang.String name)
null if no method exist in this collection by given name.getMethodDescriptor(String, Class[])public MethodDescriptor[] getAllMethodDescriptors(java.lang.String name)
null if method not found.public MethodDescriptor[] getAllMethodDescriptors()
Copyright © 2003-present Jodd Team