class AnnotationDataLocationExtractor {

	public String extractLocation(DocAnnotationData data) {
		if (data==null) {
			return "";
		}
		Method method = data.linkedMethod;
		if (method!=null) {
			return createMethodIdentifier(method);
		}
		Field field = data.linkedField;
		if (field!=null) {
			return createFieldIdentifier(field);
		}
		
		Class<?> clazz = data.linkedClass;
		if (clazz!=null) {
			return createClassIdentifier(clazz);
		}
		return "";
	}

}