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