Package io.github.sandydunlop.markista.model
Enum Class Modifier
java.lang.Object
java.lang.Enum<io.github.sandydunlop.markista.model.Modifier>
io.github.sandydunlop.markista.model.Modifier
public final enum class Modifier
Enum representing Java language modifiers with their string representations.
Enum Constants
Enum Constant | Description |
---|---|
PUBLIC | |
PROTECTED | |
PRIVATE | |
STATIC | |
FINAL | |
ABSTRACT | |
SYNCHRONIZED | |
TRANSIENT | |
VOLATILE | |
NATIVE | |
STRICTFP | |
DEFAULT |
Field Summary
Modifier and Type | Field | Description |
---|---|---|
private final String | name | The string representation of the modifier. |
Constructor Summary
Constructor | Description |
---|---|
Modifier(String s) | Constructs a Modifier enum constant with the specified string value. |
Method Summary
Modifier and Type | Method | Description |
---|---|---|
public static io.github.sandydunlop.markista.model.Modifier[] | values() | |
public static Modifier | valueOf(String name) | |
public String | toString() | Returns the string representation of this modifier. |
Enum Constant Details
PUBLIC
public static final PUBLIC
PROTECTED
public static final PROTECTED
PRIVATE
public static final PRIVATE
STATIC
public static final STATIC
FINAL
public static final FINAL
ABSTRACT
public static final ABSTRACT
SYNCHRONIZED
public static final SYNCHRONIZED
TRANSIENT
public static final TRANSIENT
VOLATILE
public static final VOLATILE
NATIVE
public static final NATIVE
STRICTFP
public static final STRICTFP
DEFAULT
public static final DEFAULT
Field Details
name
private final String name
The string representation of the modifier.
Method Details
values
public static io.github.sandydunlop.markista.model.Modifier[] values
valueOf
public static Modifier valueOf
toString
public String toString
Returns the string representation of this modifier.
Returns:
The string name of the modifier.
Overrides: