|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable org.sonar.squid.api.TreeNode<SourceCode> org.sonar.squid.api.SourceCode
public abstract class SourceCode
Constructor Summary | |
---|---|
SourceCode(String key)
|
|
SourceCode(String key,
String name)
|
Method Summary | |
---|---|
void |
add(Metric metric,
double value)
|
void |
add(Metric metric,
SourceCode child)
|
int |
compareTo(SourceCode resource)
|
void |
computeMeasures()
|
void |
createEdgeWith(Node to,
EdgeUsage link)
|
void |
createEdgeWith(Node to,
EdgeUsage link,
Edge rootEdge)
|
Set<Node> |
dependedUpon()
|
Set<Node> |
dependsUpon()
|
boolean |
equals(Object obj)
|
double |
getDouble(Metric metric)
|
Edge |
getEdgeFrom(Node from)
|
Edge |
getEdgeTo(Node to)
|
int |
getEndAtLine()
|
int |
getInt(Metric metric)
|
String |
getKey()
|
String |
getName()
|
int |
getStartAtLine()
|
EdgeUsage |
getUsageBy(Node from)
|
EdgeUsage |
getUsageOf(Node to)
|
int |
hashCode()
|
boolean |
isType(Class<? extends SourceCode> resourceType)
|
void |
setEndAtLine(int endAtLine)
|
void |
setMeasure(Metric metric,
double measure)
|
void |
setMeasure(Metric metric,
int measure)
|
void |
setStartAtLine(int startAtLine)
|
String |
toString()
|
Methods inherited from class org.sonar.squid.api.TreeNode |
---|
addChild, getChildren, getFirstChild, getLastChild, getParent, getParent, hasAmongParents, hasChild |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SourceCode(String key)
public SourceCode(String key, String name)
Method Detail |
---|
public String getKey()
getKey
in interface Node
public int compareTo(SourceCode resource)
compareTo
in interface Comparable<SourceCode>
public String getName()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public final void computeMeasures()
public void createEdgeWith(Node to, EdgeUsage link)
createEdgeWith
in interface Node
public void createEdgeWith(Node to, EdgeUsage link, Edge rootEdge)
createEdgeWith
in interface Node
public Edge getEdgeTo(Node to)
getEdgeTo
in interface Node
public Edge getEdgeFrom(Node from)
getEdgeFrom
in interface Node
public EdgeUsage getUsageOf(Node to)
getUsageOf
in interface Node
public EdgeUsage getUsageBy(Node from)
getUsageBy
in interface Node
public Set<Node> dependedUpon()
dependedUpon
in interface Node
public Set<Node> dependsUpon()
dependsUpon
in interface Node
public boolean isType(Class<? extends SourceCode> resourceType)
public int getInt(Metric metric)
getInt
in interface Measurable
public double getDouble(Metric metric)
getDouble
in interface Measurable
public void add(Metric metric, SourceCode child)
public void add(Metric metric, double value)
public void setMeasure(Metric metric, double measure)
setMeasure
in interface Measurable
public void setMeasure(Metric metric, int measure)
setMeasure
in interface Measurable
public void setStartAtLine(int startAtLine)
public void setEndAtLine(int endAtLine)
public int getStartAtLine()
public int getEndAtLine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |