Package jodd.introspector
Class Methods
- java.lang.Object
-
- jodd.introspector.Methods
-
public class Methods extends java.lang.ObjectMethods collection.
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassDescriptorclassDescriptorprotected java.util.HashMap<java.lang.String,MethodDescriptor[]>methodsMap
-
Constructor Summary
Constructors Constructor Description Methods(ClassDescriptor classDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MethodDescriptorcreateMethodDescriptor(java.lang.reflect.Method method)Creates newMethodDescriptor.MethodDescriptor[]getAllMethodDescriptors()Returns all methods.MethodDescriptor[]getAllMethodDescriptors(java.lang.String name)Returns all methods for given name.MethodDescriptorgetMethodDescriptor(java.lang.String name)Returns method descriptor for given name.MethodDescriptorgetMethodDescriptor(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 ofmethod descriptors.
-
-
-
Field Detail
-
classDescriptor
protected final ClassDescriptor classDescriptor
-
methodsMap
protected final java.util.HashMap<java.lang.String,MethodDescriptor[]> methodsMap
-
-
Constructor Detail
-
Methods
public Methods(ClassDescriptor classDescriptor)
-
-
Method Detail
-
inspectMethods
protected java.util.HashMap<java.lang.String,MethodDescriptor[]> inspectMethods()
Inspects types methods and return map ofmethod descriptors.
-
createMethodDescriptor
protected MethodDescriptor createMethodDescriptor(java.lang.reflect.Method method)
Creates newMethodDescriptor.
-
getMethodDescriptor
public MethodDescriptor getMethodDescriptor(java.lang.String name, java.lang.Class[] paramTypes)
Returns a method that matches given name and parameter types. Returnsnullif method is not found.
-
getMethodDescriptor
public MethodDescriptor getMethodDescriptor(java.lang.String name)
Returns method descriptor for given name. If more then one methods with the same name exists, one method will be returned (not determined which one). Returnsnullif no method exist in this collection by given name.- See Also:
getMethodDescriptor(String, Class[])
-
getAllMethodDescriptors
public MethodDescriptor[] getAllMethodDescriptors(java.lang.String name)
Returns all methods for given name. Returnsnullif method not found.
-
getAllMethodDescriptors
public MethodDescriptor[] getAllMethodDescriptors()
Returns all methods. Cached. Lazy.
-
-