public enum MethodManifestation extends Enum<MethodManifestation> implements ModifierContributor.ForMethod
abstract method must never be static and can only be declared for an
abstract type.ModifierContributor.ForField, ModifierContributor.ForMethod, ModifierContributor.ForParameter, ModifierContributor.ForType, ModifierContributor.Resolver<T extends ModifierContributor>| Enum Constant and Description |
|---|
ABSTRACT
Modifier for an abstract method.
|
BRIDGE
Modifier for a bridge method.
|
FINAL
Modifier for a final method.
|
FINAL_NATIVE
Modifier for a native and final method.
|
NATIVE
Modifier for a native method.
|
PLAIN
Modifier for a non-native, non-abstract, non-final method.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ABSTRACTION_MASK
A mask for checking if a method implementation is not implemented in byte code.
|
MASKEMPTY_MASK| Modifier and Type | Method and Description |
|---|---|
int |
getMask()
Returns the mask of this modifier.
|
int |
getRange()
Returns the entire range of modifiers that address this contributor's property.
|
boolean |
isAbstract()
Returns
true if this instance represents a abstract method. |
boolean |
isBridge()
Returns
true if this instance represents a bridge method. |
boolean |
isDefault()
Determines if this is the default modifier.
|
boolean |
isFinal()
Returns
true if this instance represents a final method. |
boolean |
isNative()
Returns
true if this instance represents a native method. |
String |
toString() |
static MethodManifestation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodManifestation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodManifestation PLAIN
public static final MethodManifestation NATIVE
public static final MethodManifestation ABSTRACT
public static final MethodManifestation FINAL
public static final MethodManifestation FINAL_NATIVE
public static final MethodManifestation BRIDGE
public static final int ABSTRACTION_MASK
public static MethodManifestation[] values()
for (MethodManifestation c : MethodManifestation.values()) System.out.println(c);
public static MethodManifestation 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 int getMask()
ModifierContributorgetMask in interface ModifierContributorpublic int getRange()
ModifierContributorgetRange in interface ModifierContributorpublic boolean isDefault()
ModifierContributorisDefault in interface ModifierContributortrue if this contributor represents the default modifier.public boolean isNative()
true if this instance represents a native method.true if this instance represents a native method.public boolean isAbstract()
true if this instance represents a abstract method.true if this instance represents a abstract method.public boolean isFinal()
true if this instance represents a final method.true if this instance represents a final method.public boolean isBridge()
true if this instance represents a bridge method.true if this instance represents a bridge method.public String toString()
toString in class Enum<MethodManifestation>Copyright © 2014–2016. All rights reserved.