Class InferenceVariableType
java.lang.Object
com.github.javaparser.resolution.logic.InferenceVariableType
- All Implemented Interfaces:
ResolvedType
An element using during type inference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ResolvedTypeParameterDeclarationprivate Set<ResolvedType> private intprivate Set<ResolvedType> private TypeSolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Set<ResolvedType> concreteEquivalentTypesAlsoIndirectly(Set<InferenceVariableType> considered, InferenceVariableType inferenceVariableType) describe()booleaninthashCode()private booleanbooleanisAssignableBy(ResolvedType other) This method checks if ThisType t = new OtherType() would compile.voidvoidsetCorrespondingTp(ResolvedTypeParameterDeclaration correspondingTp) toString()Methods inherited from interface ResolvedType
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, erasure, isArray, isConstraint, isInferenceVariable, isNull, isNumericType, isPrimitive, isReference, isReferenceType, isTypeVariable, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariables, solveGenericTypes, toDescriptor
-
Field Details
-
id
private int id -
correspondingTp
-
equivalentTypes
-
typeSolver
-
superTypes
-
-
Constructor Details
-
InferenceVariableType
-
-
Method Details
-
toString
-
setCorrespondingTp
-
registerEquivalentType
-
equals
-
hashCode
-
describe
- Specified by:
describein interfaceResolvedType
-
isAssignableBy
Description copied from interface:ResolvedTypeThis method checks if ThisType t = new OtherType() would compile.- Specified by:
isAssignableByin interfaceResolvedType
-
concreteEquivalentTypesAlsoIndirectly
private Set<ResolvedType> concreteEquivalentTypesAlsoIndirectly(Set<InferenceVariableType> considered, InferenceVariableType inferenceVariableType) -
equivalentType
-
hasInferenceVariables
-