Class TypeCompatibleWithType
- java.lang.Object
-
- com.github.javaparser.symbolsolver.resolution.typeinference.ConstraintFormula
-
- com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas.TypeCompatibleWithType
-
public class TypeCompatibleWithType extends ConstraintFormula
A type S is compatible in a loose invocation context with type T
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.javaparser.symbolsolver.resolution.typeinference.ConstraintFormula
ConstraintFormula.ReductionResult
-
-
Field Summary
Fields Modifier and Type Field Description private ResolvedTypesprivate ResolvedTypetprivate TypeSolvertypeSolver
-
Constructor Summary
Constructors Constructor Description TypeCompatibleWithType(TypeSolver typeSolver, ResolvedType s, ResolvedType t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()ConstraintFormula.ReductionResultreduce(BoundSet currentBoundSet)A formula is reduced to one or both of: i) A bound or bound set, which is to be incorporated with the "current" bound set.java.lang.StringtoString()
-
-
-
Field Detail
-
s
private ResolvedType s
-
t
private ResolvedType t
-
typeSolver
private TypeSolver typeSolver
-
-
Constructor Detail
-
TypeCompatibleWithType
public TypeCompatibleWithType(TypeSolver typeSolver, ResolvedType s, ResolvedType t)
-
-
Method Detail
-
reduce
public ConstraintFormula.ReductionResult reduce(BoundSet currentBoundSet)
Description copied from class:ConstraintFormulaA formula is reduced to one or both of: i) A bound or bound set, which is to be incorporated with the "current" bound set. Initially, the current bound set is empty. ii) Further constraint formulas, which are to be reduced recursively.- Specified by:
reducein classConstraintFormula
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-