kendal.api.Modifier Maven / Gradle / Ivy
package kendal.api;
import com.sun.tools.javac.code.Flags;
// TODO - do we even need this enum? Why not just let user pass flags?
public enum Modifier {
PACKAGE_PRIVATE(0),
PRIVATE(Flags.PRIVATE),
PROTECTED(Flags.PROTECTED),
PUBLIC(Flags.PUBLIC),
FINAL(Flags.FINAL),
ABSTRACT(Flags.ABSTRACT),
STATIC(Flags.STATIC),
SYNCHRONIZED(Flags.SYNCHRONIZED),
VOLATILE(Flags.VOLATILE),
TRANSIENT(Flags.TRANSIENT),
NATIVE(Flags.NATIVE),
STRICTFP(Flags.STRICTFP);
private int flag;
Modifier(int flag) {
this.flag = flag;
}
public int getFlag() {
return flag;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy