Package net.sourceforge.pmd
Class AbstractConfiguration
- java.lang.Object
-
- net.sourceforge.pmd.AbstractConfiguration
-
- Direct Known Subclasses:
CPDConfiguration,PMDConfiguration
public abstract class AbstractConfiguration extends java.lang.ObjectBase configuration class for both PMD and CPD.- Author:
- Brian Remedios
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractConfiguration()Create a new abstract configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.charset.CharsetgetSourceEncoding()Get the character encoding of source files.booleanisDebug()Return the debug indicator.voidsetDebug(boolean debug)Set the debug indicator.voidsetSourceEncoding(java.lang.String sourceEncoding)Set the character encoding of source files.
-
-
-
Method Detail
-
getSourceEncoding
public java.nio.charset.Charset getSourceEncoding()
Get the character encoding of source files.- Returns:
- The character encoding.
-
setSourceEncoding
public void setSourceEncoding(java.lang.String sourceEncoding)
Set the character encoding of source files.- Parameters:
sourceEncoding- The character encoding.
-
isDebug
public boolean isDebug()
Return the debug indicator. If this value istruethen PMD will log debug information.- Returns:
trueif debug logging is enabled,falseotherwise.
-
setDebug
public void setDebug(boolean debug)
Set the debug indicator.- Parameters:
debug- The debug indicator to set.- See Also:
isDebug()
-
-