1 18 19 20 package org.objectweb.jac.core.rtti; 21 22 29 30 public class VirtualClassItem extends MetaItem { 31 32 String name; 33 ClassItem actualType; 34 35 41 public VirtualClassItem(String name, ClassItem actualType) { 42 this.name = name; 43 this.actualType = actualType; 44 } 45 46 public String getName() { 47 return name; 48 } 49 50 public ClassItem getActualType() { 51 return actualType; 52 } 53 54 public Object getAttribute(String attribute) { 55 Object value = super.getAttribute(attribute); 56 if (value==null && actualType!=null) { 57 value = actualType.getAttribute(attribute); 58 } 59 return value; 60 } 61 62 public String toString() { 63 return "VirtualClassItem "+name; 64 } 65 } 66 | Popular Tags |