net.sourceforge.pmd.dfa.report

Class AbstractReportNode

public abstract class AbstractReportNode extends Object

Method Summary
voidaccept(ReportVisitor visitor)
voidadd(AbstractReportNode child)
Adds the child at the end.
voidaddFirst(AbstractReportNode child)
Adds the child in front of any other childs.
voidaddNumberOfViolation(int number)
voidchildrenAccept(ReportVisitor visitor)
abstract booleanequalsNode(AbstractReportNode arg0)
Should compare to nodes of the tree.
AbstractReportNodegetChildAt(int arg0)
intgetChildCount()
AbstractReportNodegetFirstChild()
AbstractReportNodegetNextSibling()
intgetNumberOfViolations()
AbstractReportNodegetParent()
booleanisLeaf()

Method Detail

accept

public void accept(ReportVisitor visitor)

add

public void add(AbstractReportNode child)
Adds the child at the end.

addFirst

public void addFirst(AbstractReportNode child)
Adds the child in front of any other childs.

addNumberOfViolation

public void addNumberOfViolation(int number)

childrenAccept

public void childrenAccept(ReportVisitor visitor)

equalsNode

public abstract boolean equalsNode(AbstractReportNode arg0)
Should compare to nodes of the tree.

getChildAt

public AbstractReportNode getChildAt(int arg0)

getChildCount

public int getChildCount()

getFirstChild

public AbstractReportNode getFirstChild()

Returns: null If there isn't any child.

getNextSibling

public AbstractReportNode getNextSibling()

Returns: null If there isn't any sibling.

getNumberOfViolations

public int getNumberOfViolations()

Returns: The number of all violations downside the node.

getParent

public AbstractReportNode getParent()

isLeaf

public boolean isLeaf()