Class ImportType


  • public class ImportType
    extends BaseType
    Represents an entry in a java "import" statement
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean isclass  
      private boolean ispackage  
      private java.lang.String packagename  
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportType​(java.lang.String name)
      Create a new ImportType with the specified name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPackage()
      Gets the name of the package that this import is based on: EX: test.* will return "test" EX: test.Test will return "test"
      boolean isClass()
      Determines whether this is a class import.
      boolean isPackage()
      Determines whether this is a package import.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • isclass

        private boolean isclass
      • ispackage

        private boolean ispackage
      • packagename

        private java.lang.String packagename
    • Constructor Detail

      • ImportType

        public ImportType​(java.lang.String name)
        Create a new ImportType with the specified name.
        Parameters:
        name - name
    • Method Detail

      • isClass

        public boolean isClass()
        Determines whether this is a class import. Ex: test.Test
        Returns:
        true if class import, false otherwise
      • isPackage

        public boolean isPackage()
        Determines whether this is a package import. Ex: test.*
        Returns:
        true if package, false otherwise
      • getPackage

        public java.lang.String getPackage()
        Gets the name of the package that this import is based on: EX: test.* will return "test" EX: test.Test will return "test"
        Returns:
        package