public enum TypeManifestation extends Enum<TypeManifestation> implements ModifierContributor.ForType
ModifierContributor.ForField, ModifierContributor.ForMethod, ModifierContributor.ForType
Enum Constant and Description |
---|
ABSTRACT
Modifier for an abstract class.
|
ANNOTATION
Modifier for an annotation.
|
FINAL
Modifier for a final class.
|
INTERFACE
Modifier for an interface.
|
PLAIN
Modifier for a non-final, non-abstract, non-interface, non-enum type.
|
EMPTY_MASK
Modifier and Type | Method and Description |
---|---|
int |
getMask()
Returns the mask of this modifier.
|
boolean |
isAbstract()
Returns
true if a type represents an abstract type but not an interface type. |
boolean |
isAnnotation()
Returns
true if a type represents an annotation type. |
boolean |
isFinal()
Returns
true if a type represents a final type. |
boolean |
isInterface()
Returns
true if a type represents an interface type. |
String |
toString() |
static TypeManifestation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeManifestation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeManifestation PLAIN
public static final TypeManifestation FINAL
public static final TypeManifestation ABSTRACT
public static final TypeManifestation INTERFACE
public static final TypeManifestation ANNOTATION
public static TypeManifestation[] values()
for (TypeManifestation c : TypeManifestation.values()) System.out.println(c);
public static TypeManifestation 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 isFinal()
true
if a type represents a final
type.true
if a type represents a final
type.public boolean isAbstract()
true
if a type represents an abstract
type but not an interface type.true
if a type represents an abstract
type but not an interface type.public boolean isInterface()
true
if a type represents an interface type.true
if a type represents an interface type.public boolean isAnnotation()
true
if a type represents an annotation type.true
if a type represents an annotation type.public String toString()
toString
in class Enum<TypeManifestation>
Copyright © 2014–2015. All rights reserved.