Package jodd.introspector
Class MethodDescriptor
- java.lang.Object
-
- jodd.introspector.Descriptor
-
- jodd.introspector.MethodDescriptor
-
public class MethodDescriptor extends Descriptor
Method descriptor. Holds additional method data, that might be specific to implementation class.
-
-
Field Summary
Fields Modifier and Type Field Description protected MapperFunctionmapperFunctionprotected java.lang.reflect.Methodmethodprotected MethodParamDescriptor[]parametersprotected java.lang.ClassrawReturnComponentTypeprotected java.lang.ClassrawReturnKeyComponentTypeprotected java.lang.ClassrawReturnTypeprotected java.lang.reflect.TypereturnType-
Fields inherited from class jodd.introspector.Descriptor
classDescriptor, isPublic
-
-
Constructor Summary
Constructors Constructor Description MethodDescriptor(ClassDescriptor classDescriptor, java.lang.reflect.Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.MethodgetMethod()Returns method.java.lang.StringgetName()Returns method name.intgetParameterCount()Returns number of parameters.MethodParamDescriptor[]getParameters()Returnsmethod parameteres.java.lang.ClassgetRawReturnComponentType()Returns raw component type of return type.java.lang.ClassgetRawReturnKeyComponentType()Returns raw component type of return type.java.lang.ClassgetRawReturnType()Returns raw return type.java.lang.Class[]resolveRawReturnComponentTypes()Resolves raw return component types This value is NOT cached.java.lang.StringtoString()-
Methods inherited from class jodd.introspector.Descriptor
getClassDescriptor, isPublic, matchDeclared
-
-
-
-
Field Detail
-
method
protected final java.lang.reflect.Method method
-
returnType
protected final java.lang.reflect.Type returnType
-
rawReturnType
protected final java.lang.Class rawReturnType
-
rawReturnComponentType
protected final java.lang.Class rawReturnComponentType
-
rawReturnKeyComponentType
protected final java.lang.Class rawReturnKeyComponentType
-
parameters
protected final MethodParamDescriptor[] parameters
-
mapperFunction
protected final MapperFunction mapperFunction
-
-
Constructor Detail
-
MethodDescriptor
public MethodDescriptor(ClassDescriptor classDescriptor, java.lang.reflect.Method method)
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns method name.- Specified by:
getNamein classDescriptor
-
getMethod
public java.lang.reflect.Method getMethod()
Returns method.
-
getRawReturnType
public java.lang.Class getRawReturnType()
Returns raw return type.
-
getRawReturnComponentType
public java.lang.Class getRawReturnComponentType()
Returns raw component type of return type. May benullif return type does not have components.
-
getRawReturnKeyComponentType
public java.lang.Class getRawReturnKeyComponentType()
Returns raw component type of return type. May benullif return type does not have components.
-
resolveRawReturnComponentTypes
public java.lang.Class[] resolveRawReturnComponentTypes()
Resolves raw return component types This value is NOT cached.
-
getParameters
public MethodParamDescriptor[] getParameters()
Returnsmethod parameteres.
-
getParameterCount
public int getParameterCount()
Returns number of parameters.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-