Code example for Method

Methods: getName

0
 * @author Kohsuke Kawaguchi 
 */ 
final class MethodProperty extends Property {
    private final Method method;
    MethodProperty(Model owner, Method m, Exported exported) {
        super(owner,buildName(m.getName()), exported);
        this.method = m;
    } 
 
    private static String buildName(String name) {
        if(name.startsWith("get"))
            name = name.substring(3);
        else 
        if(name.startsWith("is"))
            name = name.substring(2);
 
        return Introspector.decapitalize(name);
    } 
 
    public Type getGenericType() {
Connect your IDE to all the code out there  Get Codota for Java