Interface Modifier

All Known Implementing Classes:
AccessLevel, ModifierFlag

public sealed interface Modifier permits AccessLevel, ModifierFlag
Some kind of modifier (flag or access level).
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the bitmask of this modifier.
    boolean
    Returns true if this modifier is valid in the given location, or false if it is invalid.
  • Method Details

    • validIn

      boolean validIn(ModifierLocation location)
      Returns true if this modifier is valid in the given location, or false if it is invalid.
      Returns:
      true if this modifier is valid in the given location, or false if it is invalid
    • mask

      int mask()
      Returns the bitmask of this modifier.
      Returns:
      the bitmask of this modifier