com.g2forge.alexandria.java.reflect.JavaAccessorMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ax-java Show documentation
Show all versions of ax-java Show documentation
Standard Java library and the basis of the ${alexandria.name} project.
package com.g2forge.alexandria.java.reflect;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
@AllArgsConstructor
public class JavaAccessorMethod implements IJavaAccessorMethod {
protected final Method method;
@Override
public String getName() {
return getMethod().getName();
}
@Override
public Type[] getParameterTypes() {
return getMethod().getGenericParameterTypes();
}
@Override
public Type getReturnType() {
return getMethod().getGenericReturnType();
}
}