blob: ac8bb3749f918eb148aa73883abfdec67f59600d [file] [log] [blame]
package aQute.bnd.compatibility;
import java.lang.reflect.*;
/**
* Access modifier
*/
public enum Access {
PUBLIC, PROTECTED, PACKAGE, PRIVATE, UNKNOWN;
public static Access modifier(int mod) {
if (Modifier.isPublic(mod))
return PUBLIC;
if (Modifier.isProtected(mod))
return PROTECTED;
if (Modifier.isPrivate(mod))
return PRIVATE;
return PACKAGE;
}
public String toString() {
return super.toString().toLowerCase();
}
}