public enum NameAccessModifier extends Enum<NameAccessModifier>
Enum Constant and Description |
---|
PRECONFIGURED
Preconfigured is used for objects that are preconfigured by configuration.
|
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.
|
TRANSIENT
Transient is used for non-visible objects that are only visible for the purpose of statement-internal processing.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isModuleProvidedAccessModifier()
Returns true if the modifier can be used by modules i.e.
|
boolean |
isNonPrivateNonTransient()
Returns true for a public and protected and false for all others
|
boolean |
isPrivateOrTransient()
Returns true for a private and transient and false for all others
|
static NameAccessModifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NameAccessModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static boolean |
visible(NameAccessModifier objectVisibility,
String objectModuleName,
String importModuleName)
Returns indicator whether the object is visible.
|
public static final NameAccessModifier TRANSIENT
public static final NameAccessModifier PRIVATE
public static final NameAccessModifier PROTECTED
public static final NameAccessModifier PUBLIC
public static final NameAccessModifier PRECONFIGURED
public static NameAccessModifier[] values()
for (NameAccessModifier c : NameAccessModifier.values()) System.out.println(c);
public static NameAccessModifier valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean visible(NameAccessModifier objectVisibility, String objectModuleName, String importModuleName)
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
objectVisibility
- object visibilityobjectModuleName
- object module nameimportModuleName
- my module namepublic boolean isModuleProvidedAccessModifier()
public boolean isNonPrivateNonTransient()
public boolean isPrivateOrTransient()
Copyright © 2005–2018. All rights reserved.