public enum SuperFlag extends Enum<SuperFlag> implements ModifierContributor.ForType
ModifierContributor.ForField, ModifierContributor.ForMethod, ModifierContributor.ForType
Enum Constant and Description |
---|
DEFINED
Modifier for enabling virtual super method dispatch.
|
UNDEFINED
Modifier for disabling virtual super method dispatch.
|
EMPTY_MASK
Modifier and Type | Method and Description |
---|---|
int |
getMask()
Returns the mask of this modifier.
|
static SuperFlag |
is(boolean isSuperFlag)
Creates a super flag from a boolean value indicating if a type should carry this flag.
|
boolean |
isSuperFlag()
Checks if the super flag is set.
|
static SuperFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SuperFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SuperFlag DEFINED
public static final SuperFlag UNDEFINED
public static SuperFlag[] values()
for (SuperFlag c : SuperFlag.values()) System.out.println(c);
public static SuperFlag 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 SuperFlag is(boolean isSuperFlag)
isSuperFlag
- true
if the type is supposed to carry the flag.public int getMask()
ModifierContributor
getMask
in interface ModifierContributor
public boolean isSuperFlag()
true
if the state is set.Copyright © 2014. All rights reserved.