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.ForType
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.
|
EMPTY_MASK
Modifier and Type | Method and Description |
---|---|
int |
getMask()
Returns the mask of this modifier.
|
boolean |
isAbstract()
Returns
true if this instance represents a abstract method. |
boolean |
isBridge()
Returns
true if this instance represents a bridge method. |
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()
ModifierContributor
getMask
in interface ModifierContributor
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–2015. All rights reserved.