Class ClassData

    • Constructor Detail

      • ClassData

        public ClassData()
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Returns the class name.
      • getClassNameTop

        public java.lang.String getClassNameTop()
        Returns the top class name.
      • getPackageName

        public java.lang.String getPackageName()
        Returns the package name.
      • getJavaFile

        public WebFile getJavaFile()
        Returns the JavaFile for this class, if it can be found.
      • getCompiledClass

        public java.lang.Class getCompiledClass()
        Returns the class compiled from this java file.
      • getInstance

        public java.lang.Object getInstance()
        Returns a new instance of the compiled class of this java file.
      • getInstance

        public <T> T getInstance​(java.lang.Class<T> aClass)
        Returns a new instance of the compiled class of this java file as requested class, if applicable.
      • getInstanceURL

        public WebURL getInstanceURL​(java.lang.Object anObj)
        Returns a URL for given instance.
      • getURLInstance

        @Nullable
        public java.lang.Object getURLInstance​(WebURL aURL)
        Returns an instance for given id.
      • getDependencies

        public java.lang.String[] getDependencies()
        Returns the list of class names that this class file is dependent on.
      • getHasMain

        public boolean getHasMain()
        Returns whether class file has main method.
      • runMain

        public void runMain()
        Runs the main method of compiled class.
      • get

        public static ClassData get​(WebFile aFile)
        Returns the ClassData for given file.