JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Field Summary
Fields
static final int
static final int
static final int
Method Summary
All Methods Static Methods Concrete Methods
Parses the byte value read from the runtime._type kind field.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
invalid
public static final GoKind invalid
Bool
public static final GoKind Bool
Int
public static final GoKind Int
Int8
public static final GoKind Int8
Int16
public static final GoKind Int16
Int32
public static final GoKind Int32
Int64
public static final GoKind Int64
Uint
public static final GoKind Uint
Uint8
public static final GoKind Uint8
Uint16
public static final GoKind Uint16
Uint32
public static final GoKind Uint32
Uint64
public static final GoKind Uint64
Uintptr
public static final GoKind Uintptr
Float32
public static final GoKind Float32
Float64
public static final GoKind Float64
Complex64
public static final GoKind Complex64
Complex128
public static final GoKind Complex128
Array
public static final GoKind Array
Chan
public static final GoKind Chan
Func
public static final GoKind Func
Interface
public static final GoKind Interface
Map
public static final GoKind Map
Pointer
public static final GoKind Pointer
Slice
public static final GoKind Slice
String
public static final GoKind String
Struct
public static final GoKind Struct
UnsafePointer
public static final GoKind 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
public static GoKind [] 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 name
NullPointerException
- if the argument is null
parseByte
public static GoKind parseByte (int b)
Parses the byte value read from the runtime._type kind field.
Parameters:
b
- byte value
Returns:
GoKind
enum, or invalid
if bad value