cppncss.counter
Class FunctionVisitor

java.lang.Object
  extended by cppast.AbstractVisitor
      extended by cppncss.counter.FunctionVisitor
All Implemented Interfaces:
ParserVisitor

public final class FunctionVisitor
extends AbstractVisitor

Implements a visitor for functions.

Author:
Mathieu Champlon

Constructor Summary
FunctionVisitor(Counter counter)
          Create a function visitor.
 
Method Summary
 java.lang.Object visit(AstConstructorDefinition node, java.lang.Object data)
          
 java.lang.Object visit(AstDestructorDefinition node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionDefinition node, java.lang.Object data)
          
 
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, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionVisitor

public FunctionVisitor(Counter counter)
Create a function visitor.

Parameters:
counter - the counter to apply
Method Detail

visit

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

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

visit

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

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

visit

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

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


Copyright © 2006-2007 null. All Rights Reserved.