|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmetricsOverlay.model.MetricSection
public class MetricSection
This class represents a single metric section.
Constructor Summary | |
---|---|
MetricSection(int startLine,
int startCol,
int endLine,
int endCol,
java.lang.String value)
This is the main constructor for a metric section. |
|
MetricSection(int startLine,
int endLine,
int startCol,
int endCol,
java.lang.String value,
java.lang.String actualText,
java.lang.String annotation)
Full constructor |
Method Summary | |
---|---|
int |
compareTo(MetricSection o)
|
java.lang.String |
getActualText()
|
java.lang.String |
getAnnotation()
|
int |
getEndCol()
|
int |
getEndLine()
|
int |
getStartCol()
|
int |
getStartLine()
|
java.lang.String |
getValue()
|
boolean |
hasActualText()
|
boolean |
hasAnnotation()
|
void |
setActualText(java.lang.String actualText)
|
void |
setAnnotation(java.lang.String annotation)
|
void |
setEndCol(int endCol)
|
void |
setEndLine(int endLine)
|
void |
setStartCol(int startCol)
|
void |
setStartLine(int startLine)
|
void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
Overridden toString method |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MetricSection(int startLine, int startCol, int endLine, int endCol, java.lang.String value) throws java.lang.Exception
startLine
- the actual line this metric section starts on.startCol
- the actual column this metric section starts on.endLine
- the actual line this metric section ends on, must be equal or
greater than the start line.endCol
- the actual column this metric section ends on. If the start
line is equal to the end line, this value must be larger than
or equal to the start col.value
- the value, in a String format, that this metric section has.
java.lang.Exception
- if any value is not validpublic MetricSection(int startLine, int endLine, int startCol, int endCol, java.lang.String value, java.lang.String actualText, java.lang.String annotation) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public int getEndLine()
public void setEndLine(int endLine)
public int getStartCol()
public void setStartCol(int startCol)
public int getEndCol()
public void setEndCol(int endCol)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public int getStartLine()
public void setStartLine(int startLine)
public java.lang.String getActualText()
public void setActualText(java.lang.String actualText)
public boolean hasActualText()
public boolean hasAnnotation()
public void setAnnotation(java.lang.String annotation)
public java.lang.String getAnnotation()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(MetricSection o)
compareTo
in interface java.lang.Comparable<MetricSection>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |