cppncss.counter
Class NcssCounter

java.lang.Object
  extended by cppast.AbstractVisitor
      extended by cppncss.counter.AbstractCounter
          extended by cppncss.counter.NcssCounter
All Implemented Interfaces:
ParserVisitor, Counter

public final class NcssCounter
extends AbstractCounter

Implements a NCSS counter.

Author:
Mathieu Champlon

Constructor Summary
NcssCounter(CounterObserver observer)
          Create a NCSS counter.
 
Method Summary
 java.lang.Object visit(AstBreakStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstCaseStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstCatchBlock node, java.lang.Object data)
          
 java.lang.Object visit(AstConstructorDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstConstructorInitializer node, java.lang.Object data)
          
 java.lang.Object visit(AstContinueStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstDeclarationStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstDefaultStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstDestructorDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstElseStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstExpressionStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionBody node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstGotoStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstIfStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstIterationStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstLabelStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstMemberDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstNamespaceDefinition node, java.lang.Object data)
          
 java.lang.Object visit(AstReturnStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstSwitchStatement node, java.lang.Object data)
          
 
Methods inherited from class cppncss.counter.AbstractCounter
flush, increment
 
Methods inherited from class cppast.AbstractVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cppast.ParserVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 

Constructor Detail

NcssCounter

public NcssCounter(CounterObserver observer)
Create a NCSS counter.

Parameters:
observer - a counter observer
Method Detail

visit

public java.lang.Object visit(AstFunctionBody node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstConstructorInitializer node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstDeclarationStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstExpressionStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstIfStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstElseStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstIterationStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstSwitchStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstGotoStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstBreakStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstContinueStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstReturnStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstLabelStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstCaseStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstDefaultStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstCatchBlock node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstNamespaceDefinition node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstMemberDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstFunctionDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstConstructorDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor

visit

public java.lang.Object visit(AstDestructorDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor
Overrides:
visit in class AbstractVisitor


Copyright © 2006-2007 null. All Rights Reserved.