proto-js-plugin
1.9.0
jvm
proto-js-plugin
/
io.spine.js.generate.output.snippet
/
Import
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.
Members
Functions
content
Link copied to clipboard
public
String
content
(
)
Obtains the value of the line.
file
Relative
To
Link copied to clipboard
public
static
Import
fileRelativeTo
(
FileName fileToImport
,
FileName relativeTo
)
Obtains an import of a file relative to another file.
file
Relative
To
Root
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.
library
Link copied to clipboard
public
static
Import
library
(
String
libraryName
)
Obtains an import of a library.
named
As
Link copied to clipboard
public
String
namedAs
(
String
importName
)
Obtains the named version of the import.
to
Default
Link copied to clipboard
public
Import
toDefault
(
)
Converts the import to the default import.
Inherited functions
empty
Line
Link copied to clipboard
public
static
CodeLine
emptyLine
(
)
Obtains an empty code line.
equals
Link copied to clipboard
public
boolean
equals
(
Object
o
)
hash
Code
Link copied to clipboard
public
int
hashCode
(
)
of
Link copied to clipboard
public
static
CodeLine
of
(
String
content
)
Obtains a code line with the specified content.
to
String
Link copied to clipboard
public
String
toString
(
)