Enum Class NameAccessModifier
- All Implemented Interfaces:
Serializable
,Comparable<NameAccessModifier>
,Constable
Visibility modifiers for EPL objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPreconfigured is used for objects that are preconfigured by configuration.Private is used for objects that may be used with the same module.Protected is used for objects that may be used with the modules of the same module name.Public is used for objects that may be used by other modules irrespective of module names.Transient is used for non-visible objects that are only visible for the purpose of statement-internal processing. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the modifier can be used by modules i.e.boolean
Returns true for a public and protected and false for all othersboolean
Returns true for a private and transient and false for all othersstatic NameAccessModifier
Returns the enum constant of this class with the specified name.static NameAccessModifier[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static boolean
visible
(NameAccessModifier objectVisibility, String objectModuleName, String importModuleName) Returns indicator whether the object is visible.
-
Enum Constant Details
-
TRANSIENT
Transient is used for non-visible objects that are only visible for the purpose of statement-internal processing. -
PRIVATE
Private is used for objects that may be used with the same module. -
PROTECTED
Protected is used for objects that may be used with the modules of the same module name. -
PUBLIC
Public is used for objects that may be used by other modules irrespective of module names. -
PRECONFIGURED
Preconfigured is used for objects that are preconfigured by configuration.
-
-
Method Details
-
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
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 nameNullPointerException
- 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 visibilityobjectModuleName
- object module nameimportModuleName
- 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
-