Groovy Documentation

groovy.org.codenarc.rule.groovyism
[Groovy] Class ExplicitCallToGetAtMethodRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.groovyism.ExplicitCallToGetAtMethodRule

class ExplicitCallToGetAtMethodRule
extends AbstractAstVisitorRule

This rule detects when the getAt(Object) method is called directly in code instead of using the [] index operator. A groovier way to express this: a.getAt(b) is this: a[b]

Authors:
Hamlet D'Arcy


Property Summary
Class astVisitorClass

boolean ignoreThisReference

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


ignoreThisReference

boolean ignoreThisReference


name

String name


priority

int priority


 

Groovy Documentation