org.sonar.squid.api
Class SourceFile

java.lang.Object
  extended by java.util.Observable
      extended by org.sonar.squid.api.TreeNode<SourceCode>
          extended by org.sonar.squid.api.SourceCode
              extended by org.sonar.squid.api.SourceFile
All Implemented Interfaces:
Comparable<SourceCode>, Node, Measurable

public class SourceFile
extends SourceCode


Constructor Summary
SourceFile(String key)
           
SourceFile(String key, String fileName)
           
 
Method Summary
 void addNotSonarTagLines(Set<Integer> noSonarTagLines)
           
static SourceFile create(SourcePackage parentPackage, String fileName)
           
 Set<Integer> getNotSonarTagLines()
           
protected  void initializeMeasures()
           
 boolean isThereNoSonarTagAtLine(int lineNumber)
           
protected  void updateMeasuresAfterConsolidation()
           
 
Methods inherited from class org.sonar.squid.api.SourceCode
add, add, compareTo, computeMeasures, createEdgeWith, createEdgeWith, dependedUpon, dependsUpon, equals, getDouble, getEdgeFrom, getEdgeTo, getEndAtLine, getInt, getKey, getName, getStartAtLine, getUsageBy, getUsageOf, hashCode, isType, setEndAtLine, setMeasure, setMeasure, setStartAtLine, toString
 
Methods inherited from class org.sonar.squid.api.TreeNode
addChild, getChildren, getFirstChild, getLastChild, getParent, getParent, hasAmongParents, hasChild
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceFile

public SourceFile(String key)

SourceFile

public SourceFile(String key,
                  String fileName)
Method Detail

create

public static SourceFile create(SourcePackage parentPackage,
                                String fileName)

initializeMeasures

protected void initializeMeasures()
Specified by:
initializeMeasures in class SourceCode

updateMeasuresAfterConsolidation

protected void updateMeasuresAfterConsolidation()
Specified by:
updateMeasuresAfterConsolidation in class SourceCode

getNotSonarTagLines

public Set<Integer> getNotSonarTagLines()

isThereNoSonarTagAtLine

public boolean isThereNoSonarTagAtLine(int lineNumber)

addNotSonarTagLines

public void addNotSonarTagLines(Set<Integer> noSonarTagLines)


Copyright © 2009 SonarSource SA. All Rights Reserved.