VariableDeclaration

public class VariableDeclaration extends CodeLine

A declaration of a variable.

Functions

Link copied to clipboard
public String content()
Obtains the value of the line.
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.
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

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()