class InjectHookMethod {

	public void process(Method method) throws InjectionException
	{
		Annotations an = method.getAnnotations();
		if (an == null)
		{
			return;
		}

		Annotation a = an.find(DeobAnnotations.HOOK);
		if (a == null)
		{
			return;
		}

		String hookName = a.getElement().getString();
		boolean end = a.getElements().size() == 2 && a.getElements().get(1).getValue().equals(true);

		inject(null, method, hookName, end, true);
	}

	public  InjectHookMethod(Inject inject);

}