polyglot.types
Interface PrimitiveType
- All Superinterfaces:
- java.lang.Cloneable, Copy, Named, Qualifier, java.io.Serializable, Type, TypeObject
- All Known Implementing Classes:
- PaoPrimitiveType_c, PrimitiveType_c
public interface PrimitiveType
- extends Type, Named
A PrimitiveType
represents a type which may not be directly
coerced to java.lang.Object (under the standard Java type system).
This class should never be instantiated directly. Instead, you should
use the TypeSystem.get*
methods.
Methods inherited from interface polyglot.types.Type |
arrayOf, arrayOf, descendsFrom, descendsFromImpl, isArray, isBoolean, isByte, isCastValid, isCastValidImpl, isChar, isClass, isComparable, isDouble, isFloat, isImplicitCastValid, isImplicitCastValidImpl, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPrimitive, isReference, isShort, isSubtype, isSubtypeImpl, isThrowable, isUncheckedException, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toClass, toNull, toPrimitive, toReference, toString, translate |
Methods inherited from interface polyglot.util.Copy |
copy |
VOID
static final PrimitiveType.Kind VOID
BOOLEAN
static final PrimitiveType.Kind BOOLEAN
BYTE
static final PrimitiveType.Kind BYTE
CHAR
static final PrimitiveType.Kind CHAR
SHORT
static final PrimitiveType.Kind SHORT
INT
static final PrimitiveType.Kind INT
LONG
static final PrimitiveType.Kind LONG
FLOAT
static final PrimitiveType.Kind FLOAT
DOUBLE
static final PrimitiveType.Kind DOUBLE
kind
PrimitiveType.Kind kind()
- The kind of primitive.
wrapperTypeString
java.lang.String wrapperTypeString(TypeSystem ts)
- A string representing the type used to box this primitive.