|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codenarc.rule.AbstractAstVisitor
groovy.org.codenarc.rule.formatting.AbstractSpaceAroundBraceAstVisitor
abstract class AbstractSpaceAroundBraceAstVisitor extends AbstractAstVisitor
Abstract superclass for AstVisitor classes dealing with space around braces
| Method Summary | |
|---|---|
protected int
|
indexOfClosingBrace(String line, int blockLastColumn)
|
protected boolean
|
isNotCharacter(String line, char c, int index)
|
protected boolean
|
isNotInsideGString()
|
protected boolean
|
isNotWhitespace(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 String
|
lastSourceLineOrEmpty(def node)
|
protected String
|
sourceLineOrEmpty(def node)
|
void
|
visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression expression)
|
| Method Detail |
|---|
protected int indexOfClosingBrace(String line, int blockLastColumn)
protected boolean isNotCharacter(String line, char c, int index)
protected boolean isNotInsideGString()
protected boolean isNotWhitespace(String line, int index)
line - - the source line to be checkedindex - - the 1-based index of the character to be checked
protected String lastSourceLineOrEmpty(def node)
protected String sourceLineOrEmpty(def node)
@Override void visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression expression)
Groovy Documentation