public final class MethodDescriptor extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
Returns the method name, without the prefix
|
Class<?> |
getParameterType()
Returns the parameter type associated with a method, if available
|
String |
getPrefix()
Returns the prefix: a dot separated string denoting a path of nested object names (e.g.
|
String |
getPrefixedName()
Returns full path to a method, (e.g.
|
Class<?> |
getReturnType()
Returns the return type associated with a method, if available
|
static MethodDescriptor |
getter(String name,
Class<?> returnType)
Creates a descriptor for a getter method
|
int |
hashCode() |
static MethodDescriptor |
setter(String name,
Class<?> parameterType)
Creates a descriptor for a setter method
|
String |
toString() |
public static MethodDescriptor setter(String name, Class<?> parameterType)
name
- name of the setter methodparameterType
- the parameter type accepted by the given setter methodpublic static MethodDescriptor getter(String name, Class<?> returnType)
name
- name of the getter methodreturnType
- the return type of the given getter methodpublic String getName()
public String getPrefix()
public Class<?> getParameterType()
null
if a getter is being represented.public Class<?> getReturnType()
null
if a setter is being represented.public String getPrefixedName()
getName
or person.getName
Copyright © 2022 Univocity Software Pty Ltd. All rights reserved.