Package net.sourceforge.pmd.cpd
Class CPDConfiguration
- java.lang.Object
-
- net.sourceforge.pmd.AbstractConfiguration
-
- net.sourceforge.pmd.cpd.CPDConfiguration
-
public class CPDConfiguration extends AbstractConfiguration
- Author:
- Brian Remedios, Romain Pelisse - <belaran@gmail.com>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CPDConfiguration.LanguageConverter
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_LANGUAGE
static String
DEFAULT_RENDERER
-
Constructor Summary
Constructors Constructor Description CPDConfiguration()
-
Method Summary
-
Methods inherited from class net.sourceforge.pmd.AbstractConfiguration
getSourceEncoding, isDebug, setDebug, setSourceEncoding
-
-
-
-
Field Detail
-
DEFAULT_LANGUAGE
public static final String DEFAULT_LANGUAGE
- See Also:
- Constant Field Values
-
DEFAULT_RENDERER
public static final String DEFAULT_RENDERER
- See Also:
- Constant Field Values
-
-
Method Detail
-
setEncoding
public void setEncoding(String encoding)
-
sourceCodeFor
public SourceCode sourceCodeFor(File file)
-
sourceCodeFor
public SourceCode sourceCodeFor(Reader reader, String sourceCodeName)
-
postContruct
public void postContruct()
-
getRendererFromString
@Deprecated public static Renderer getRendererFromString(String name, String encoding)
Deprecated.UsegetCPDRendererFromString(String, String)
instead
-
getCPDRendererFromString
public static CPDRenderer getCPDRendererFromString(String name, String encoding)
-
getRenderers
public static String[] getRenderers()
-
setSystemProperties
public static void setSystemProperties(CPDConfiguration configuration)
-
getLanguage
public Language getLanguage()
-
setLanguage
public void setLanguage(Language language)
-
getMinimumTileSize
public int getMinimumTileSize()
-
setMinimumTileSize
public void setMinimumTileSize(int minimumTileSize)
-
isSkipDuplicates
public boolean isSkipDuplicates()
-
setSkipDuplicates
public void setSkipDuplicates(boolean skipDuplicates)
-
getRendererName
public String getRendererName()
-
setRendererName
public void setRendererName(String rendererName)
-
getRenderer
@Deprecated public Renderer getRenderer()
Deprecated.UsegetCPDRenderer()
instead
-
getCPDRenderer
public CPDRenderer getCPDRenderer()
-
tokenizer
public Tokenizer tokenizer()
-
filenameFilter
public FilenameFilter filenameFilter()
-
setRenderer
@Deprecated public void setRenderer(Renderer renderer)
Deprecated.UsesetCPDRenderer(CPDRenderer)
instead- Parameters:
renderer
-
-
setCPDRenderer
public void setCPDRenderer(CPDRenderer renderer)
-
isIgnoreLiterals
public boolean isIgnoreLiterals()
-
setIgnoreLiterals
public void setIgnoreLiterals(boolean ignoreLiterals)
-
isIgnoreIdentifiers
public boolean isIgnoreIdentifiers()
-
setIgnoreIdentifiers
public void setIgnoreIdentifiers(boolean ignoreIdentifiers)
-
isIgnoreAnnotations
public boolean isIgnoreAnnotations()
-
setIgnoreAnnotations
public void setIgnoreAnnotations(boolean ignoreAnnotations)
-
isIgnoreUsings
public boolean isIgnoreUsings()
-
setIgnoreUsings
public void setIgnoreUsings(boolean ignoreUsings)
-
isSkipLexicalErrors
public boolean isSkipLexicalErrors()
-
setSkipLexicalErrors
public void setSkipLexicalErrors(boolean skipLexicalErrors)
-
getFileListPath
public String getFileListPath()
-
setFileListPath
public void setFileListPath(String fileListPath)
-
getURI
public String getURI()
-
setURI
public void setURI(String uri)
-
isNonRecursive
public boolean isNonRecursive()
-
setNonRecursive
public void setNonRecursive(boolean nonRecursive)
-
isHelp
public boolean isHelp()
-
setHelp
public void setHelp(boolean help)
-
getEncoding
public String getEncoding()
-
isNoSkipBlocks
public boolean isNoSkipBlocks()
-
setNoSkipBlocks
public void setNoSkipBlocks(boolean noSkipBlocks)
-
getSkipBlocksPattern
public String getSkipBlocksPattern()
-
setSkipBlocksPattern
public void setSkipBlocksPattern(String skipBlocksPattern)
-
isFailOnViolation
public boolean isFailOnViolation()
-
setFailOnViolation
public void setFailOnViolation(boolean failOnViolation)
-
-