public MethodHandleConstant getMethodHandle ( MethodHandleType mhType , ConstantPoolEntry cpEntry ) { for ( int i = 0 ; i < _entries . size ( ) ; i ++ ) { ConstantPoolEntry entry = _entries . get ( i ) ; if ( ! ( entry instanceof MethodHandleConstant ) ) { continue ; } MethodHandleConstant methodHandle = ( MethodHandleConstant ) entry ; if ( methodHandle . getType ( ) . equals ( mhType ) && methodHandle . getConstantEntry ( ) . equals ( cpEntry ) ) { return methodHandle ; } } return null ; }
Gets a method ref constant .