Enum ParameterKind
- All Implemented Interfaces:
Serializable,Comparable<ParameterKind>,java.lang.constant.Constable,org.eclipse.emf.common.util.Enumerator
public enum ParameterKind extends Enum<ParameterKind> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Parameter Kind',
and utility methods for working with them.
- See Also:
CodePackage.getParameterKind()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description BY_NAMEThe 'By Name' literal object.BY_REFERENCEThe 'By Reference' literal object.BY_VALUEThe 'By Value' literal object.CATCHALLThe 'Catchall' literal object.EXCEPTIONThe 'Exception' literal object.RETURNThe 'Return' literal object.THROWSThe 'Throws' literal object.UNKNOWNThe 'Unknown' literal object.VARIADICThe 'Variadic' literal object. -
Field Summary
Fields Modifier and Type Field Description static intBY_NAME_VALUEThe 'By Name' literal value.static intBY_REFERENCE_VALUEThe 'By Reference' literal value.static intBY_VALUE_VALUEThe 'By Value' literal value.static intCATCHALL_VALUEThe 'Catchall' literal value.static intEXCEPTION_VALUEThe 'Exception' literal value.static intRETURN_VALUEThe 'Return' literal value.static intTHROWS_VALUEThe 'Throws' literal value.static intUNKNOWN_VALUEThe 'Unknown' literal value.static List<ParameterKind>VALUESA public read-only list of all the 'Parameter Kind' enumerators.static intVARIADIC_VALUEThe 'Variadic' literal value. -
Method Summary
Modifier and Type Method Description static ParameterKindget(int value)Returns the 'Parameter Kind' literal with the specified integer value.static ParameterKindget(String literal)Returns the 'Parameter Kind' literal with the specified literal value.static ParameterKindgetByName(String name)Returns the 'Parameter Kind' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static ParameterKindvalueOf(String name)Returns the enum constant of this type with the specified name.static ParameterKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BY_VALUE
The 'By Value' literal object.- See Also:
BY_VALUE_VALUE
-
BY_NAME
The 'By Name' literal object.- See Also:
BY_NAME_VALUE
-
BY_REFERENCE
The 'By Reference' literal object.- See Also:
BY_REFERENCE_VALUE
-
VARIADIC
The 'Variadic' literal object.- See Also:
VARIADIC_VALUE
-
RETURN
The 'Return' literal object.- See Also:
RETURN_VALUE
-
THROWS
The 'Throws' literal object.- See Also:
THROWS_VALUE
-
EXCEPTION
The 'Exception' literal object.- See Also:
EXCEPTION_VALUE
-
CATCHALL
The 'Catchall' literal object.- See Also:
CATCHALL_VALUE
-
UNKNOWN
The 'Unknown' literal object.- See Also:
UNKNOWN_VALUE
-
-
Field Details
-
BY_VALUE_VALUE
public static final int BY_VALUE_VALUEThe 'By Value' literal value.- See Also:
BY_VALUE, Constant Field Values
-
BY_NAME_VALUE
public static final int BY_NAME_VALUEThe 'By Name' literal value.- See Also:
BY_NAME, Constant Field Values
-
BY_REFERENCE_VALUE
public static final int BY_REFERENCE_VALUEThe 'By Reference' literal value.- See Also:
BY_REFERENCE, Constant Field Values
-
VARIADIC_VALUE
public static final int VARIADIC_VALUEThe 'Variadic' literal value.- See Also:
VARIADIC, Constant Field Values
-
RETURN_VALUE
public static final int RETURN_VALUEThe 'Return' literal value.- See Also:
RETURN, Constant Field Values
-
THROWS_VALUE
public static final int THROWS_VALUEThe 'Throws' literal value.- See Also:
THROWS, Constant Field Values
-
EXCEPTION_VALUE
public static final int EXCEPTION_VALUEThe 'Exception' literal value.- See Also:
EXCEPTION, Constant Field Values
-
CATCHALL_VALUE
public static final int CATCHALL_VALUEThe 'Catchall' literal value.- See Also:
CATCHALL, Constant Field Values
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe 'Unknown' literal value.- See Also:
UNKNOWN, Constant Field Values
-
VALUES
A public read-only list of all the 'Parameter Kind' enumerators.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
Returns the 'Parameter Kind' literal with the specified literal value.- Parameters:
literal- the literal.- Returns:
- the matching enumerator or
null.
-
getByName
Returns the 'Parameter Kind' literal with the specified name.- Parameters:
name- the name.- Returns:
- the matching enumerator or
null.
-
get
Returns the 'Parameter Kind' literal with the specified integer value.- Parameters:
value- the integer value.- Returns:
- the matching enumerator or
null.
-
getValue
public int getValue()- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
- Specified by:
getNamein interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toStringin classEnum<ParameterKind>
-