net.sourceforge.pmd
public class PMD extends Object
Field Summary | |
---|---|
static String | EOL |
static String | VERSION |
Constructor Summary | |
---|---|
PMD() | |
PMD(TargetJDKVersion targetJDKVersion) |
Method Summary | |
---|---|
static void | main(String[] args) |
void | processFile(Reader reader, RuleSets ruleSets, RuleContext ctx)
Processes the file read by the reader agains the rule set.
|
void | processFile(Reader reader, RuleSets ruleSets, RuleContext ctx, SourceType sourceType)
Processes the file read by the reader agains the rule set.
|
void | processFile(Reader reader, RuleSet ruleSet, RuleContext ctx)
Processes the file read by the reader agains the rule set.
|
void | processFile(InputStream fileContents, String encoding, RuleSet ruleSet, RuleContext ctx)
Processes the input stream agains a rule set using the given input encoding.
|
void | processFile(InputStream fileContents, String encoding, RuleSets ruleSets, RuleContext ctx)
Processes the input stream agains a rule set using the given input encoding.
|
void | processFile(InputStream fileContents, RuleSet ruleSet, RuleContext ctx)
Processes the input stream against a rule set assuming the platform character set.
|
void | processFiles(List files, RuleContext ctx, RuleSets rulesets, boolean debugEnabled, boolean shortNamesEnabled, String inputPath, String encoding)
Run PMD on a list of files.
|
void | setExcludeMarker(String marker) |
void | setJavaVersion(SourceType javaVersion)
Set the SourceType to be used for ".java" files.
|
Deprecated: Use the no-args constructor and the setJavaVersion method instead
Parameters: targetJDKVersion
Parameters: reader input stream reader ruleSets set of rules to process against the file ctx context in which PMD is operating. This contains the Renderer and whatnot
Throws: PMDException if the input could not be parsed or processed
Parameters: reader input stream reader ruleSets set of rules to process against the file ctx context in which PMD is operating. This contains the Renderer and whatnot sourceType the SourceType of the source
Throws: PMDException if the input could not be parsed or processed
Parameters: reader input stream reader ruleSet set of rules to process against the file ctx context in which PMD is operating. This contains the Renderer and whatnot
Throws: PMDException if the input could not be parsed or processed
Parameters: fileContents an input stream to analyze encoding input stream's encoding ruleSet set of rules to process against the file ctx context in which PMD is operating. This contains the Report and whatnot
Throws: PMDException if the input encoding is unsupported or the input stream could not be parsed
See Also: PMD
Parameters: fileContents an input stream to analyze encoding input stream's encoding ruleSets set of rules to process against the file ctx context in which PMD is operating. This contains the Report and whatnot
Throws: PMDException if the input encoding is unsupported or the input stream could not be parsed
See Also: PMD
Parameters: fileContents input stream to check ruleSet the set of rules to process against the source code ctx the context in which PMD is operating. This contains the Report and whatnot
Throws: PMDException if the input encoding is unsupported or the input input stream could not be parsed
See Also: PMD
Parameters: files the List of DataSource instances. ctx the context in which PMD is operating. This contains the Report and whatnot rulesets the RuleSets debugEnabled shortNamesEnabled inputPath encoding
Throws: IOException If one of the files could not be read
Parameters: javaVersion the SourceType that indicates the java version