@Deprecated
public class TypeConformanceComputer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
TypeConformanceComputer.ArgumentResolver
Deprecated.
|
protected static class |
TypeConformanceComputer.MaxDistanceRawTypeAcceptor
Deprecated.
Populates a
Multiset with the maximum number of necessary steps
from a given type to its super types. |
Modifier and Type | Field and Description |
---|---|
protected TypesFactory |
factory
Deprecated.
|
protected AbstractConformanceVisitor<JvmTypeReference> |
leftDispatcher
Deprecated.
|
protected Primitives |
primitives
Deprecated.
|
protected SuperTypeCollector |
superTypeCollector
Deprecated.
|
protected TypeArgumentContextProvider |
typeArgumentContextProvider
Deprecated.
|
protected TypeReferences |
typeReferences
Deprecated.
|
Constructor and Description |
---|
TypeConformanceComputer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
allTypesAreArrays(java.util.List<JvmTypeReference> types)
Deprecated.
|
protected boolean |
conformsToAll(JvmTypeReference type,
java.util.List<JvmTypeReference> types)
Deprecated.
|
protected boolean |
containsPrimitiveOrAnyReferences(java.util.List<JvmTypeReference> types)
Deprecated.
|
protected TypeConformanceStrategySelector |
createStrategySelector()
Deprecated.
|
protected void |
cumulateDistance(java.util.List<JvmTypeReference> references,
com.google.common.collect.Multimap<JvmType,JvmTypeReference> all,
com.google.common.collect.Multiset<JvmType> cumulatedDistance)
Deprecated.
Keeps the cumulated distance for all the common raw super types of the given references.
|
protected JvmType |
findContext(JvmTypeReference firstType)
Deprecated.
|
JvmTypeReference |
getCommonParameterSuperType(java.util.List<JvmTypeReference> types,
java.util.List<JvmTypeReference> initiallyRequested)
Deprecated.
|
JvmTypeReference |
getCommonSuperType(java.util.List<JvmTypeReference> types)
Deprecated.
Compute the common super type for the given types.
|
protected java.util.List<JvmTypeReference> |
getComponentTypes(java.util.List<JvmTypeReference> types)
Deprecated.
|
protected JvmTypeReference |
getFirstForRawType(com.google.common.collect.Multimap<JvmType,JvmTypeReference> all,
JvmType rawType)
Deprecated.
|
protected Primitives |
getPrimitives()
Deprecated.
|
protected SuperTypeCollector |
getSuperTypeCollector()
Deprecated.
|
protected TypeArgumentContextProvider |
getTypeArgumentContextProvider()
Deprecated.
|
protected JvmTypeReference |
getTypeParametersForSupertype(com.google.common.collect.Multimap<JvmType,JvmTypeReference> all,
JvmType rawType,
java.util.List<JvmTypeReference> initiallyRequested)
Deprecated.
|
protected TypeReferences |
getTypeReferences()
Deprecated.
|
protected void |
initializeDistance(JvmTypeReference firstType,
com.google.common.collect.Multimap<JvmType,JvmTypeReference> all,
com.google.common.collect.Multiset<JvmType> cumulatedDistance)
Deprecated.
|
protected void |
inplaceSortByDistanceAndName(java.util.List<com.google.common.collect.Multiset.Entry<JvmType>> candidates)
Deprecated.
|
protected boolean |
isClass(JvmType type)
Deprecated.
|
boolean |
isConformant(JvmTypeReference left,
JvmTypeReference right)
Deprecated.
|
boolean |
isConformant(JvmTypeReference left,
JvmTypeReference right,
boolean ignoreGenerics)
Deprecated.
|
TypeConformanceResult |
isConformant(JvmTypeReference left,
JvmTypeReference right,
TypeConformanceComputationArgument flags)
Deprecated.
|
protected boolean |
isPrimitiveType(JvmTypeReference reference)
Deprecated.
|
protected boolean |
isPrimitiveVoid(JvmTypeReference reference)
Deprecated.
|
protected java.util.List<JvmTypeReference> |
replacePrimitivesAndRemoveAnyReferences(java.util.List<JvmTypeReference> types)
Deprecated.
|
void |
setFactory(TypesFactory factory)
Deprecated.
|
void |
setPrimitives(Primitives primitives)
Deprecated.
|
void |
setSuperTypeCollector(SuperTypeCollector superTypeCollector)
Deprecated.
|
void |
setTypeArgumentContextProvider(TypeArgumentContextProvider typeArgumentContextProvider)
Deprecated.
|
void |
setTypeReferences(TypeReferences typeReferences)
Deprecated.
|
protected AbstractConformanceVisitor<JvmTypeReference> leftDispatcher
@Inject protected SuperTypeCollector superTypeCollector
@Inject protected TypesFactory factory
@Inject protected TypeArgumentContextProvider typeArgumentContextProvider
@Inject protected Primitives primitives
@Inject protected TypeReferences typeReferences
public void setSuperTypeCollector(SuperTypeCollector superTypeCollector)
protected TypeConformanceStrategySelector createStrategySelector()
public void setPrimitives(Primitives primitives)
public void setFactory(TypesFactory factory)
public void setTypeArgumentContextProvider(TypeArgumentContextProvider typeArgumentContextProvider)
public void setTypeReferences(TypeReferences typeReferences)
public boolean isConformant(JvmTypeReference left, JvmTypeReference right)
public boolean isConformant(JvmTypeReference left, JvmTypeReference right, boolean ignoreGenerics)
public TypeConformanceResult isConformant(JvmTypeReference left, JvmTypeReference right, TypeConformanceComputationArgument flags)
protected boolean isPrimitiveVoid(JvmTypeReference reference)
public JvmTypeReference getCommonSuperType(java.util.List<JvmTypeReference> types)
null
in case one of the types is primitive void but not all
of them are.protected boolean isClass(JvmType type)
protected JvmType findContext(JvmTypeReference firstType)
protected java.util.List<JvmTypeReference> replacePrimitivesAndRemoveAnyReferences(java.util.List<JvmTypeReference> types)
protected boolean containsPrimitiveOrAnyReferences(java.util.List<JvmTypeReference> types)
protected java.util.List<JvmTypeReference> getComponentTypes(java.util.List<JvmTypeReference> types)
protected boolean allTypesAreArrays(java.util.List<JvmTypeReference> types)
protected boolean isPrimitiveType(JvmTypeReference reference)
protected JvmTypeReference getTypeParametersForSupertype(com.google.common.collect.Multimap<JvmType,JvmTypeReference> all, JvmType rawType, java.util.List<JvmTypeReference> initiallyRequested)
protected JvmTypeReference getFirstForRawType(com.google.common.collect.Multimap<JvmType,JvmTypeReference> all, JvmType rawType)
protected void initializeDistance(JvmTypeReference firstType, com.google.common.collect.Multimap<JvmType,JvmTypeReference> all, com.google.common.collect.Multiset<JvmType> cumulatedDistance)
protected void cumulateDistance(java.util.List<JvmTypeReference> references, com.google.common.collect.Multimap<JvmType,JvmTypeReference> all, com.google.common.collect.Multiset<JvmType> cumulatedDistance)
protected void inplaceSortByDistanceAndName(java.util.List<com.google.common.collect.Multiset.Entry<JvmType>> candidates)
public JvmTypeReference getCommonParameterSuperType(java.util.List<JvmTypeReference> types, java.util.List<JvmTypeReference> initiallyRequested)
protected boolean conformsToAll(JvmTypeReference type, java.util.List<JvmTypeReference> types)
protected TypeReferences getTypeReferences()
protected SuperTypeCollector getSuperTypeCollector()
protected Primitives getPrimitives()
protected TypeArgumentContextProvider getTypeArgumentContextProvider()