cppncss.counter
Class CcnCounter

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

public final class CcnCounter
extends AbstractCounter

Implements a CCN counter.

Author:
Mathieu Champlon

Constructor Summary
CcnCounter(CounterObserver observer)
          Create a CCN counter.
 
Method Summary
 java.lang.Object visit(AstCaseStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstCatchBlock node, java.lang.Object data)
          
 java.lang.Object visit(AstConditionalExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionBody 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(AstLogicalAndExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstLogicalOrExpression 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, 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, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 

Constructor Detail

CcnCounter

public CcnCounter(CounterObserver observer)
Create a CCN 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(AstIfStatement 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(AstCaseStatement 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(AstLogicalAndExpression node,
                              java.lang.Object data)

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

visit

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

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

visit

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

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


Copyright © 2006-2007 null. All Rights Reserved.