func (mmj *MethodMatchJudger) Judge(invocation protocol.Invocation) bool {
	if mmj.NameMatch != nil {
		strJudger := NewStringMatchJudger(mmj.NameMatch)
		if !strJudger.Judge(invocation.MethodName()) {
			return false
		}
	}
	if mmj.Argc != 0 && len(invocation.ParameterValues()) != mmj.Argc {
		return false
	}
	if mmj.Args != nil {
		params := invocation.ParameterValues()
		for _, v := range mmj.Args {
			index := int(v.Index)
			if index > len(params) || index < 1 {
				return false
			}
			value := params[index-1]
			if value.Type().String() != v.Type {
				return false
			}
			switch v.Type {
			case "string":
				if !newListStringMatchJudger(v.StrValue).Judge(value.String()) {
					return false
				}
			case "float", "int":
				if !newListDoubleMatchJudger(v.NumValue).Judge(value.Float()) {
					return false
				}
			case "bool":
				if !newBoolMatchJudger(v.BoolValue).Judge(value.Bool()) {
					return false
				}
			default:
			}
		}
	}
	return true
}
Judge Method Match Judger only judge on
package judger
import (
	"dubbo.apache.org/dubbo-go/v3/config"
	"dubbo.apache.org/dubbo-go/v3/protocol"
)
type MethodMatchJudger struct {
	config.DubboMethodMatch
}