Created ClassNode::hasMethod().