public class FunctionTypes extends Object
| Constructor and Description |
|---|
FunctionTypes() |
public List<JvmTypeParameter> collectAllTypeParameters(LightweightTypeReference closureType, JvmOperation operation)
public Map<JvmTypeParameter,List<LightweightBoundTypeArgument>> getFunctionTypeParameterMapping(LightweightTypeReference functionType, JvmOperation operation, ActualTypeArgumentCollector typeArgumentCollector, ITypeReferenceOwner owner)
public JvmOperation findImplementingOperation(LightweightTypeReference functionType)
protected JvmOperation findImplementingOperation(List<JvmType> rawTypes)
public boolean isFunctionAndProcedureAvailable(ITypeReferenceOwner owner)
public FunctionTypeReference createRawFunctionTypeRef(ITypeReferenceOwner owner, org.eclipse.emf.ecore.EObject context, int parameterCount, boolean procedure)
public FunctionTypeReference createFunctionTypeRef(ITypeReferenceOwner owner, LightweightTypeReference functionType, List<LightweightTypeReference> parameterTypes, LightweightTypeReference returnType)
public FunctionTypeKind getFunctionTypeKind(ParameterizedTypeReference typeReference)
protected FunctionTypeReference tryConvertToFunctionTypeReference(ParameterizedTypeReference typeReference, boolean rawType)
FunctionTypeReference if the referenced type is a SAM type.
Returns null if this reference does not point to a valid function type.
This is the externalized and thereby
exchangeable implementation of ParameterizedTypeReference.tryConvertToFunctionTypeReference(boolean).public FunctionTypeReference getAsFunctionTypeReference(ParameterizedTypeReference typeReference)
FunctionTypeReference if this reference
points to a function or procedure.
Otherwise returns null. This is the externalized and thereby
exchangeable implementation of ParameterizedTypeReference.getAsFunctionTypeReference().protected FunctionTypeReference getAsFunctionOrNull(ParameterizedTypeReference typeReference)
protected FunctionTypeReference getAsProcedureOrNull(ParameterizedTypeReference typeReference)
protected boolean tryAssignTypeArguments(List<LightweightTypeReference> typeArguments, FunctionTypeReference result)
Copyright © 2015. All Rights Reserved.