/** * This class' implementations of the visitYY(YY) methods cause * fNodeClassForCalledMethod to be set to YY.class. * Such an implementation will be the one executed when * a visitXX(XX) or visit(XX) implementation in HierarchicalASTVisitor * calls the visitYY(YY) method corresponding to XX's superclass, YY. * We check here that fNodeClassForCalledMethod was set * to the superclass of clazz.
/* * This class' implementations of the visit(YY) methods (for non- * leaf YY) cause fNodeClassForCalledMethod to be set to YY.class. * Such an implementation will be the one executed when a visit(XX) * implementation in HierarchicalASTVisitor calls the visit(YY) * method corresponding to XX's superclass, YY. We check here that * fNodeClassForCalledMethod was set to the superclass of clazz.
		private void checkSuperclassMethodCalled(Class clazz, boolean isLeaf) {			Assert.isNotNull(clazz.getSuperclass());			/**			 * This class' implementations of the visitYY(YY) methods cause			 * fNodeClassForCalledMethod to be set to YY.class.			 * Such an implementation will be the one executed when			 * a visitXX(XX) or visit(XX) implementation in HierarchicalASTVisitor			 * calls the visitYY(YY) method corresponding to XX's superclass, YY.			 * We check here that fNodeClassForCalledMethod was set			 * to the superclass of clazz.			 */			assertTrue(			    getSuperMethodNotCalledMessageFor(clazz, isLeaf),			    clazz.getSuperclass().equals(fNodeClassForCalledMethod)			);		}