cppncss.counter
Class FileVisitor

java.lang.Object
  extended by cppast.AbstractVisitor
      extended by cppncss.counter.FileVisitor
All Implemented Interfaces:
ParserVisitor, FileObserver

public final class FileVisitor
extends AbstractVisitor
implements FileObserver

Implements a visitor for files.

Author:
Mathieu Champlon

Constructor Summary
FileVisitor(Counter counter)
          Create a function visitor.
 
Method Summary
 void changed(java.lang.String filename)
          Specify the file being processed.
 java.lang.Object visit(AstTranslationUnit 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, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileVisitor

public FileVisitor(Counter counter)
Create a function visitor.

Parameters:
counter - the counter to apply
Method Detail

visit

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

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

changed

public void changed(java.lang.String filename)
Specify the file being processed.

Specified by:
changed in interface FileObserver
Parameters:
filename - the name of the fle


Copyright © 2006-2007 null. All Rights Reserved.