Class BoundLocation
java.lang.Object
org.checkerframework.afu.scenelib.el.BoundLocation
A
BoundLocation holds location information for a bound of a type parameter of a class or
method: parameter index and bound index. It also handles type parameters themselves (not just the
bound part). It would be better named "TypeParameterLocation", or the two uses could be separated
out.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe index of the bound among all bounds on the type parameter.final intThe index of the parameter to which the bound applies among all type parameters of the class or method. -
Constructor Summary
ConstructorsConstructorDescriptionBoundLocation(int paramIndex, int boundIndex) Constructs a newBoundLocation; the arguments are assigned to the fields of the same names. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThisBoundLocationequalsoif and only ifois another nonnullBoundLocationandthisandohave equalparamIndexandboundIndex.booleanReturns true if thisBoundLocationequalso; a slightly faster variant ofequals(Object)for when the argument is statically known to be another nonnullBoundLocation.inthashCode()toString()
-
Field Details
-
paramIndex
public final int paramIndexThe index of the parameter to which the bound applies among all type parameters of the class or method. -
boundIndex
public final int boundIndexThe index of the bound among all bounds on the type parameter. -1 if for the type parameter itself.
-
-
Constructor Details
-
BoundLocation
public BoundLocation(int paramIndex, int boundIndex) Constructs a newBoundLocation; the arguments are assigned to the fields of the same names.
-
-
Method Details
-
equals
Returns true if thisBoundLocationequalso; a slightly faster variant ofequals(Object)for when the argument is statically known to be another nonnullBoundLocation. -
equals
ThisBoundLocationequalsoif and only ifois another nonnullBoundLocationandthisandohave equalparamIndexandboundIndex. -
hashCode
public int hashCode() -
toString
-