1 20 21 package net.innig.macker.structure; 22 23 import java.util.Set ; 24 import net.innig.collect.MultiMap; 25 26 29 public class HollowClassInfo 30 extends AbstractClassInfo 31 { 32 public HollowClassInfo(ClassManager classManager, String className) 33 { 34 super(classManager); 35 this.className = className; 36 } 37 38 public String getFullName() 39 { return className; } 40 41 public boolean isComplete() { return getActual().isComplete(); } 42 public boolean isInterface() { return getActual().isInterface(); } 43 public boolean isAbstract() { return getActual().isAbstract(); } 44 public boolean isFinal() { return getActual().isFinal(); } 45 public AccessModifier getAccessModifier() { return getActual().getAccessModifier(); } 46 public ClassInfo getExtends() { return getActual().getExtends(); } 47 public Set getImplements() { return getActual().getImplements(); } 48 public Set getDirectSupertypes() { return getActual().getDirectSupertypes(); } 49 public Set getSupertypes() { return getActual().getSupertypes(); } 50 public MultiMap getReferences() { return getActual().getReferences(); } 51 52 private ClassInfo getActual() 53 { 54 if(actual == null) 55 actual = getClassManager().loadClassInfo(className); 56 return actual; 57 } 58 59 private String className; 60 private ClassInfo actual; 61 } 62 63 64 | Popular Tags |