FluentResource

class FluentResource(val body: List<Entry>)(source)

FluentResource wraps a parsed Fluent AST.

This is the runtime representation of a parsed .ftl file. It holds the list of entries (messages, terms, comments) extracted from parsing.

Use tryNew to parse FTL source code into a FluentResource.

See also

for the main runtime class

for parsing

Constructors

Link copied to clipboard
constructor(body: List<Entry>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The list of entries in this resource (messages, terms, comments)

Functions

Link copied to clipboard

Get all messages in this resource.

Link copied to clipboard

Get all terms in this resource.