public enum ModifierKind extends Enum<ModifierKind>
Enum Constant and Description |
---|
ABSTRACT
abstract . |
BRIDGE
ACC_BRIDGE . |
DEFAULT
default . |
FINAL
final . |
NATIVE
native . |
PRIVATE
private . |
PROTECTED
protected . |
PUBLIC
public . |
STATIC
static . |
STRICTFP
strictfp . |
SUPER
ACC_SUPER . |
SYNCHRONIZED
synchronized . |
SYNTHETIC
ACC_SYNTHETIC . |
TRANSIENT
transient . |
VARARGS
ACC_VARARGS . |
VOLATILE
volatile . |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeDeclaredIn(DeclarationKind kind)
Returns whether this modifier can be explicitly declared on the target declaration or not.
|
String |
getKeyword()
Returns the keyword of this modifier.
|
boolean |
isImplicit()
Returns whether this modifier kind is implicit or not.
|
String |
toString() |
static ModifierKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModifierKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModifierKind PUBLIC
public
.public static final ModifierKind PROTECTED
protected
.public static final ModifierKind PRIVATE
private
.public static final ModifierKind STATIC
static
.public static final ModifierKind ABSTRACT
abstract
.public static final ModifierKind DEFAULT
default
.public static final ModifierKind NATIVE
native
.public static final ModifierKind FINAL
final
.public static final ModifierKind SYNCHRONIZED
synchronized
.public static final ModifierKind TRANSIENT
transient
.public static final ModifierKind VOLATILE
volatile
.public static final ModifierKind STRICTFP
strictfp
.public static final ModifierKind SUPER
ACC_SUPER
.public static final ModifierKind BRIDGE
ACC_BRIDGE
.public static final ModifierKind VARARGS
ACC_VARARGS
.public static final ModifierKind SYNTHETIC
ACC_SYNTHETIC
.public static ModifierKind[] values()
for (ModifierKind c : ModifierKind.values()) System.out.println(c);
public static ModifierKind 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 boolean isImplicit()
true
if this modifier kind is implicit, otherwise false
public boolean canBeDeclaredIn(DeclarationKind kind)
kind
- the target declaration kindtrue
if this modifier can be declared on the target declaration, otherwise false
public String getKeyword()
is implicit
public String toString()
toString
in class Enum<ModifierKind>
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.