java.lang.Object
java.lang.Enum<Modifier>
org.eclipse.xtend.lib.macro.declaration.Modifier
All Implemented Interfaces:
Serializable, Comparable<Modifier>, Constable

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

    • PUBLIC

      public static final Modifier PUBLIC
      The public visibility modifier, can be present on fields, types and executables
    • PRIVATE

      public static final Modifier PRIVATE
      The private visibility modifier, can be present on fields, types and executables
    • PROTECTED

      public static final Modifier PROTECTED
      The protected visibility modifier, can be present on fields, types and executables
    • PACKAGE

      public static final Modifier PACKAGE
      The package private visibility modifier, can be present on fields, types and executables
    • ABSTRACT

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

      public static final Modifier STATIC
      The static modifier, can be present on types, fields and methods
    • DISPATCH

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

      public static final Modifier FINAL
      The final modifier, can be present on classes, fields and 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 Details

    • values

      public static Modifier[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Modifier valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null