Class ThrowsBound
- java.lang.Object
-
- com.github.javaparser.symbolsolver.resolution.typeinference.Bound
-
- com.github.javaparser.symbolsolver.resolution.typeinference.bounds.ThrowsBound
-
public class ThrowsBound extends Bound
The inference variable α appears in a throws clause. A bound of the form throws α is purely informational: it directs resolution to optimize the instantiation of α so that, if possible, it is not a checked exception type.- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description ThrowsBound(InferenceVariable inferenceVariable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()booleanisSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)A bound is satisfied by an inference variable substitution if, after applying the substitution, the assertion is true.booleanisThrowsBoundOn(InferenceVariable inferenceVariable)StringtoString()Set<InferenceVariable>usedInferenceVariables()-
Methods inherited from class com.github.javaparser.symbolsolver.resolution.typeinference.Bound
isADependency, isAnInstantiation, isProperLowerBound, isProperUpperBound
-
-
-
-
Constructor Detail
-
ThrowsBound
public ThrowsBound(InferenceVariable inferenceVariable)
-
-
Method Detail
-
usedInferenceVariables
public Set<InferenceVariable> usedInferenceVariables()
- Specified by:
usedInferenceVariablesin classBound
-
isSatisfied
public boolean isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
Description copied from class:BoundA bound is satisfied by an inference variable substitution if, after applying the substitution, the assertion is true.- Specified by:
isSatisfiedin classBound
-
isThrowsBoundOn
public boolean isThrowsBoundOn(InferenceVariable inferenceVariable)
-
-