Java Doc for PMD.java in  » Code-Analyzer » pmd-4.2rc1 » net » sourceforge » pmd » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Code Analyzer » pmd 4.2rc1 » net.sourceforge.pmd 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.pmd.PMD

PMD
public class PMD (Code)


Field Summary
final public static  StringEOL
    
final public static  StringEXCLUDE_MARKER
    
final public static  StringVERSION
    

Constructor Summary
public  PMD()
    

Method Summary
public  ClassLoadergetClassLoader()
     Get the ClassLoader being used by PMD when processing Rules.
public static  voidmain(String[] args)
    
public  voidprocessFile(Reader reader, RuleSets ruleSets, RuleContext ctx)
     Processes the file read by the reader against the rule set.
Parameters:
  reader - input stream reader
Parameters:
  ruleSets - set of rules to process against the file
Parameters:
  ctx - context in which PMD is operating.
public  voidprocessFile(Reader reader, RuleSets ruleSets, RuleContext ctx, SourceType sourceType)
     Processes the file read by the reader against the rule set.
Parameters:
  reader - input stream reader
Parameters:
  ruleSets - set of rules to process against the file
Parameters:
  ctx - context in which PMD is operating.
public  voidprocessFile(Reader reader, RuleSet ruleSet, RuleContext ctx)
     Processes the file read by the reader against the rule set.
Parameters:
  reader - input stream reader
Parameters:
  ruleSet - set of rules to process against the file
Parameters:
  ctx - context in which PMD is operating.
public  voidprocessFile(InputStream fileContents, String encoding, RuleSet ruleSet, RuleContext ctx)
     Processes the input stream against a rule set using the given input encoding.
Parameters:
  fileContents - an input stream to analyze
Parameters:
  encoding - input stream's encoding
Parameters:
  ruleSet - set of rules to process against the file
Parameters:
  ctx - context in which PMD is operating.
public  voidprocessFile(InputStream fileContents, String encoding, RuleSets ruleSets, RuleContext ctx)
     Processes the input stream against a rule set using the given input encoding.
Parameters:
  fileContents - an input stream to analyze
Parameters:
  encoding - input stream's encoding
Parameters:
  ruleSets - set of rules to process against the file
Parameters:
  ctx - context in which PMD is operating.
public  voidprocessFile(InputStream fileContents, RuleSet ruleSet, RuleContext ctx)
     Processes the input stream against a rule set assuming the platform character set.
Parameters:
  fileContents - input stream to check
Parameters:
  ruleSet - the set of rules to process against the source code
Parameters:
  ctx - the context in which PMD is operating.
public static  voidprocessFiles(int threadCount, RuleSetFactory ruleSetFactory, SourceType sourceType, List<DataSource> files, RuleContext ctx, List<Renderer> renderers, String rulesets, boolean shortNamesEnabled, String inputPath, String encoding, String excludeMarker, ClassLoader classLoader)
     Run PMD on a list of files using multiple threads.
public static  voidprocessFiles(int threadCount, RuleSetFactory ruleSetFactory, SourceType sourceType, List<DataSource> files, RuleContext ctx, List<Renderer> renderers, boolean stressTestEnabled, String rulesets, boolean shortNamesEnabled, String inputPath, String encoding, String excludeMarker, ClassLoader classLoader)
     Run PMD on a list of files using multiple threads.
public  voidprocessFiles(List<DataSource> files, RuleContext ctx, RuleSets rulesets, boolean debugEnabled, boolean shortNamesEnabled, String inputPath, String encoding)
     Run PMD on a list of files.
Parameters:
  files - the List of DataSource instances.
Parameters:
  ctx - the context in which PMD is operating.
public  voidsetClassLoader(ClassLoader classLoader)
     Set the ClassLoader being used by PMD when processing Rules.
public  voidsetExcludeMarker(String marker)
    
public  voidsetJavaVersion(SourceType javaVersion)
     Set the SourceType to be used for ".java" files.

Field Detail
EOL
final public static String EOL(Code)



EXCLUDE_MARKER
final public static String EXCLUDE_MARKER(Code)



VERSION
final public static String VERSION(Code)




Constructor Detail
PMD
public PMD()(Code)




Method Detail
getClassLoader
public ClassLoader getClassLoader()(Code)
Get the ClassLoader being used by PMD when processing Rules. The ClassLoader being used



main
public static void main(String[] args)(Code)



processFile
public void processFile(Reader reader, RuleSets ruleSets, RuleContext ctx) throws PMDException(Code)
Processes the file read by the reader against the rule set.
Parameters:
  reader - input stream reader
Parameters:
  ruleSets - set of rules to process against the file
Parameters:
  ctx - context in which PMD is operating. This contains the Renderer andwhatnot
throws:
  PMDException - if the input could not be parsed or processed



processFile
public void processFile(Reader reader, RuleSets ruleSets, RuleContext ctx, SourceType sourceType) throws PMDException(Code)
Processes the file read by the reader against the rule set.
Parameters:
  reader - input stream reader
Parameters:
  ruleSets - set of rules to process against the file
Parameters:
  ctx - context in which PMD is operating. This contains the Renderer andwhatnot
Parameters:
  sourceType - the SourceType of the source
throws:
  PMDException - if the input could not be parsed or processed



processFile
public void processFile(Reader reader, RuleSet ruleSet, RuleContext ctx) throws PMDException(Code)
Processes the file read by the reader against the rule set.
Parameters:
  reader - input stream reader
Parameters:
  ruleSet - set of rules to process against the file
Parameters:
  ctx - context in which PMD is operating. This contains the Renderer andwhatnot
throws:
  PMDException - if the input could not be parsed or processed



processFile
public void processFile(InputStream fileContents, String encoding, RuleSet ruleSet, RuleContext ctx) throws PMDException(Code)
Processes the input stream against a rule set using the given input encoding.
Parameters:
  fileContents - an input stream to analyze
Parameters:
  encoding - input stream's encoding
Parameters:
  ruleSet - set of rules to process against the file
Parameters:
  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 couldnot be parsed
See Also:   PMD.processFile(Reader,RuleSet,RuleContext)



processFile
public void processFile(InputStream fileContents, String encoding, RuleSets ruleSets, RuleContext ctx) throws PMDException(Code)
Processes the input stream against a rule set using the given input encoding.
Parameters:
  fileContents - an input stream to analyze
Parameters:
  encoding - input stream's encoding
Parameters:
  ruleSets - set of rules to process against the file
Parameters:
  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 couldnot be parsed
See Also:   PMD.processFile(Reader,RuleSet,RuleContext)



processFile
public void processFile(InputStream fileContents, RuleSet ruleSet, RuleContext ctx) throws PMDException(Code)
Processes the input stream against a rule set assuming the platform character set.
Parameters:
  fileContents - input stream to check
Parameters:
  ruleSet - the set of rules to process against the source code
Parameters:
  ctx - the context in which PMD is operating. This contains the Report andwhatnot
throws:
  PMDException - if the input encoding is unsupported or the input input streamcould not be parsed
See Also:   PMD.processFile(InputStream,String,RuleSet,RuleContext)



processFiles
public static void processFiles(int threadCount, RuleSetFactory ruleSetFactory, SourceType sourceType, List<DataSource> files, RuleContext ctx, List<Renderer> renderers, String rulesets, boolean shortNamesEnabled, String inputPath, String encoding, String excludeMarker, ClassLoader classLoader)(Code)
Run PMD on a list of files using multiple threads.
throws:
  IOException - If one of the files could not be read



processFiles
public static void processFiles(int threadCount, RuleSetFactory ruleSetFactory, SourceType sourceType, List<DataSource> files, RuleContext ctx, List<Renderer> renderers, boolean stressTestEnabled, String rulesets, boolean shortNamesEnabled, String inputPath, String encoding, String excludeMarker, ClassLoader classLoader)(Code)
Run PMD on a list of files using multiple threads.
throws:
  IOException - If one of the files could not be read



processFiles
public void processFiles(List<DataSource> files, RuleContext ctx, RuleSets rulesets, boolean debugEnabled, boolean shortNamesEnabled, String inputPath, String encoding) throws IOException(Code)
Run PMD on a list of files.
Parameters:
  files - the List of DataSource instances.
Parameters:
  ctx - the context in which PMD is operating. This contains the Report andwhatnot
Parameters:
  rulesets - the RuleSets
Parameters:
  debugEnabled -
Parameters:
  shortNamesEnabled -
Parameters:
  inputPath -
Parameters:
  encoding -
throws:
  IOException - If one of the files could not be read



setClassLoader
public void setClassLoader(ClassLoader classLoader)(Code)
Set the ClassLoader being used by PMD when processing Rules. Setting a value of null will cause the default ClassLoader to be used.
Parameters:
  classLoader - The ClassLoader to use



setExcludeMarker
public void setExcludeMarker(String marker)(Code)



setJavaVersion
public void setJavaVersion(SourceType javaVersion)(Code)
Set the SourceType to be used for ".java" files.
Parameters:
  javaVersion - the SourceType that indicates the java version



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.