Class BoundLocation

java.lang.Object
org.checkerframework.afu.scenelib.el.BoundLocation

public final class BoundLocation extends Object
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 Details

    • paramIndex

      public final int paramIndex
      The index of the parameter to which the bound applies among all type parameters of the class or method.
    • boundIndex

      public final int boundIndex
      The 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 new BoundLocation; the arguments are assigned to the fields of the same names.
  • Method Details