All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kendal.api.Modifier Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
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