com.puppycrawl.tools.checkstyle.checks.whitespace

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 » checkstyle » com.puppycrawl.tools.checkstyle.checks.whitespace 
com.puppycrawl.tools.checkstyle.checks.whitespace

Contains the Whitespace checks that are bundled with the main distribution.

Java Source File NameTypeComment
AbstractParenPadCheck.javaClass

Abstract class for checking the padding of parentheses.

AllTests.javaClass
EmptyForInitializerPadCheck.javaClass

Checks the padding of an empty for initializer; that is whether a space is required at an empty for initializer, or such spaces are forbidden.

EmptyForInitializerPadCheckTest.javaClass
EmptyForIteratorPadCheck.javaClass

Checks the padding of an empty for iterator; that is whether a space is required at an empty for iterator, or such spaces are forbidden.

EmptyForIteratorPadCheckTest.javaClass
MethodParamPadCheck.javaClass

Checks the padding between the identifier of a method definition, constructor definition, method call, or constructor invocation; and the left parenthesis of the parameter list.

MethodParamPadCheckTest.javaClass
NoWhitespaceAfterCheck.javaClass

Checks that there is no whitespace after a token. More specifically, it checks that it is not followed by whitespace, or (if linebreaks are allowed) all characters on the line after are whitespace.

NoWhitespaceAfterCheckTest.javaClass
NoWhitespaceBeforeCheck.javaClass

Checks that there is no whitespace before a token. More specifically, it checks that it is not preceded with whitespace, or (if linebreaks are allowed) all characters on the line before are whitespace.

NoWhitespaceBeforeCheckTest.javaClass
OperatorWrapCheck.javaClass

Checks line wrapping for operators.

OperatorWrapCheckTest.javaClass
OperatorWrapOption.javaClass Represents the options for wrapping on an operator.
PadOption.javaClass Represents the options for whitespace around parentheses.
ParenPadCheck.javaClass

Checks the padding of parentheses; that is whether a space is required after a left parenthesis and before a right parenthesis, or such spaces are forbidden, with the exception that it does not check for padding of the right parenthesis at an empty for iterator.

ParenPadCheckTest.javaClass
TabCharacterCheck.javaClass

Reports tab characters ('\t') in the source code.

TabCharacterCheckTest.javaClass
TypecastParenPadCheck.javaClass

Checks the padding of parentheses for typecasts.

TypecastParenPadCheckTest.javaClass
WhitespaceAfterCheck.javaClass

Checks that a token is followed by whitespace, with the exception that it does not check for whitespace after the semicolon of an empty for iterator.

WhitespaceAfterCheckTest.javaClass
WhitespaceAroundCheck.javaClass

Checks that a token is surrounded by whitespace.

By default the check will check the following operators: TokenTypes.LITERAL_ASSERT ASSERT , TokenTypes.ASSIGN ASSIGN , TokenTypes.BAND BAND , TokenTypes.BAND_ASSIGN BAND_ASSIGN , TokenTypes.BOR BOR , TokenTypes.BOR_ASSIGN BOR_ASSIGN , TokenTypes.BSR BSR , TokenTypes.BSR_ASSIGN BSR_ASSIGN , TokenTypes.BXOR BXOR , TokenTypes.BXOR_ASSIGN BXOR_ASSIGN , TokenTypes.COLON COLON , TokenTypes.DIV DIV , TokenTypes.DIV_ASSIGN DIV_ASSIGN , TokenTypes.EQUAL EQUAL , TokenTypes.GE GE , TokenTypes.GT GT , TokenTypes.LAND LAND , TokenTypes.LCURLY LCURLY , TokenTypes.LE LE , TokenTypes.LITERAL_CATCH LITERAL_CATCH , TokenTypes.LITERAL_DO LITERAL_DO , TokenTypes.LITERAL_ELSE LITERAL_ELSE , TokenTypes.LITERAL_FINALLY LITERAL_FINALLY , TokenTypes.LITERAL_FOR LITERAL_FOR , TokenTypes.LITERAL_IF LITERAL_IF , TokenTypes.LITERAL_RETURN LITERAL_RETURN , TokenTypes.LITERAL_SYNCHRONIZED LITERAL_SYNCHRONIZED , TokenTypes.LITERAL_TRY LITERAL_TRY , TokenTypes.LITERAL_WHILE LITERAL_WHILE , TokenTypes.LOR LOR , TokenTypes.LT LT , TokenTypes.MINUS MINUS , TokenTypes.MINUS_ASSIGN MINUS_ASSIGN , TokenTypes.MOD MOD , TokenTypes.MOD_ASSIGN MOD_ASSIGN , TokenTypes.NOT_EQUAL NOT_EQUAL , TokenTypes.PLUS PLUS , TokenTypes.PLUS_ASSIGN PLUS_ASSIGN , TokenTypes.QUESTION QUESTION , TokenTypes.RCURLY RCURLY , TokenTypes.SL SL , TokenTypes.SLIST SLIST , TokenTypes.SL_ASSIGN SL_ASSIGN , TokenTypes.SR SR , TokenTypes.SR_ASSIGN SR_ASSIGN , TokenTypes.STAR STAR , TokenTypes.STAR_ASSIGN STAR_ASSIGN . TokenTypes.LITERAL_ASSERT LITERAL_ASSERT . TokenTypes.GENERIC_START GENERIC_START . TokenTypes.GENERIC_END GENERIC_END . TokenTypes.TYPE_EXTENSION_AND TYPE_EXTENSION_AND . TokenTypes.WILDCARD_TYPE WILDCARD_TYPE .

An example of how to configure the check is:

 <module name="WhitespaceAround"/>
 

An example of how to configure the check for whitespace only around assignment operators is:

 <module name="WhitespaceAround">
 <property name="tokens"
 value="ASSIGN,DIV_ASSIGN,PLUS_ASSIGN,MINUS_ASSIGN,STAR_ASSIGN,MOD_ASSIGN,SR_ASSIGN,BSR_ASSIGN,SL_ASSIGN,BXOR_ASSIGN,BOR_ASSIGN,BAND_ASSIGN"/>
 </module>
 

In addition, this check can be configured to allow empty method and/or constructor bodies.

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