|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.tools.lint.detector.api.Location
public class Location
Location information for a warning
NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.
| Constructor Summary | |
|---|---|
Location(File file,
Position start,
Position end)
Constructs a new location range for the given file, from start to end. |
|
| Method Summary | |
|---|---|
Position |
getEnd()
The end position of the range |
File |
getFile()
Returns the file containing the warning. |
Location |
getSecondary()
Returns a secondary location associated with this location (if applicable), or null. |
Position |
getStart()
The start position of the range |
void |
setSecondary(Location secondary)
Sets a secondary location for this location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Location(File file,
Position start,
Position end)
file - the associated file (but see the documentation for
getFile() for more information on what the file
represents)start - the starting position, never nullend - the ending position, or null| Method Detail |
|---|
public File getFile()
public Position getStart()
public Position getEnd()
public Location getSecondary()
public void setSecondary(Location secondary)
secondary - a secondary location associated with this location
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||