Enum Class NameAccessModifier

java.lang.Object
java.lang.Enum<NameAccessModifier>
com.espertech.esper.common.client.util.NameAccessModifier
All Implemented Interfaces:
Serializable, Comparable<NameAccessModifier>, Constable

public enum NameAccessModifier extends Enum<NameAccessModifier>
Visibility modifiers for EPL objects.
  • Enum Constant Details

    • TRANSIENT

      public static final NameAccessModifier TRANSIENT
      Transient is used for non-visible objects that are only visible for the purpose of statement-internal processing.
    • PRIVATE

      public static final NameAccessModifier PRIVATE
      Private is used for objects that may be used with the same module.
    • PROTECTED

      public static final NameAccessModifier PROTECTED
      Protected is used for objects that may be used with the modules of the same module name.
    • PUBLIC

      public static final NameAccessModifier PUBLIC
      Public is used for objects that may be used by other modules irrespective of module names.
    • PRECONFIGURED

      public static final NameAccessModifier PRECONFIGURED
      Preconfigured is used for objects that are preconfigured by configuration.
  • Method Details

    • values

      public static NameAccessModifier[] 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 NameAccessModifier 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
    • visible

      public static boolean visible(NameAccessModifier objectVisibility, String objectModuleName, String importModuleName)
      Returns indicator whether the object is visible.

      Always false if the object is private or transient.

      Always true if the object is public or preconfigured.

      For protected the module name must match

      Parameters:
      objectVisibility - object visibility
      objectModuleName - object module name
      importModuleName - my module name
      Returns:
      indicator
    • isModuleProvidedAccessModifier

      public boolean isModuleProvidedAccessModifier()
      Returns true if the modifier can be used by modules i.e. returns true for private, protected and public. Returns false for preconfigured since preconfigured is reserved for configured objects. Returns false for transient as transient is reserved for internal use
      Returns:
      indicator
    • isNonPrivateNonTransient

      public boolean isNonPrivateNonTransient()
      Returns true for a public and protected and false for all others
      Returns:
      indicator
    • isPrivateOrTransient

      public boolean isPrivateOrTransient()
      Returns true for a private and transient and false for all others
      Returns:
      indicator