public enum MethodModifier extends Enum<MethodModifier>
| Enum Constant and Description |
|---|
ABSTRACT |
DEFAULT |
FINAL |
NATIVE |
PRIVATE |
PROTECTED |
PUBLIC |
STATIC |
STRICT |
SYNCHRONIZED |
| Modifier and Type | Field and Description |
|---|---|
static EnumSet<MethodModifier> |
MATCH_ANY |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
meetsModifierRequirements(Method method,
EnumSet<MethodModifier> modifiers) |
static MethodModifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodModifier PUBLIC
public static final MethodModifier PROTECTED
public static final MethodModifier PRIVATE
public static final MethodModifier ABSTRACT
public static final MethodModifier DEFAULT
public static final MethodModifier STATIC
public static final MethodModifier FINAL
public static final MethodModifier SYNCHRONIZED
public static final MethodModifier NATIVE
public static final MethodModifier STRICT
public static final EnumSet<MethodModifier> MATCH_ANY
public static MethodModifier[] values()
for (MethodModifier c : MethodModifier.values()) System.out.println(c);
public static MethodModifier 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 meetsModifierRequirements(Method method, EnumSet<MethodModifier> modifiers)
Copyright © 2011–2019. All rights reserved.