/** * Get the properties of an object. */ protected Collection getProperties(Object object, IContext context, boolean includemethods, boolean includefields) { Collection ret = new LinkedHashSet(); IOAVState state = (IOAVState)context; OAVObjectType type = state.getType(object); while(type!=null && !(type instanceof OAVJavaType)) { Collection props = type.getDeclaredAttributeTypes(); ret.addAll(props); type = type.getSupertype(); } return ret; }
/** * Get the properties of an object. */ protected Collection getProperties(Object object, IContext context, boolean includemethods, boolean includefields) { Collection ret = new LinkedHashSet(); IOAVState state = (IOAVState)context; OAVObjectType type = state.getType(object); while(type!=null && !(type instanceof OAVJavaType)) { Collection props = type.getDeclaredAttributeTypes(); ret.addAll(props); type = type.getSupertype(); } return ret; }
Collection attrs = type.getDeclaredAttributeTypes(); for(Iterator it=attrs.iterator(); it.hasNext(); )
while(type!=null) Iterator it = type.getDeclaredAttributeTypes().iterator(); while(it.hasNext())