1 52 53 package com.go.teatools; 54 55 import com.go.trove.classfile.AccessFlags; 56 57 import java.beans.*; 58 import java.lang.reflect.*; 59 60 67 public class PropertyDescription extends FeatureDescription { 68 69 private TypeDescription mType; 70 private PropertyDescriptor mPropertyDescriptor; 71 72 75 public PropertyDescription(PropertyDescriptor pd, 76 TeaToolsUtils utils) { 77 78 super(utils); 79 80 mPropertyDescriptor = pd; 81 } 82 83 86 public TypeDescription getType() { 87 if (mType == null) { 88 mType = getTeaToolsUtils().createTypeDescription( 89 getPropertyDescriptor().getPropertyType()); 90 } 91 92 return mType; 93 } 94 95 98 public PropertyDescriptor getPropertyDescriptor() { 99 return mPropertyDescriptor; 100 } 101 102 106 public FeatureDescriptor getFeatureDescriptor() { 107 return getPropertyDescriptor(); 108 } 109 110 public String getShortFormat() { 111 return getName(); 112 } 113 114 public String getLongFormat() { 115 return getType().getLongFormat() + " " + getName(); 116 } 117 118 119 120 121 } 122 | Popular Tags |