Package eu.simuline.relana.model
Enum CClass.SClassModifier
- java.lang.Object
-
- java.lang.Enum<CClass.SClassModifier>
-
- eu.simuline.relana.model.CClass.SClassModifier
-
- All Implemented Interfaces:
Serializable
,Comparable<CClass.SClassModifier>
- Enclosing class:
- CClass
public static enum CClass.SClassModifier extends Enum<CClass.SClassModifier>
Enumerates the class modifier for anSClass
: input and output.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static Map<String,CClass.SClassModifier>
NAME2MOD
-
Constructor Summary
Constructors Modifier Constructor Description private
SClassModifier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CClass.SClassModifier
get(String name)
Gets the class modifier with the given name.static CClass.SClassModifier
valueOf(String name)
Returns the enum constant of this type with the specified name.static CClass.SClassModifier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INPUT
public static final CClass.SClassModifier INPUT
-
OUTPUT
public static final CClass.SClassModifier OUTPUT
-
-
Field Detail
-
NAME2MOD
static final Map<String,CClass.SClassModifier> NAME2MOD
-
-
Method Detail
-
values
public static CClass.SClassModifier[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CClass.SClassModifier c : CClass.SClassModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CClass.SClassModifier valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
public static CClass.SClassModifier get(String name)
Gets the class modifier with the given name.- Parameters:
name
- one of the namesinput
,output
.- Throws:
IllegalArgumentException
- if the modifier is unknown.
-
-