assert( o != null );
final MBeanOperationInfo op = (MBeanOperationInfo)o;
String result = getPresentationTypeString( op.getReturnType() ) + " " + op.getName() + "(";
// create the signature string
result = result + ParamsToString( op.getSignature(), mOptions) + ")";
String impactStr = "";
switch( op.getImpact() )
{
default: impactStr = "unknown"; break;
case MBeanOperationInfo.INFO: impactStr = "info"; break;
case MBeanOperationInfo.ACTION: impactStr = "action"; break;
case MBeanOperationInfo.ACTION_INFO: impactStr = "action-info";break;
}
result = result + sOperationDelimiter + "impact=" +impactStr;
if ( mOptions.mIncludeDescription )
{
result = result + sOperationDelimiter + "\"" + op.getDescription() + "\"";
}
return( result );