下面属于Matcher类方法的是?

下面属于Matcher类方法的是?

A.compile

B.matches

C.split

D.pattern

正确答案是D