public class AbstractTypeComputer
extends java.lang.Object
XbaseTypeComputer or the CollectionLiteralsTypeComputer.
Offers access to the common services along with a few useful methods that allow to obtain type references
for classes.| Constructor and Description |
|---|
AbstractTypeComputer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deferredBindTypeArgument(LightweightTypeReference declared,
LightweightTypeReference actual,
ITypeComputationState state) |
protected <Type extends org.eclipse.xtext.common.types.JvmType> |
findDeclaredType(java.lang.Class<?> clazz,
ITypeComputationState state) |
protected <Type extends org.eclipse.xtext.common.types.JvmType> |
findDeclaredType(java.lang.Class<?> clazz,
ITypeReferenceOwner owner) |
protected <Type extends org.eclipse.xtext.common.types.JvmType> |
findDeclaredType(java.lang.String clazzName,
ITypeComputationState state) |
protected <Type extends org.eclipse.xtext.common.types.JvmType> |
findDeclaredType(java.lang.String clazzName,
ITypeReferenceOwner owner) |
protected LightweightTypeReference |
getCommonSuperType(java.util.List<LightweightTypeReference> types,
ITypeComputationState state)
Computes the common super type for the given list of types.
|
protected LightweightTypeReference |
getCommonSuperType(java.util.List<LightweightTypeReference> types,
ITypeReferenceOwner owner)
Computes the common super type for the given list of types.
|
protected LightweightTypeReference |
getPrimitiveVoid(ITypeComputationState state) |
protected LightweightTypeReference |
getRawTypeForName(java.lang.Class<?> clazz,
ITypeComputationState state) |
protected LightweightTypeReference |
getRawTypeForName(java.lang.Class<?> clazz,
ITypeReferenceOwner owner)
Deprecated.
use
ITypeReferenceOwner.newReferenceTo(Class) instead. |
protected LightweightTypeReference |
getRawTypeForName(java.lang.String clazzName,
ITypeComputationState state) |
protected LightweightTypeReference |
getTypeForName(java.lang.Class<?> clazz,
ITypeComputationState state) |
protected LightweightTypeReference |
getTypeForName(java.lang.String clazzName,
ITypeComputationState state) |
protected LightweightTypeReference getTypeForName(java.lang.Class<?> clazz, ITypeComputationState state)
protected LightweightTypeReference getTypeForName(java.lang.String clazzName, ITypeComputationState state)
findDeclaredType(String, ITypeReferenceOwner)protected LightweightTypeReference getRawTypeForName(java.lang.Class<?> clazz, ITypeComputationState state)
protected LightweightTypeReference getRawTypeForName(java.lang.String clazzName, ITypeComputationState state)
@Deprecated protected LightweightTypeReference getRawTypeForName(java.lang.Class<?> clazz, ITypeReferenceOwner owner)
ITypeReferenceOwner.newReferenceTo(Class) instead.protected <Type extends org.eclipse.xtext.common.types.JvmType> Type findDeclaredType(java.lang.Class<?> clazz,
ITypeComputationState state)
protected <Type extends org.eclipse.xtext.common.types.JvmType> Type findDeclaredType(java.lang.String clazzName,
ITypeComputationState state)
findDeclaredType(String, ITypeReferenceOwner)protected <Type extends org.eclipse.xtext.common.types.JvmType> Type findDeclaredType(java.lang.Class<?> clazz,
ITypeReferenceOwner owner)
protected <Type extends org.eclipse.xtext.common.types.JvmType> Type findDeclaredType(java.lang.String clazzName,
ITypeReferenceOwner owner)
clazzName - FQN of the type to find. see IJvmTypeProvider.findTypeByName(String).owner - the reference ownerprotected LightweightTypeReference getPrimitiveVoid(ITypeComputationState state)
protected LightweightTypeReference getCommonSuperType(java.util.List<LightweightTypeReference> types, ITypeComputationState state)
protected LightweightTypeReference getCommonSuperType(java.util.List<LightweightTypeReference> types, ITypeReferenceOwner owner)
protected void deferredBindTypeArgument(LightweightTypeReference declared, LightweightTypeReference actual, ITypeComputationState state)