Class ThrowsBound
java.lang.Object
com.github.javaparser.symbolsolver.resolution.typeinference.Bound
com.github.javaparser.symbolsolver.resolution.typeinference.bounds.ThrowsBound
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution) A bound is satisfied by an inference variable substitution if, after applying the substitution, the assertion is true.booleanisThrowsBoundOn(InferenceVariable inferenceVariable) toString()Other methodsMethods inherited from class Bound
isADependency, isAnInstantiation, isProperLowerBound, isProperUpperBound
-
Field Details
-
inferenceVariable
-
-
Constructor Details
-
ThrowsBound
-
-
Method Details
-
equals
-
toString
-
hashCode
-
usedInferenceVariables
Description copied from class:BoundOther methods- Specified by:
usedInferenceVariablesin classBound
-
isSatisfied
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
-