Class ImportStatement


  • public final class ImportStatement
    extends Object
    Represents an import statement that has been discovered while parsing a source file.
    • Constructor Detail

      • ImportStatement

        public ImportStatement​(String importName,
                               int line,
                               boolean staticImport)
    • Method Detail

      • getLine

        public int getLine()
        The physical line within the source file in which the import has occurred. Number is always 1-based!
        Returns:
        The line number of the matched imports.
      • getImportName

        public String getImportName()
        Returns the import name including the 'static ' prefix if this represents a static import.
        Returns:
        The full import name.