public enum ScalarType extends Enum<ScalarType>
Enum Constant and Description |
---|
pvBoolean
Value has type boolean.
|
pvByte
Value has type byte.
|
pvDouble
Value has type double.
|
pvFloat
value has type float.
|
pvInt
Value has type int.
|
pvLong
Value has type long.
|
pvShort
Value has type short.
|
pvString
Value has type string.
|
pvUByte
Value has type ubyte.
|
pvUInt
Value has type uint.
|
pvULong
Value has type ulong.
|
pvUShort
Value has type ushort.
|
Modifier and Type | Method and Description |
---|---|
static ScalarType |
getScalarType(String type)
Get the ScalarType for a string defining the type.
|
boolean |
isInteger()
Is this an integer (signed or unsigned).
|
boolean |
isNumeric()
Is this a Java numeric type?
|
boolean |
isPrimitive()
Is this a Java primitive type?
|
boolean |
isUInteger()
Is this an unsigned integer.
|
String |
toString() |
static ScalarType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScalarType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScalarType pvBoolean
public static final ScalarType pvByte
public static final ScalarType pvShort
public static final ScalarType pvInt
public static final ScalarType pvLong
public static final ScalarType pvUByte
public static final ScalarType pvUShort
public static final ScalarType pvUInt
public static final ScalarType pvULong
public static final ScalarType pvFloat
public static final ScalarType pvDouble
public static final ScalarType pvString
public static ScalarType[] values()
for (ScalarType c : ScalarType.values()) System.out.println(c);
public static ScalarType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean isInteger()
public boolean isUInteger()
public boolean isNumeric()
public boolean isPrimitive()
public static ScalarType getScalarType(String type)
type
- A character string defining the type.public String toString()
toString
in class Enum<ScalarType>
Copyright © 2014. All Rights Reserved.