org.owasp.orizon.core
Class Stats
java.lang.Object
org.owasp.orizon.O
org.owasp.orizon.core.Stats
public class Stats
- extends O
Constructor Summary |
Stats()
|
Stats(org.w3c.dom.Document d)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stats
public Stats()
Stats
public Stats(org.w3c.dom.Document d)
incLineOfCode
public void incLineOfCode()
incCyclomaticIndex
public void incCyclomaticIndex()
incLineOfComment
public void incLineOfComment()
incClassCount
public void incClassCount()
getClassCount
public int getClassCount()
incMethodCount
public void incMethodCount()
incMethodLen
public void incMethodLen(int len)
incConstructorCount
public void incConstructorCount()
incConstructorLen
public void incConstructorLen(long l)
setMinMethodLen
public boolean setMinMethodLen(long l,
java.lang.String name)
setMaxMethodLen
public boolean setMaxMethodLen(long l,
java.lang.String name)
getLineOfCode
public long getLineOfCode()
getCyclomaticIndex
public int getCyclomaticIndex()
getLineOfComment
public long getLineOfComment()
getMethodCount
public int getMethodCount()
getMeanMethodLen
public double getMeanMethodLen()
getConstructorLen
public long getConstructorLen()
getConstructorCount
public int getConstructorCount()
getMeanConstructorLen
public double getMeanConstructorLen()
xml
public final java.lang.String xml(java.lang.String custom)
setLineOfCode
public final long setLineOfCode(long l)
setLineOfComments
public final long setLineOfComments(long loc)
setCyclomaticIndex
public final int setCyclomaticIndex(int cci)
readDocument
public boolean readDocument(org.w3c.dom.Document d)
countLinesOfComment
public int countLinesOfComment(java.lang.String in)
readXmlNode
public boolean readXmlNode(org.w3c.dom.Node n)
- Description copied from class:
O
- As far from version 0.62 all items must be responsible for XML Node
reading routine. Source class must be able to instantiate an object
passing XML Node as parameter and having that code read
- Specified by:
readXmlNode
in class O
- Parameters:
n
- the node being read
- Returns:
- true if xml node is well formed and correctly read, or
false otherwise.
isAvailable
public boolean isAvailable()