public static interface Location.Handle
Location.Handle
is a reference to a location. The point of a location
handle is to be able to create them cheaply, and then resolve them into
actual locations later (if needed). This makes it possible to for example
delay looking up line numbers, for locations that are offset based.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getClientData()
Returns the client data associated with this location - an optional field
which can be used by the creator of the
Location to store
temporary state associated with the location. |
Location |
resolve()
Compute a full location for the given handle
|
void |
setClientData(java.lang.Object clientData)
Sets the client data associated with this location.
|
@NonNull Location resolve()
void setClientData(@Nullable java.lang.Object clientData)
Location
to store
temporary state associated with the location.clientData
- the data to store with this location@Nullable java.lang.Object getClientData()
Location
to store
temporary state associated with the location.