Apply filters to a method name.
@param methodName
435005
private String applyFilters(String methodName) {
    if (filters.isEmpty()) {
      return methodName;
    }

    Reader in = new StringReader(methodName);
    for (TokenFilter tf : filters) {
      in = tf.chain(in);
    }

    try {
      return CharStreams.toString(in);
    } catch (IOException e) {
      junit4.log("Could not apply filters to " + methodName + 
          ": " + Throwables.getStackTraceAsString(e), Project.MSG_WARN);
      return methodName;
    }
  }
769089
function(methodName) {
                    var origMethod = that[methodName],
                        ret;

                    that[methodName] = function() {
                        args = _simplifyArray(Array.prototype.slice.call(arguments, 0));
                        ret = origMethod.apply(that, arguments);
           
                        that._trace({
                            method: methodName,
                            args: args
                        });
                 
                        return ret;
                    };
            }
599080
public function when($pattern, $name, $methods = null)
	{
		if ( ! is_null($methods)) $methods = array_map('strtoupper', (array) $methods);

		$this->patternFilters[$pattern][] = compact('name', 'methods');
	}
138024
public function addFilter(string $name, string $className, array $parameters = []) : void
    {
        $this->attributes['filters'][$name] = [
            'class' => $className,
            'parameters' => $parameters,
        ];
    }
439017
public boolean hasMethod(final String methodName) {
        for (final ClassInfo ci : getOverrideOrder()) {
            if (ci.hasDeclaredMethod(methodName)) {
                return true;
            }
        }
        return false;
    }
690259
@Deprecated
    public static synchronized void suppressMethod(Class<?> clazz, String methodName, Class<?>[] parameterTypes) {
        SuppressCode.suppressMethod(clazz, methodName, parameterTypes);
    }
424872
public void setMalwareName(java.util.Collection<StringFilter> malwareName) {
        if (malwareName == null) {
            this.malwareName = null;
            return;
        }

        this.malwareName = new java.util.ArrayList<StringFilter>(malwareName);
    }
86317
public static void parametersUsageNotAllowed(String methodName, String className){
		throw new DynamicConversionParameterException(MSG.INSTANCE.message(dynamicConversionParameterException,methodName,className));
	}
1184677
public void addMethodInfo(final MethodInfo methodInfo) {
        ArgUtils.notNull(methodInfo, "methodInfo");
        
        removeMethodInfo(methodInfo.getMethodName());
        this.methodInfos.add(methodInfo);
    }
752776
@Override
  public MethodAmp methodByName(String methodName)
  {
    StubAmp delegate = delegate();
    
    if (delegate != null) {
      return delegate.methodByName(methodName);
    }
    else {
      System.out.println("EEP:");
      return null;
    }
  }
849562
protected function applyRule(MethodNode $method, array $allowedProvideMethodNames)
    {
        if ($this->isMethodDeprecated($method)) {
            return;
        }

        if (in_array($method->getName(), $allowedProvideMethodNames)) {
            return;
        }

        if (preg_match('/^(add|get).+/', $method->getName()) !== 0) {
            return;
        }

        $this->addViolationMessage($method);
    }
424025
public void removeFilter(String filterName)
   {
      Filter filter = getFilterByName(filterName);
      if (filter != null)
      {
         if (filter.isTaskFilter())
         {
            m_taskFilters.remove(filter);
         }

         if (filter.isResourceFilter())
         {
            m_resourceFilters.remove(filter);
         }
         m_filtersByName.remove(filterName);
         m_filtersByID.remove(filter.getID());
      }
   }
821934
@XmlAttribute(name="name", required=true)
    public void setMethodName(final String methodName) {
        ArgUtils.notEmpty(methodName, methodName);
        this.methodName = methodName;
    }
438265
@Override
    public  Set<Method> getMethods(MethodFilter methodFilter) {
        return MethodUtils.getMethods(target, methodFilter);
    }
95873
@XmlElement(name="method")
    public void setMethodInfos(final List<MethodInfo> methodInfos) {
        if(methodInfos == this.methodInfos) {
            // Java7の場合、getterで取得したインスタンスをそのまま設定するため、スキップする。
            return;
        }
        
        this.methodInfos.clear();
        for(MethodInfo item : methodInfos) {
            addMethodInfo(item);
        }
    }
757282
public static void wrongParameterNumber(String methodName, String className){
		throw new ConversionParameterException(MSG.INSTANCE.message(conversionParameterException,methodName,className));
	}
696772
public void setMethods(Set<String> methods) {
        this.methods = new HashSet<>();
        for (String method : methods) {
            this.methods.add(method.toUpperCase());
        }
    }