AddReportItemHelper(final RuntimeUtils runtimeUtils, final JavaProjectBuilder javaProjectBuilder, final JavaClass propertyDescriptorType) throws ClassNotFoundException { this.runtimeUtils = runtimeUtils; this.javaProjectBuilder = javaProjectBuilder; this.propertyDescriptorType = propertyDescriptorType; this.propertySetJavaClass = runtimeUtils.loadClass(propertyDescriptorType); // TODO: Check if this is good enough since the defaults could be overridden // by a method level annotation of ProjectSet. final PropertyMetaDataDefaults parentDefaults = new PropertyMetaDataDefaults(propertySetJavaClass); this.projectdocCollector = new ProjectdocAnnotationCollector(propertySetJavaClass, parentDefaults, parentDefaults); }
/** * Retruns the property set metadata defaults. * * @param propertyMethod the method of the property whose set defaults are * requested. * @return the defaults for the set referenced by the property identified by * the given method. */ public static PropertyMetaDataDefaults propertySet(final Method propertyMethod) { final Class<?> type = propertyMethod.getDeclaringClass(); final String space = createSpace(type); final PropertySet annotation = getPropertySetAnnotation(propertyMethod); final String title = annotation != null ? x(type, annotation) : type.getSimpleName(); final String name = title; final PropertyMetaDataDefaults defaults = new PropertyMetaDataDefaults(space, name, title); return defaults; }
new PropertyMetaDataDefaults(propertyMethod); final PropertyProjectdocParser parser = new PropertyProjectdocParser(context, defaults); new PropertyMetaDataDefaults(declaringType, propertyMethod); final Defaults defaults = new PropertyMetaDataDefaults(propertyMethod); final ProjectdocAnnotationCollector collector = new ProjectdocAnnotationCollector(declaringType, parentDefaults,