org.sonar.squid.text
Class Source

java.lang.Object
  extended by org.sonar.squid.text.Source

public class Source
extends Object


Constructor Summary
Source(Reader reader, CodeRecognizer codeRecognizer)
           
Source(Reader reader, CodeRecognizer codeRecognizer, String additionalSingleLineCommentFlag)
           
Source(String[] stringLines, CodeRecognizer codeRecognizer)
           
 
Method Summary
 int getMeasure(Metric metric)
           
 int getMeasure(Metric metric, int fromLine, int toLine)
           
 Set<Integer> getNoSonarTagLines()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Source

public Source(Reader reader,
              CodeRecognizer codeRecognizer)

Source

public Source(Reader reader,
              CodeRecognizer codeRecognizer,
              String additionalSingleLineCommentFlag)

Source

public Source(String[] stringLines,
              CodeRecognizer codeRecognizer)
Method Detail

getMeasure

public int getMeasure(Metric metric)

getMeasure

public int getMeasure(Metric metric,
                      int fromLine,
                      int toLine)

getNoSonarTagLines

public Set<Integer> getNoSonarTagLines()


Copyright © 2009 SonarSource SA. All Rights Reserved.