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 int
The index of the bound among all bounds on the type parameter.final int
The 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 TypeMethodDescriptionboolean
ThisBoundLocation
equalso
if and only ifo
is another nonnullBoundLocation
andthis
ando
have equalparamIndex
andboundIndex
.boolean
Returns true if thisBoundLocation
equalso
; a slightly faster variant ofequals(Object)
for when the argument is statically known to be another nonnullBoundLocation
.int
hashCode()
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 thisBoundLocation
equalso
; a slightly faster variant ofequals(Object)
for when the argument is statically known to be another nonnullBoundLocation
. -
equals
ThisBoundLocation
equalso
if and only ifo
is another nonnullBoundLocation
andthis
ando
have equalparamIndex
andboundIndex
. -
hashCode
public int hashCode() -
toString
-