KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > tools > internal > MethodData


1 /*******************************************************************************
2  * Copyright (c) 2004 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.swt.tools.internal;
12
13 import java.lang.reflect.Method JavaDoc;
14
15 public class MethodData extends ItemData {
16     
17     Method JavaDoc method;
18
19 public MethodData(Method JavaDoc method, String JavaDoc str) {
20     super(str);
21     this.method = method;
22 }
23
24 public static String JavaDoc[] getAllFlags() {
25     return new String JavaDoc[]{"no_gen", "address", "const", "dynamic", "jni", "cpp", "new", "delete"};
26 }
27
28 public Method JavaDoc getMethod() {
29     return method;
30 }
31
32 public String JavaDoc getAccessor() {
33     return (String JavaDoc)getParam("accessor");
34 }
35
36 public String JavaDoc getExclude() {
37     return (String JavaDoc)getParam("exclude");
38 }
39
40 public void setAccessor(String JavaDoc str) {
41     setParam("accessor", str);
42 }
43
44 public void setExclude(String JavaDoc str) {
45     setParam("exclude", str);
46 }
47
48 }
49
Popular Tags