private String buildHandlingMethodName ( final EnumEventType annotationType ) { final StringBuilder methodName = new StringBuilder ( ) ; if ( Arrays . asList ( getAnnotationValue ( ) ) . contains ( annotationType ) ) { // Lower case the first letter of the annotation name methodName . append ( this . annotation . annotationType ( ) . getSimpleName ( ) . substring ( 0 , 1 ) . toLowerCase ( ) ) ; // Don't change the case for all other letters methodName . append ( this . annotation . annotationType ( ) . getSimpleName ( ) . substring ( 1 ) ) ; // Append if necessary the sub type if not equals to any methodName . append ( Key . Any . name ( ) . equals ( annotationType . toString ( ) ) || Action . Action . name ( ) . equals ( annotationType . toString ( ) ) ? "" : annotationType . name ( ) ) ; // Add suffix if handling method is named final String uniqueName = getAnnotationName ( ) ; if ( uniqueName . length ( ) > 0 ) { methodName . append ( uniqueName ) ; } } return methodName . toString ( ) ; }
Build the handling method name used to manage this event .