- java.lang.Object
-
- java.lang.Enum<AST.Multiplicity>
-
- org.mal_lang.lib.AST.Multiplicity
-
- All Implemented Interfaces:
Serializable
,Comparable<AST.Multiplicity>
- Enclosing class:
- AST
public static enum AST.Multiplicity extends Enum<AST.Multiplicity>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ONE
ONE_OR_MORE
ZERO_OR_MORE
ZERO_OR_ONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static AST.Multiplicity
valueOf(String name)
Returns the enum constant of this type with the specified name.static AST.Multiplicity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZERO_OR_ONE
public static final AST.Multiplicity ZERO_OR_ONE
-
ZERO_OR_MORE
public static final AST.Multiplicity ZERO_OR_MORE
-
ONE
public static final AST.Multiplicity ONE
-
ONE_OR_MORE
public static final AST.Multiplicity ONE_OR_MORE
-
-
Method Detail
-
values
public static AST.Multiplicity[] 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 (AST.Multiplicity c : AST.Multiplicity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AST.Multiplicity 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<AST.Multiplicity>
-
-