proto-js-plugin
1.9.0
jvm
proto-js-plugin
/
io.spine.js.generate.output.snippet
/
VariableDeclaration
Variable
Declaration
public
class
VariableDeclaration
extends
CodeLine
A declaration of a variable.
Members
Functions
content
Link copied to clipboard
public
String
content
(
)
Obtains the value of the line.
initialized
Link copied to clipboard
public
static
VariableDeclaration
initialized
(
String
name
,
String
value
)
Obtains the declaration with the specified name, which is initialized to the value.
new
Instance
Link copied to clipboard
public
static
VariableDeclaration
newInstance
(
String
name
,
TypeName type
)
Obtains the declaration of a variable initialized by instantiation of the type.
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
(
)