Package io.virtdata.ast
Enum ArgType.TypeName
- java.lang.Object
-
- java.lang.Enum<ArgType.TypeName>
-
- io.virtdata.ast.ArgType.TypeName
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ArgType.TypeName>,java.lang.constant.Constable
- Enclosing interface:
- ArgType
public static enum ArgType.TypeName extends java.lang.Enum<ArgType.TypeName>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DoubleArgFloatArgFunctionCallIntegerArgLongArgRefArgStringArg
-
Method Summary
Modifier and Type Method Description java.lang.Class<?>getTypeClass()java.lang.Class<?>getValueClass()static ArgType.TypeNamevalueOf(ArgType argType)Returns the enum constant of this type with the specified name.static ArgType.TypeNamevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ArgType.TypeName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RefArg
public static final ArgType.TypeName RefArg
-
FunctionCall
public static final ArgType.TypeName FunctionCall
-
StringArg
public static final ArgType.TypeName StringArg
-
FloatArg
public static final ArgType.TypeName FloatArg
-
DoubleArg
public static final ArgType.TypeName DoubleArg
-
LongArg
public static final ArgType.TypeName LongArg
-
IntegerArg
public static final ArgType.TypeName IntegerArg
-
-
Method Detail
-
values
public static ArgType.TypeName[] 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
public static ArgType.TypeName valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getTypeClass
public java.lang.Class<?> getTypeClass()
-
getValueClass
public java.lang.Class<?> getValueClass()
-
valueOf
public static ArgType.TypeName valueOf(ArgType argType)
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:
argType- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-