net.sourceforge.pmd.cpd
Class SourceCode

java.lang.Object
  extended by net.sourceforge.pmd.cpd.SourceCode

public class SourceCode
extends Object


Nested Class Summary
static class SourceCode.CodeLoader
           
static class SourceCode.FileCodeLoader
           
static class SourceCode.StringCodeLoader
           
 
Field Summary
static String EOL
           
 
Constructor Summary
SourceCode(SourceCode.CodeLoader cl)
           
 
Method Summary
 List<String> getCode()
           
 StringBuffer getCodeBuffer()
           
 String getFileName()
           
 String getSlice(int startLine, int endLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOL

public static final String EOL
Constructor Detail

SourceCode

public SourceCode(SourceCode.CodeLoader cl)
Method Detail

getCode

public List<String> getCode()

getCodeBuffer

public StringBuffer getCodeBuffer()

getSlice

public String getSlice(int startLine,
                       int endLine)

getFileName

public String getFileName()


Copyright © 2009-2012 SonarSource. All Rights Reserved.