Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.checks.whitespace
Class AbstractParenPadCheck  view AbstractParenPadCheck download AbstractParenPadCheck.java

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.api.AutomaticBean
      extended bycom.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
          extended bycom.puppycrawl.tools.checkstyle.api.Check
              extended bycom.puppycrawl.tools.checkstyle.checks.AbstractOptionCheck
                  extended bycom.puppycrawl.tools.checkstyle.checks.whitespace.AbstractParenPadCheck
All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable
Direct Known Subclasses:
ParenPadCheck, TypecastParenPadCheck

abstract class AbstractParenPadCheck
extends com.puppycrawl.tools.checkstyle.checks.AbstractOptionCheck

Abstract class for checking 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.

Version:
1.0

Field Summary
 
Fields inherited from class com.puppycrawl.tools.checkstyle.checks.AbstractOptionCheck
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.Check
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
 
Constructor Summary
(package private) AbstractParenPadCheck()
          Sets the paren pad otion to nospace.
 
Method Summary
protected  void processLeft(com.puppycrawl.tools.checkstyle.api.DetailAST aAST)
          Process a token representing a left parentheses.
protected  void processRight(com.puppycrawl.tools.checkstyle.api.DetailAST aAST)
          Process a token representing a right parentheses.
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.AbstractOptionCheck
getAbstractOption, setOption
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, setSeverity
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractParenPadCheck

AbstractParenPadCheck()
Sets the paren pad otion to nospace.

Method Detail

processLeft

protected void processLeft(com.puppycrawl.tools.checkstyle.api.DetailAST aAST)
Process a token representing a left parentheses.


processRight

protected void processRight(com.puppycrawl.tools.checkstyle.api.DetailAST aAST)
Process a token representing a right parentheses.