public List < MethodNode > getMethods ( String name ) { List < MethodNode > answer = new ArrayList < MethodNode > ( ) ; ClassNode node = this ; while ( node != null ) { answer . addAll ( node . getDeclaredMethods ( name ) ) ; node = node . getSuperClass ( ) ; } return answer ; }
This methods creates a list of all methods with this name of the current class and of all super classes