private static int modifierDescriptionToReflectedType(String name,String key,String value){
switch (key) {
case MODIFIER_ABSTRACT:
    return value.equals("true") ? Modifier.ABSTRACT : 0;
case MODIFIER_FINAL:
  return value.equals("true") ? Modifier.FINAL : 0;
case MODIFIER_NATIVE:
return value.equals("true") ? Modifier.NATIVE : 0;
case MODIFIER_STATIC:
return value.equals("true") ? Modifier.STATIC : 0;
case MODIFIER_SYNCHRONIZED:
return value.equals("true") ? Modifier.SYNCHRONIZED : 0;
case MODIFIER_TRANSIENT:
return value.equals("true") ? Modifier.TRANSIENT : 0;
case MODIFIER_VOLATILE:
return value.equals("true") ? Modifier.VOLATILE : 0;
case MODIFIER_VISIBILITY:
switch (value) {
case MODIFIER_PRIVATE:
throw new RuntimeException("Private visibility found in API spec: " + name);
case MODIFIER_PROTECTED:
return Modifier.PROTECTED;
case MODIFIER_PUBLIC:
return Modifier.PUBLIC;
case "":
return 0;
default :
throw new RuntimeException("Unknown modifier found in API spec: " + value);
}
}
return 0;
}

private static int modifierDescriptionToReflectedType ( String name , String key , String value ) { switch ( key ) { case MODIFIER_ABSTRACT : return value . equals ( "true" ) ? Modifier . ABSTRACT : 0 ; case MODIFIER_FINAL : return value . equals ( "true" ) ? Modifier . FINAL : 0 ; case MODIFIER_NATIVE : return value . equals ( "true" ) ? Modifier . NATIVE : 0 ; case MODIFIER_STATIC : return value . equals ( "true" ) ? Modifier . STATIC : 0 ; case MODIFIER_SYNCHRONIZED : return value . equals ( "true" ) ? Modifier . SYNCHRONIZED : 0 ; case MODIFIER_TRANSIENT : return value . equals ( "true" ) ? Modifier . TRANSIENT : 0 ; case MODIFIER_VOLATILE : return value . equals ( "true" ) ? Modifier . VOLATILE : 0 ; case MODIFIER_VISIBILITY : switch ( value ) { case MODIFIER_PRIVATE : throw new RuntimeException ( "Private visibility found in API spec: " + name ) ; case MODIFIER_PROTECTED : return Modifier . PROTECTED ; case MODIFIER_PUBLIC : return Modifier . PUBLIC ; case "" : return 0 ; default : throw new RuntimeException ( "Unknown modifier found in API spec: " + value ) ; } } return 0 ; }
convert string modifier to int modifier .
