TestHierarchicalASTVisitor.class.getDeclaredMethod( getNonLeafMethodNameFor(clazz), new Class[] { clazz } ); TestHierarchicalASTVisitor.class.getDeclaredMethod( "superVisit", new Class[] { clazz } );
TestHierarchicalASTVisitor.class.getDeclaredMethod(getMethodNameFor(clazz), new Class[] { clazz }); TestHierarchicalASTVisitor.class.getDeclaredMethod("superVisit", new Class[] { clazz });
		private static boolean hasRequiredMethodsForNonLeaf(Class clazz) {			Assert.isTrue(ASTNode.class.isAssignableFrom(clazz));			try {				TestHierarchicalASTVisitor.class.getDeclaredMethod(				    getNonLeafMethodNameFor(clazz),				    new Class[] { clazz }				);				TestHierarchicalASTVisitor.class.getDeclaredMethod(				    "superVisit",				    new Class[] { clazz }				);			} catch (NoSuchMethodException e) {				return false;			}			return true;		}