static String accessFlagsToString(Method m) {

    int flags = m.getAccessFlags();

    StringBuilder buf = new StringBuilder();
    // Note that pow is a binary mask for the flag (= 2^i).
    for (int i = 0, pow = 1; i <= Const.MAX_ACC_FLAG; i++) {
      if ((flags & pow) != 0) {
        if (buf.length() > 0) {
          buf.append(" ");
        }
        if (i < Const.ACCESS_NAMES_LENGTH) {
          buf.append(Const.getAccessName(i));
        } else {
          buf.append(String.format("ACC_BIT(%x)", pow));
        }
      }
      pow <<= 1;
    }

    return buf.toString();
  }
static String accessFlagsToString(Method m) {

    int flags = m.getAccessFlags();

    StringBuilder buf = new StringBuilder();
    
    for (int i = 0, pow = 1; i <= Const.MAX_ACC_FLAG; i++) {
      if ((flags & pow) != 0) {
        if (buf.length() > 0) {
          buf.append(" ");
        }
        if (i < Const.ACCESS_NAMES_LENGTH) {
          buf.append(Const.getAccessName(i));
        } else {
          buf.append(String.format("ACC_BIT(%x)", pow));
        }
      }
      pow <<= 1;
    }

    return buf.toString();
  }
static String accessFlagsToString ( Method m ) { int flags = m . getAccessFlags ( ) ; StringBuilder buf = new StringBuilder ( ) ; // Note that pow is a binary mask for the flag (= 2^i). for ( int i = 0 , pow = 1 ; i <= Const . MAX_ACC_FLAG ; i ++ ) { if ( ( flags & pow ) != 0 ) { if ( buf . length ( ) > 0 ) { buf . append ( " " ) ; } if ( i < Const . ACCESS_NAMES_LENGTH ) { buf . append ( Const . getAccessName ( i ) ) ; } else { buf . append ( String . format ( "ACC_BIT(%x)" , pow ) ) ; } } pow <<= 1 ; } return buf . toString ( ) ; }
Return a string representation of the access flags of method m. In the string, the flags are
space-separated and in a canonical order.

@param m the method whose access flags to retrieve
@return a string representation of the access flags of method m
Return a string representation of the access flags of method m . In the string the flags are space - separated and in a canonical order .