1 11 package org.eclipse.jdt.internal.debug.ui.snippeteditor; 12 13 14 import java.lang.reflect.InvocationTargetException ; 15 import java.lang.reflect.Method ; 16 17 public class ScrapbookMain1 { 18 public static void eval(Class clazz) throws ClassNotFoundException , NoSuchMethodException , InvocationTargetException , IllegalAccessException { 19 Method method=clazz.getDeclaredMethod("nop", new Class [0]); method.invoke(null, new Object [0]); 21 } 22 } 23 | Popular Tags |