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, String... additionalSingleLineCommentFlag)
           
Source(String[] stringLines, CodeRecognizer codeRecognizer)
           
 
Method Summary
 int getMeasure(Metric metric)
           
 int getMeasure(Metric metric, int fromLine, int toLine)
          Numbering of lines starts from 1.
 Set<Integer> getNoSonarTagLines()
           
 int getNumberOfLines()
           
 
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,
              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)
Numbering of lines starts from 1.


getNoSonarTagLines

public Set<Integer> getNoSonarTagLines()

getNumberOfLines

@Beta
public int getNumberOfLines()
Since:
2.14


Copyright © 2009-2012 SonarSource. All Rights Reserved.