Class JavaSource

    • Constructor Detail

      • JavaSource

        public JavaSource()
    • Method Detail

      • setURL

        public void setURL​(java.net.URL url)
        Since:
        1.4
      • getURL

        public java.net.URL getURL()
        Since:
        1.4
      • setFile

        public void setFile​(java.io.File file)
        Deprecated.
        use setURL
      • getFile

        public java.io.File getFile()
        Deprecated.
        use getURL
      • setPackage

        public void setPackage​(JavaPackage packge)
      • addImport

        public void addImport​(java.lang.String imp)
      • getImports

        public java.lang.String[] getImports()
      • getClasses

        public JavaClass[] getClasses()
      • setClassLibrary

        public void setClassLibrary​(ClassLibrary classLibrary)
      • getCodeBlock

        public java.lang.String getCodeBlock()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • resolveType

        public java.lang.String resolveType​(java.lang.String typeName)
        Description copied from interface: JavaClassParent
        Resolve a type-name within the context of this source or class.
        Specified by:
        resolveType in interface JavaClassParent
        Parameters:
        typeName - name of a type
        Returns:
        the fully-qualified name of the type, or null if it cannot be resolved
      • getClassLibrary

        public ClassLibrary getClassLibrary()
        Returns:
      • getPackageName

        public java.lang.String getPackageName()