|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.tools.lint.detector.api.Location.DefaultLocationHandle
public static class Location.DefaultLocationHandle
A default Location.Handle
implementation for simple file offsets
Constructor Summary | |
---|---|
Location.DefaultLocationHandle(Context context,
int startOffset,
int endOffset)
Constructs a new Location.DefaultLocationHandle |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Location.DefaultLocationHandle(@NonNull Context context, int startOffset, int endOffset)
Location.DefaultLocationHandle
context
- the context pointing to the file and its contentsstartOffset
- the start offset within the fileendOffset
- the end offset within the fileMethod Detail |
---|
@NonNull public Location resolve()
Location.Handle
resolve
in interface Location.Handle
public void setClientData(@Nullable java.lang.Object clientData)
Location.Handle
Location
to store
temporary state associated with the location.
setClientData
in interface Location.Handle
clientData
- the data to store with this location@Nullable public java.lang.Object getClientData()
Location.Handle
Location
to store
temporary state associated with the location.
getClientData
in interface Location.Handle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |