Class JavaModelUtils


  • public final class JavaModelUtils
    extends Object
    • Method Detail

      • getClassByName

        public static JavaClass getClassByName​(JavaClass cls,
                                               String name)

        Try to resolve the class by the name, either relative from cls as the fully qualified name.

        Note:the name must match the cls itself or one of its nested classes.
        Parameters:
        cls - the declaring class
        name - the name
        Returns:
        the matching class, otherwise null
        See Also:
        JavaClass.getJavaClassLibrary()