public static void printModifiers(int modifiers,StringBuffer buf){
  if (Modifier.isPublic(modifiers)) {
    buf.append("public ");
  }
  if (Modifier.isProtected(modifiers)) {
    buf.append("protected ");
  }
  if (Modifier.isPrivate(modifiers)) {
    buf.append("private ");
  }
  if (Modifier.isStatic(modifiers)) {
    buf.append("static ");
  }
  if (Modifier.isAbstract(modifiers)) {
    buf.append("abstract ");
  }
  if (Modifier.isFinal(modifiers)) {
    buf.append("final ");
  }
  if (Modifier.isSynchronized(modifiers)) {
    buf.append("synchronized ");
  }
  if (Modifier.isVolatile(modifiers)) {
    buf.append("volatile ");
  }
  if (Modifier.isNative(modifiers)) {
    buf.append("native ");
  }
  if (Modifier.isStrictfp(modifiers)) {
    buf.append("strictfp ");
  }
  if (Modifier.isTransient(modifiers)) {
    buf.append("transient ");
  }
}

public static void printModifiers ( int modifiers , StringBuffer buf ) { if ( Modifier . isPublic ( modifiers ) ) { buf . append ( "public " ) ; } if ( Modifier . isProtected ( modifiers ) ) { buf . append ( "protected " ) ; } if ( Modifier . isPrivate ( modifiers ) ) { buf . append ( "private " ) ; } if ( Modifier . isStatic ( modifiers ) ) { buf . append ( "static " ) ; } if ( Modifier . isAbstract ( modifiers ) ) { buf . append ( "abstract " ) ; } if ( Modifier . isFinal ( modifiers ) ) { buf . append ( "final " ) ; } if ( Modifier . isSynchronized ( modifiers ) ) { buf . append ( "synchronized " ) ; } if ( Modifier . isVolatile ( modifiers ) ) { buf . append ( "volatile " ) ; } if ( Modifier . isNative ( modifiers ) ) { buf . append ( "native " ) ; } if ( Modifier . isStrictfp ( modifiers ) ) { buf . append ( "strictfp " ) ; } if ( Modifier . isTransient ( modifiers ) ) { buf . append ( "transient " ) ; } }
appends the text representation of the given modifier flags , followed by a single space .
