Lines Matching defs:MethodMatcher

37 class MethodMatcher : public CHeapObj<mtCompiler> {
54 MethodMatcher* _next;
63 MethodMatcher(Symbol* class_name, Mode class_mode,
65 Symbol* signature, MethodMatcher* next);
66 MethodMatcher(Symbol* class_name, Symbol* method_name, MethodMatcher* next);
69 MethodMatcher* find(methodHandle method) {
72 for (MethodMatcher* current = this; current != NULL; current = current->_next) {
86 MethodMatcher* next() const { return _next; }
118 MethodMatcher::MethodMatcher(Symbol* class_name, Symbol* method_name, MethodMatcher* next) {
122 _class_mode = MethodMatcher::Exact;
123 _method_mode = MethodMatcher::Exact;
128 MethodMatcher::MethodMatcher(Symbol* class_name, Mode class_mode,
130 Symbol* signature, MethodMatcher* next):
139 bool MethodMatcher::match(Symbol* candidate, Symbol* match, Mode match_mode) {
171 class MethodOptionMatcher: public MethodMatcher {
176 Symbol* signature, const char * opt, MethodMatcher* next):
177 MethodMatcher(class_name, class_mode, method_name, method_mode, signature, next) {
247 class MethodMatcher;
248 static MethodMatcher* lists[OracleCommandCount] = { 0, };
258 static MethodMatcher* add_predicate(OracleCommand command,
259 Symbol* class_name, MethodMatcher::Mode c_mode,
260 Symbol* method_name, MethodMatcher::Mode m_mode,
265 lists[command] = new MethodMatcher(class_name, c_mode, method_name, m_mode, signature, lists[command]);
271 static MethodMatcher* add_option_string(Symbol* class_name, MethodMatcher::Mode c_mode,
272 Symbol* method_name, MethodMatcher::Mode m_mode,
403 static MethodMatcher::Mode check_mode(char name[], const char*& error_msg) {
404 int match = MethodMatcher::Exact;
406 match |= MethodMatcher::Suffix;
410 if (strcmp(name, "*") == 0) return MethodMatcher::Any;
414 match |= MethodMatcher::Prefix;
420 return MethodMatcher::Unknown;
422 return (MethodMatcher::Mode)match;
426 char class_name[], MethodMatcher::Mode* c_mode,
427 char method_name[], MethodMatcher::Mode* m_mode,
435 return *c_mode != MethodMatcher::Unknown && *m_mode != MethodMatcher::Unknown;
489 MethodMatcher::Mode c_match = MethodMatcher::Exact;
490 MethodMatcher::Mode m_match = MethodMatcher::Exact;
496 MethodMatcher* match = NULL;
676 MethodMatcher::Mode c_match = MethodMatcher::Exact;
677 MethodMatcher::Mode m_match = MethodMatcher::Exact;
695 c_match = MethodMatcher::Prefix;
704 c_match = MethodMatcher::Any;
708 c_match = MethodMatcher::Exact;
710 c_match = MethodMatcher::Suffix;
720 c_match = MethodMatcher::Prefix;
722 c_match = MethodMatcher::Any;
724 c_match = MethodMatcher::Substring;
734 m_match = MethodMatcher::Any;