Link misses information to find class types
bbottema opened this issue · 1 comments
bbottema commented
I'm trying to locate the actual Method object referenced by the Link.
Is it possible when creating Link objects to include the package relevant to the classname being referenced? Either the package is included in the class name itself, or the package comes from an import. It would take some trickery for sure, but the information could be very useful in runtime.
public class Link {
private final String label;
private final String referencedPackage;
private final String referencedClassName;
private final String referencedMemberName;
(..)
}
Alternatively, you could add a list of all imports to ClassJavadoc so I can match it later manually. I imagine this to be a lot easier to implement in the short term.
public class ClassJavadoc extends BaseJavadoc {
private final List<Import> imports;
private final List<FieldJavadoc> fields;
private final List<FieldJavadoc> enumConstants;
private final List<MethodJavadoc> methods;
(..)
}