|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.SourceCodeProcessor
public class SourceCodeProcessor
Constructor Summary | |
---|---|
SourceCodeProcessor(PMDConfiguration configuration)
|
Method Summary | |
---|---|
void |
processSourceCode(java.io.InputStream sourceCode,
RuleSets ruleSets,
RuleContext ctx)
Processes the input stream against a rule set using the given input encoding. |
void |
processSourceCode(java.io.Reader sourceCode,
RuleSets ruleSets,
RuleContext ctx)
Processes the input stream against a rule set using the given input encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceCodeProcessor(PMDConfiguration configuration)
Method Detail |
---|
public void processSourceCode(java.io.InputStream sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException
sourceCode
- The InputStream to analyze.ruleSets
- The collection of rules to process against the file.ctx
- The context in which PMD is operating.
PMDException
- if the input encoding is unsupported, the input stream could
not be parsed, or other error is encountered.processSourceCode(Reader, RuleSets, RuleContext)
public void processSourceCode(java.io.Reader sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException
null
on the RuleContext, it will
be automatically determined. Any code which wishes to process files for
different Languages, will need to be sure to either properly set the
Language on the RuleContext, or set it to null
first.
sourceCode
- The Reader to analyze.ruleSets
- The collection of rules to process against the file.ctx
- The context in which PMD is operating.
PMDException
- if the input encoding is unsupported, the input stream could
not be parsed, or other error is encountered.RuleContext.setLanguageVersion(net.sourceforge.pmd.lang.LanguageVersion)
,
PMDConfiguration.getLanguageVersionOfFile(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |