Visitor

public interface Visitor<T extends Object>

An interface that defines how to map each variant of Content to a value of type T.

Functions

Link copied to clipboard
public T unknown(JsonValue json)

Maps an unknown variant of Content to a value of type T.

Link copied to clipboard
public abstract T visitImage(ImageContent image)

An image content block.

Link copied to clipboard
public abstract T visitText(TextContent text)

A text content block.