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.


Nested Class Summary
static class PrimitiveType.Kind
          The kind of the primitive type.
 
Field Summary
static PrimitiveType.Kind BOOLEAN
           
static PrimitiveType.Kind BYTE
           
static PrimitiveType.Kind CHAR
           
static PrimitiveType.Kind DOUBLE
           
static PrimitiveType.Kind FLOAT
           
static PrimitiveType.Kind INT
           
static PrimitiveType.Kind LONG
           
static PrimitiveType.Kind SHORT
           
static PrimitiveType.Kind VOID
           
 
Method Summary
 PrimitiveType.Kind kind()
          The kind of primitive.
 java.lang.String wrapperTypeString(TypeSystem ts)
          A string representing the type used to box this primitive.
 
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.types.Qualifier
isPackage, isType, toPackage, toType
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, isCanonical, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 
Methods inherited from interface polyglot.types.Named
fullName, name
 

Field Detail

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
Method Detail

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.