<s> package org . eclipse . jdt . core ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; public final class Flags { public static final int AccDefault = ClassFileConstants . AccDefault ; public static final int AccPublic = ClassFileConstants . AccPublic ; public static final int AccPrivate = ClassFileConstants . AccPrivate ; public static final int AccProtected = ClassFileConstants . AccProtected ; public static final int AccStatic = ClassFileConstants . AccStatic ; public static final int AccFinal = ClassFileConstants . AccFinal ; public static final int AccSynchronized = ClassFileConstants . AccSynchronized ; public static final int AccVolatile = ClassFileConstants . AccVolatile ; public static final int AccTransient = ClassFileConstants . AccTransient ; public static final int AccNative = ClassFileConstants . AccNative ; public static final int AccInterface = ClassFileConstants . AccInterface ; public static final int AccAbstract = ClassFileConstants . AccAbstract ; public static final int AccStrictfp = ClassFileConstants . AccStrictfp ; public static final int AccSuper = ClassFileConstants . AccSuper ; public static final int AccSynthetic = ClassFileConstants . AccSynthetic ; public static final int AccDeprecated = ClassFileConstants . AccDeprecated ; public static final int AccBridge = ClassFileConstants . AccBridge ; public static final int AccVarargs = ClassFileConstants . AccVarargs ; public static final int AccEnum = ClassFileConstants . AccEnum ; public static final int AccAnnotation = ClassFileConstants . AccAnnotation ; private Flags ( ) { } public static boolean isAbstract ( int flags ) { return ( flags & AccAbstract ) != 0 ; } public static boolean isDeprecated ( int flags ) { return ( flags & AccDeprecated ) != 0 ; } public static boolean isFinal ( int flags ) { return ( flags & AccFinal ) != 0 ; } public static boolean isInterface ( int flags ) { return ( flags & AccInterface ) != 0 ; } public static boolean isNative ( int flags ) { return ( flags & AccNative ) != 0 ; } public static boolean isPackageDefault ( int flags ) { return ( flags & ( AccPublic | AccPrivate | AccProtected ) ) == 0 ; } public static boolean isPrivate ( int flags ) { return ( flags & AccPrivate ) != 0 ; } public static boolean isProtected ( int flags ) { return ( flags & AccProtected ) != 0 ; } public static boolean isPublic ( int flags ) { return ( flags & AccPublic ) != 0 ; } public static boolean isStatic ( int flags ) { return ( flags & AccStatic ) != 0 ; } public static boolean isSuper ( int flags ) { return ( flags & AccSuper ) != 0 ; } public static boolean isStrictfp ( int flags ) { return ( flags & AccStrictfp ) != 0 ; } public static boolean isSynchronized ( int flags ) { return ( flags & AccSynchronized ) != 0 ; } public static boolean isSynthetic ( int flags ) { return ( flags & AccSynthetic ) != 0 ; } public static boolean isTransient ( int flags ) { return ( flags & AccTransient ) != 0 ; } public static boolean isVolatile ( int flags ) { return ( flags & AccVolatile ) != 0 ; } public static boolean isBridge ( int flags ) { return ( flags & AccBridge ) != 0 ; } public static boolean isVarargs ( int flags ) { return ( flags & AccVarargs ) != 0 ; } public static boolean isEnum ( int flags ) { return ( flags & AccEnum ) != 0 ; } public static boolean isAnnotation ( int flags ) { return ( flags & AccAnnotation ) != 0 ; } public static String toString ( int flags ) { StringBuffer sb = new StringBuffer ( ) ; if ( isPublic ( flags ) ) sb . append ( "public " ) ; if ( isProtected ( flags ) ) sb . append ( "protected " ) ; if ( isPrivate ( flags ) ) sb . append ( "private " ) ; if ( isStatic ( flags ) ) sb . append ( "static " ) ; if ( isAbstract ( flags ) ) sb . append ( "abstract " ) ; if ( isFinal ( flags ) ) sb . append ( "final " ) ; if ( isNative ( flags ) ) sb . append ( "native " ) ; if ( isSynchronized ( flags ) ) sb . append ( "" ) ; if ( isTransient ( flags ) ) sb . append ( "transient " ) ; if ( isVolatile ( flags ) ) sb . append ( "volatile " ) ; if ( isStrictfp ( flags ) ) sb . append ( "strictfp " ) ; int len = sb . length ( ) ; if ( len == 0 ) return "" ; sb . setLength ( len - 1 ) ; return sb . toString ( ) ; } } </s>