org.eclipse.tptp.platform.llc.core.internal.report
Class LLCComponent
java.lang.Object
org.eclipse.tptp.platform.llc.core.internal.report.LLCComponent
- All Implemented Interfaces:
- org.eclipse.tptp.platform.llc.core.report.IComponent
public class LLCComponent
- extends java.lang.Object
- implements org.eclipse.tptp.platform.llc.core.report.IComponent
|
Constructor Summary |
LLCComponent(LLCComponent parent_,
java.lang.String name_,
java.lang.String includes_,
java.lang.String excludes_)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LLCComponent
public LLCComponent(LLCComponent parent_,
java.lang.String name_,
java.lang.String includes_,
java.lang.String excludes_)
getGlobalMethodsNumber
public int getGlobalMethodsNumber()
getGlobalCoveredMethodsNumber
public int getGlobalCoveredMethodsNumber()
getGlobalUnitsNumber
public int getGlobalUnitsNumber()
getGlobalCoveredUnitsNumber
public int getGlobalCoveredUnitsNumber()
getParentDepth
public int getParentDepth()
- Specified by:
getParentDepth in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getParent
public org.eclipse.tptp.platform.llc.core.report.IComponent getParent()
- Specified by:
getParent in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getName
public java.lang.String getName()
- Specified by:
getName in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getIncludes
public java.lang.String[] getIncludes()
getExcludes
public java.lang.String[] getExcludes()
childIterator
public java.util.Iterator childIterator()
hasChilds
public boolean hasChilds()
childsLength
public int childsLength()
addChild
public void addChild(LLCComponent child)
classIterator
public java.util.Iterator classIterator()
hasClasses
public boolean hasClasses()
classesLength
public int classesLength()
contains
public boolean contains(java.lang.String className)
dump
public void dump(java.lang.String indent)
getComponent
public static LLCComponent getComponent(LLCComponent root,
java.lang.String className)
matchCharacter
public static boolean matchCharacter(char c1,
char c2,
boolean isCaseSensitive)
matchPattern
public static boolean matchPattern(java.lang.String s,
java.lang.String pattern)
matchPatterns
public static boolean matchPatterns(java.lang.String s,
java.lang.String[] patterns)
addLLCClass
public void addLLCClass(LLCClass llcClass)
sortLLCClasses
public void sortLLCClasses(java.util.Comparator c)
consolidate
public void consolidate()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getProperties
public java.util.Map getProperties()
- Specified by:
getProperties in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getCoveredMethods
public int getCoveredMethods()
- Specified by:
getCoveredMethods in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getUncoveredMethods
public int getUncoveredMethods()
- Specified by:
getUncoveredMethods in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getTotalMethods
public int getTotalMethods()
- Specified by:
getTotalMethods in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getCoveredLines
public int getCoveredLines()
- Specified by:
getCoveredLines in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getUncoveredLines
public int getUncoveredLines()
- Specified by:
getUncoveredLines in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getTotalLines
public int getTotalLines()
- Specified by:
getTotalLines in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getComponents
public org.eclipse.tptp.platform.llc.core.report.IComponent[] getComponents()
- Specified by:
getComponents in interface org.eclipse.tptp.platform.llc.core.report.IComponent
getCoverageClasses
public org.eclipse.tptp.platform.llc.core.report.ICoverageClass[] getCoverageClasses()
- Specified by:
getCoverageClasses in interface org.eclipse.tptp.platform.llc.core.report.IComponent
accept
public void accept(org.eclipse.tptp.platform.llc.core.report.ICoverageVisitor visitor)
- Visits first this component, then its classes if any, then its sub-components if any