Import

public class Import extends CodeLine

An import of a file or a library.

The import is anonymous, but can be transformed into a named one.

Functions

Link copied to clipboard
public String content()
Obtains the value of the line.
Link copied to clipboard
public static Import fileRelativeTo(FileName fileToImport, FileName relativeTo)
Obtains an import of a file relative to another file.
Link copied to clipboard
public static Import fileRelativeToRoot(FileName file)
Obtains an import of a file assuming the name is relative to the current directory.
Link copied to clipboard
public static Import library(String libraryName)
Obtains an import of a library.
Link copied to clipboard
public String namedAs(String importName)
Obtains the named version of the import.
Link copied to clipboard
public Import toDefault()
Converts the import to the default import.

Inherited functions

Link copied to clipboard
public static CodeLine emptyLine()
Obtains an empty code line.
Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public static CodeLine of(String content)
Obtains a code line with the specified content.
Link copied to clipboard
public String toString()