Class JavaModelUtils


  • public final class JavaModelUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private JavaModelUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static JavaClass getClassByName​(JavaClass cls, java.lang.String name)
      Try to resolve the class by the name, either relative from cls as the fully qualified name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaModelUtils

        private JavaModelUtils()
    • Method Detail

      • getClassByName

        public static JavaClass getClassByName​(JavaClass cls,
                                               java.lang.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()