public class VariableDeclaration extends CodeLine
Modifier and Type | Method and Description |
---|---|
java.lang.String |
content()
Obtains the value of the line.
|
static VariableDeclaration |
initialized(java.lang.String name,
java.lang.String value)
Obtains the declaration with the specified name, which is initialized to the value.
|
static VariableDeclaration |
newInstance(java.lang.String name,
io.spine.code.gen.js.TypeName type)
Obtains the declaration of a variable initialized by instantiation of the type.
|
public java.lang.String content()
CodeLine
public static VariableDeclaration initialized(java.lang.String name, java.lang.String value)
public static VariableDeclaration newInstance(java.lang.String name, io.spine.code.gen.js.TypeName type)