Abstract superclass for AstVisitor classes dealing with space around braces
Type Params | Return Type | Name and description |
---|---|---|
|
protected int |
indexOfClosingBrace(java.lang.String line, int blockLastColumn) |
|
protected boolean |
isNotCharacter(java.lang.String line, char c, int index) |
|
protected boolean |
isNotInsideGString() |
|
protected boolean |
isNotWhitespace(java.lang.String line, int index) Return true if the specified (1-based) index is valid and the character at that index is not a whitespace character |
|
protected java.lang.String |
lastSourceLineOrEmpty(org.codehaus.groovy.ast.ASTNode node) |
|
protected java.lang.String |
sourceLineOrEmpty(org.codehaus.groovy.ast.ASTNode node) |
|
void |
visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression expression) |
Methods inherited from class | Name |
---|---|
class AbstractAstVisitor |
addViolation, addViolation, getCurrentClassName, getCurrentClassNode, getRule, getSourceCode, getSourceUnit, getViolations, getVisited, isFirstVisit, isGeneratedCode, isNotGeneratedCode, lastSourceLine, lastSourceLineTrimmed, setRule, setSourceCode, setVisited, shouldVisitMethod, sourceLine, sourceLineTrimmed, visitClass, visitClassComplete, visitClassEx, visitMethod, visitMethodComplete, visitMethodEx |
Return true if the specified (1-based) index is valid and the character at that index is not a whitespace character
line
- - the source line to be checkedindex
- - the 1-based index of the character to be checked