Class CaptureVariable
java.lang.Object
org.checkerframework.framework.util.typeinference8.types.Variable
org.checkerframework.framework.util.typeinference8.types.CaptureVariable
Variables created as a part of a capture bound.
-
Field Summary
Fields inherited from class org.checkerframework.framework.util.typeinference8.types.Variable
context, id, invocation, map, typeVariable, typeVariableJava, variableBounds
-
Method Summary
Modifier and TypeMethodDescriptionReturns the constraints generated when incorporating a capture bound.boolean
Returns whether this variable was created for a capture bound.toString()
Methods inherited from class org.checkerframework.framework.util.typeinference8.types.Variable
equals, getBounds, getInstantiation, getInvocation, getJavaType, hashCode, initialBounds, restore, save
-
Method Details
-
toString
-
getWildcardConstraints
Returns the constraints generated when incorporating a capture bound. See JLS 18.3.2.- Parameters:
Ai
- the captured type argumentBi
- the bound of the type variable- Returns:
- constraints generated when incorporating a capture bound
-
isCaptureVariable
public boolean isCaptureVariable()Description copied from class:Variable
Returns whether this variable was created for a capture bound.- Overrides:
isCaptureVariable
in classVariable
- Returns:
- whether this variable was created for a capture bound
-