Class CapturesBound
- java.lang.Object
-
- com.github.javaparser.symbolsolver.resolution.typeinference.Bound
-
- com.github.javaparser.symbolsolver.resolution.typeinference.bounds.CapturesBound
-
public class CapturesBound extends Bound
Capture(G<A1, ..., An>): The variables α1, ..., αn represent the result of capture conversion (§5.1.10) applied to G<A1, ..., An> (where A1, ..., An may be types or wildcards and may mention inference variables).- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description CapturesBound(List<InferenceVariable> inferenceVariables, List<ResolvedType> typesOrWildcards)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<InferenceVariable>
getInferenceVariables()
List<ResolvedType>
getTypesOrWildcards()
int
hashCode()
boolean
isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
A bound is satisfied by an inference variable substitution if, after applying the substitution, the assertion is true.String
toString()
Set<InferenceVariable>
usedInferenceVariables()
-
Methods inherited from class com.github.javaparser.symbolsolver.resolution.typeinference.Bound
isADependency, isAnInstantiation, isProperLowerBound, isProperUpperBound
-
-
-
-
Constructor Detail
-
CapturesBound
public CapturesBound(List<InferenceVariable> inferenceVariables, List<ResolvedType> typesOrWildcards)
-
-
Method Detail
-
isSatisfied
public boolean isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
Description copied from class:Bound
A bound is satisfied by an inference variable substitution if, after applying the substitution, the assertion is true.- Specified by:
isSatisfied
in classBound
-
usedInferenceVariables
public Set<InferenceVariable> usedInferenceVariables()
- Specified by:
usedInferenceVariables
in classBound
-
getInferenceVariables
public List<InferenceVariable> getInferenceVariables()
-
getTypesOrWildcards
public List<ResolvedType> getTypesOrWildcards()
-
-