org.eclipse.xtext.common.types.util
Class Primitives

java.lang.Object
  extended by org.eclipse.xtext.common.types.util.Primitives

public class Primitives
extends java.lang.Object

Author:
Sven Efftinge - Initial contribution and API

Nested Class Summary
static class Primitives.Primitive
           
 
Constructor Summary
Primitives()
           
 
Method Summary
 JvmTypeReference asPrimitiveIfWrapperType(JvmTypeReference type)
           
 JvmTypeReference asWrapperTypeIfPrimitive(JvmTypeReference primitive)
           
protected  JvmType getType(java.lang.Class<?> class1, org.eclipse.emf.common.notify.Notifier context)
           
 JvmType getWrapperType(JvmPrimitiveType primitive)
           
 boolean isPrimitive(JvmTypeReference type)
           
 boolean isWrapperType(JvmTypeReference type)
           
 Primitives.Primitive primitiveKind(JvmPrimitiveType primitiveType)
           
 void setTypeProviderFactory(IJvmTypeProvider.Factory typeProviderFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Primitives

public Primitives()
Method Detail

setTypeProviderFactory

public void setTypeProviderFactory(IJvmTypeProvider.Factory typeProviderFactory)

primitiveKind

public Primitives.Primitive primitiveKind(JvmPrimitiveType primitiveType)

asWrapperTypeIfPrimitive

public JvmTypeReference asWrapperTypeIfPrimitive(JvmTypeReference primitive)

getWrapperType

public JvmType getWrapperType(JvmPrimitiveType primitive)

getType

protected JvmType getType(java.lang.Class<?> class1,
                          org.eclipse.emf.common.notify.Notifier context)

isPrimitive

public boolean isPrimitive(JvmTypeReference type)

isWrapperType

public boolean isWrapperType(JvmTypeReference type)

asPrimitiveIfWrapperType

public JvmTypeReference asPrimitiveIfWrapperType(JvmTypeReference type)