Enum Modifier

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Modifier>

    public enum Modifier
    extends java.lang.Enum<Modifier>
    A list of all modifiers that are allowed on MemberDeclarations in Xtend source code
    • Enum Constant Detail

      • ABSTRACT

        public static final Modifier ABSTRACT
        The abstract modifier, can be present on classes and methods
      • DISPATCH

        public static final Modifier DISPATCH
        The dispatch modifier, can be present on methods
      • STRICTFP

        public static final Modifier STRICTFP
        The strict floating point modifier, can be present on classes and methods
      • NATIVE

        public static final Modifier NATIVE
        The native modifier, can be present on methods
      • VOLATILE

        public static final Modifier VOLATILE
        The volatile modifier, can be present on fields
      • SYNCHRONIZED

        public static final Modifier SYNCHRONIZED
        The synchronied modifier, can be present on methods
      • TRANSIENT

        public static final Modifier TRANSIENT
        The transient modifier, can be present on fields
      • VAL

        public static final Modifier VAL
        The val modifier, can be present on fields
      • VAR

        public static final Modifier VAR
        The var modifier, can be present on fields
      • DEF

        public static final Modifier DEF
        The def modifier, can be present on methods
      • OVERRIDE

        public static final Modifier OVERRIDE
        The override modifier, can be present on methods
      • EXTENSION

        public static final Modifier EXTENSION
        The extension modifier, can be present on fields
        Since:
        2.8
    • Method Detail

      • values

        public static Modifier[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Modifier c : Modifier.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Modifier valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null