Code example for Method

Methods: getModifiersgetNamegetParameterTypesgetReturnType

     * @param handler a method which may or may not be a handler method 
     * @return the name of the event handled, or null 
    public String getHandledEvent(Method handler) {
        String name = super.getHandledEvent(handler);
        // If the method isn't annotated, but does return a resolution and is 
        // not abstract (we already know it's public) then use the method name 
        if ( name == null
                && !Modifier.isAbstract(handler.getModifiers())
                    && Resolution.class.isAssignableFrom(handler.getReturnType())
                        && handler.getParameterTypes().length == 0) {
            name = handler.getName();
        return name;
Connect your IDE to all the code out there  Get Codota for Java