Enum Class GoKind
- All Implemented Interfaces:
Serializable
,Comparable<GoKind>
,Constable
Enum defining the various golang primitive types
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic GoKind
parseByte
(int b) Parses the byte value read from the runtime._type kind field.static GoKind
Returns the enum constant of this class with the specified name.static GoKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
invalid
-
Bool
-
Int
-
Int8
-
Int16
-
Int32
-
Int64
-
Uint
-
Uint8
-
Uint16
-
Uint32
-
Uint64
-
Uintptr
-
Float32
-
Float64
-
Complex64
-
Complex128
-
Array
-
Chan
-
Func
-
Interface
-
Map
-
Pointer
-
Slice
-
String
-
Struct
-
UnsafePointer
-
-
Field Details
-
KIND_MASK
public static final int KIND_MASK- See Also:
-
GC_PROG
public static final int GC_PROG- See Also:
-
DIRECT_IFACE
public static final int DIRECT_IFACE- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
parseByte
Parses the byte value read from the runtime._type kind field.
-