|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.analysis.javadoc.log.message.IssueLocation
public class IssueLocation
Marks the location of an issue.
Constructor Summary | |
---|---|
IssueLocation(String fileName) Convenience constructor if neither a line or a column number can be given. |
|
IssueLocation(String fileName, int line) Convenience constructor if no column number can be given. |
|
IssueLocation(String fileName, int line, int column) Default constructor. |
Method Summary | |
---|---|
int |
getColumn() Returns the column the issue occurs in. |
String |
getFileName() Returns the name of the file the issue is located in. |
int |
getLine() Returns the line number the issue occurs in. |
String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IssueLocation(String fileName) throws NullPointerException
-1
.
fileName
- the name of the file the issue is located in.
NullPointerException
- if the
fileName
is
null
.
public IssueLocation(String fileName, int line) throws NullPointerException, IllegalArgumentException
-1
.
fileName
- the name of the file the issue is located in.
line
- the line number the issue occurs in.
NullPointerException
- if the
fileName
is
null
.
IllegalArgumentException
- if the
line
number is smaller than
-1
.
public IssueLocation(String fileName, int line, int column) throws NullPointerException, IllegalArgumentException
fileName
- the name of the file the issue is located in.
line
- the line number the issue occurs in.
column
- the column the issue occurs in.
NullPointerException
- if the
fileName
is
null
.
IllegalArgumentException
- if the
line
or
column
number is smaller than
-1
. Also thrown, if the
column
number is given (i.e. greater than
-1
, the
line
number not.
Method Detail |
---|
public String getFileName()
public int getLine()
If a column cannot be determined, this value is -1.
public int getColumn()
If a column cannot be determined, this value is -1.
public String toString()
toString
in class
Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |