TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.llc.core.internal.report
Class LLCComponent

java.lang.Object
  extended by 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_)
           
 
Method Summary
 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
 void addChild(LLCComponent child)
           
 void addLLCClass(LLCClass llcClass)
           
 java.util.Iterator childIterator()
           
 int childsLength()
           
 int classesLength()
           
 java.util.Iterator classIterator()
           
 void consolidate()
           
 boolean contains(java.lang.String className)
           
 void dump(java.lang.String indent)
           
static LLCComponent getComponent(LLCComponent root, java.lang.String className)
           
 org.eclipse.tptp.platform.llc.core.report.IComponent[] getComponents()
           
 org.eclipse.tptp.platform.llc.core.report.ICoverageClass[] getCoverageClasses()
           
 int getCoveredLines()
           
 int getCoveredMethods()
           
 java.lang.String[] getExcludes()
           
 int getGlobalCoveredMethodsNumber()
           
 int getGlobalCoveredUnitsNumber()
           
 int getGlobalMethodsNumber()
           
 int getGlobalUnitsNumber()
           
 java.lang.String[] getIncludes()
           
 java.lang.String getName()
           
 org.eclipse.tptp.platform.llc.core.report.IComponent getParent()
           
 int getParentDepth()
           
 java.util.Map getProperties()
           
 int getTotalLines()
           
 int getTotalMethods()
           
 int getUncoveredLines()
           
 int getUncoveredMethods()
           
 boolean hasChilds()
           
 boolean hasClasses()
           
static boolean matchCharacter(char c1, char c2, boolean isCaseSensitive)
           
static boolean matchPattern(java.lang.String s, java.lang.String pattern)
           
static boolean matchPatterns(java.lang.String s, java.lang.String[] patterns)
           
 void sortLLCClasses(java.util.Comparator c)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LLCComponent

public LLCComponent(LLCComponent parent_,
                    java.lang.String name_,
                    java.lang.String includes_,
                    java.lang.String excludes_)
Method Detail

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


TPTP 4.6.0 Platform Project
Internal API Specification