public static List < MethodNode > findStaticMethods ( Collection < MethodNode > methodNodes ) { Validate . notNull ( methodNodes ) ; Validate . noNullElements ( methodNodes ) ; List < MethodNode > ret = new ArrayList <> ( ) ; for ( MethodNode methodNode : methodNodes ) { if ( ( methodNode . access & Opcodes . ACC_STATIC ) == Opcodes . ACC_STATIC ) { ret . add ( methodNode ) ; } } return ret ; }
Find static methods within a class .