1 16 17 package de.gulden.util.javasource; 18 19 import de.gulden.util.javasource.jjt.*; 20 import java.io.*; 21 import java.util.*; 22 23 29 public abstract class Member extends SourceObjectDeclaredVisible { 30 31 37 public Code code; 38 39 40 46 protected Member(Class c) { 47 setDeclaringClass(c); 48 } 49 50 51 57 public Code getCode() { 58 return code; 59 } 60 61 64 public void setCode(Code c) { 65 code=c; 66 } 67 68 71 public Package getPackage() { 72 return getDeclaringClass().getPackage(); 73 } 74 75 78 void initFromAST(Node node) { 79 super.initFromAST(node); String className=getDeclaringClass().getName(); 82 name=className+"."+name; 83 } 84 85 } | Popular Tags |