1 26 package net.sf.javaguard; 27 28 29 import java.lang.reflect.Modifier ; 30 31 32 37 abstract public class MdFd extends TreeItem { 38 39 private String descriptor = null; 40 41 42 44 public MdFd(TreeItem parent, boolean synthetic, String name, String descriptor, int access) { 45 super(parent, name); 46 setDescriptor(descriptor); 47 setModifiers(access); 48 setSynthetic(synthetic); 49 if (name.equals("") || descriptor.equals("") || !(parent instanceof Cl)) { 50 throw new InternalError ("Internal error: method/field must have name and descriptor, and have Class or Interface as parent"); 51 } 52 53 if (isSynthetic() || Modifier.isNative(getModifiers())) { 55 setOutName(getInName()); 56 } 57 } 58 59 60 61 62 66 protected void setDescriptor(String descr) { 67 this.descriptor = descr; 68 } 69 70 71 75 public String getDescriptor() { 76 return descriptor; 77 } 78 } 79 | Popular Tags |