net.sourceforge.pmd
Class PMD
java.lang.Object
net.sourceforge.pmd.PMD
- public class PMD
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EOL
public static final java.lang.String EOL
targetJDKVersion
private TargetJDKVersion targetJDKVersion
PMD
public PMD()
PMD
public PMD(TargetJDKVersion targetJDKVersion)
processFile
public void processFile(java.io.Reader reader,
RuleSet ruleSet,
RuleContext ctx)
throws PMDException
- Parameters:
reader
- - a Reader to the Java code to analyseruleSet
- - the set of rules to process against the filectx
- - the context in which PMD is operating. This contains the Renderer and whatnot
- Throws:
PMDException
processFile
public void processFile(java.io.InputStream fileContents,
RuleSet ruleSet,
RuleContext ctx)
throws PMDException
- Parameters:
fileContents
- - an InputStream to the Java code to analyseruleSet
- - the set of rules to process against the filectx
- - the context in which PMD is operating. This contains the Report and whatnot
- Throws:
PMDException
main
public static void main(java.lang.String[] args)
glomName
private static java.lang.String glomName(boolean shortNames,
java.lang.String inputFileName,
java.io.File file)
trimAnyPathSep
private static java.lang.String trimAnyPathSep(java.lang.String name)
collectFilesFromOneName
private static java.util.List collectFilesFromOneName(java.lang.String inputFileName)
collectFromCommaDelimitedString
private static java.util.List collectFromCommaDelimitedString(java.lang.String fileList)
collect
private static java.util.List collect(java.lang.String filename)