public static Modifiers getInstance ( int bitmask ) { switch ( bitmask ) { case 0 : return NONE ; case Modifier . PUBLIC : return PUBLIC ; case Modifier . PUBLIC | Modifier . ABSTRACT : return PUBLIC_ABSTRACT ; case Modifier . PUBLIC | Modifier . STATIC : return PUBLIC_STATIC ; case Modifier . PROTECTED : return PROTECTED ; case Modifier . PRIVATE : return PRIVATE ; } return new Modifiers ( bitmask ) ; }
Returns a Modifiers object with the given bitmask .