org.sonar.squid.handlers
Class BasicHandler

java.lang.Object
  extended by org.sonar.squid.handlers.BasicHandler
All Implemented Interfaces:
Handler
Direct Known Subclasses:
JavaBasicHandler, PlsqlBasicHandler

public abstract class BasicHandler
extends java.lang.Object
implements Handler


Nested Class Summary
protected  class BasicHandler.AnalyzeState
           
protected  class BasicHandler.MultiLinesCommentDelimiters
           
protected  class BasicHandler.SingleLineCommentDelimiter
           
 
Constructor Summary
BasicHandler()
           
 
Method Summary
protected  Resource analyzeFile(java.io.File fileToAnalyze, java.nio.charset.Charset charset)
           
 void analyzeSources(Resource project, java.util.Collection<java.io.File> filesToAnalyse, java.nio.charset.Charset charset)
           
protected  char chartAt(java.lang.String line, int index)
           
protected abstract  java.util.List<BasicHandler.MultiLinesCommentDelimiters> getMultiLinesCommentDelimiters()
           
protected abstract  java.util.List<BasicHandler.SingleLineCommentDelimiter> getSingleLineCommentDelimiter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicHandler

public BasicHandler()
Method Detail

analyzeSources

public void analyzeSources(Resource project,
                           java.util.Collection<java.io.File> filesToAnalyse,
                           java.nio.charset.Charset charset)
Specified by:
analyzeSources in interface Handler

analyzeFile

protected Resource analyzeFile(java.io.File fileToAnalyze,
                               java.nio.charset.Charset charset)

chartAt

protected final char chartAt(java.lang.String line,
                             int index)

getMultiLinesCommentDelimiters

protected abstract java.util.List<BasicHandler.MultiLinesCommentDelimiters> getMultiLinesCommentDelimiters()

getSingleLineCommentDelimiter

protected abstract java.util.List<BasicHandler.SingleLineCommentDelimiter> getSingleLineCommentDelimiter()


Copyright © 2009 SonarSource SA. All Rights Reserved.