org.owasp.orizon.core
Class Stats

java.lang.Object
  extended by org.owasp.orizon.O
      extended by org.owasp.orizon.core.Stats

public class Stats
extends O


Field Summary
 
Fields inherited from class org.owasp.orizon.O
base64, hasName, initialized, line_start, line_stop, log, reduced, what
 
Constructor Summary
Stats()
           
Stats(org.w3c.dom.Document d)
           
 
Method Summary
 int countLinesOfComment(java.lang.String in)
           
 int getClassCount()
           
 int getConstructorCount()
           
 long getConstructorLen()
           
 int getCyclomaticIndex()
           
 long getLineOfCode()
           
 long getLineOfComment()
           
 double getMeanConstructorLen()
           
 double getMeanMethodLen()
           
 int getMethodCount()
           
 void incClassCount()
           
 void incConstructorCount()
           
 void incConstructorLen(long l)
           
 void incCyclomaticIndex()
           
 void incLineOfCode()
           
 void incLineOfComment()
           
 void incMethodCount()
           
 void incMethodLen(int len)
           
 boolean isAvailable()
           
 boolean readDocument(org.w3c.dom.Document d)
           
 boolean readXmlNode(org.w3c.dom.Node n)
          As far from version 0.62 all items must be responsible for XML Node reading routine.
 int setCyclomaticIndex(int cci)
           
 long setLineOfCode(long l)
           
 long setLineOfComments(long loc)
           
 boolean setMaxMethodLen(long l, java.lang.String name)
           
 boolean setMinMethodLen(long l, java.lang.String name)
           
 java.lang.String xml(java.lang.String custom)
           
 
Methods inherited from class org.owasp.orizon.O
clone, getStartLine, getStopLine, isCompatible, isInitialized, setStartLine, setStopLine, trackThis
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stats

public Stats()

Stats

public Stats(org.w3c.dom.Document d)
Method Detail

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()