Return

public class Return extends CodeLine

A code line representing a return statement.

Functions

Link copied to clipboard
public String content()
Obtains the value of the line.
Link copied to clipboard
public static Return nullReference()
Composes a statement returning null.
Link copied to clipboard
public static Return stringLiteral(String literal)
Composes a statement returning a string literal.
Link copied to clipboard
public static Return value(Object value)
Composes a statement returning the value.

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