net.sourceforge.pmd.cpd
Class SourceCode
java.lang.Object
net.sourceforge.pmd.cpd.SourceCode
public class SourceCode
- extends Object
Not intended to be instantiated by clients.
- Since:
- 2.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EOL
public static final String EOL
SourceCode
public SourceCode(SourceCode.CodeLoader cl)
getCode
public List<String> getCode()
getCodeBuffer
public StringBuffer getCodeBuffer()
getSlice
public String getSlice(int startLine,
int endLine)
getFileName
public String getFileName()
- Within Sonar Ecosystem - absolute path to file containing code,
whereas in fact existence of such file not guaranteed - see
SourceCode.StringCodeLoader
.
Copyright © 2009-2012 SonarSource. All Rights Reserved.