KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > ui > snippeteditor > ScrapbookMain1


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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