Interface Expression

All Known Implementing Classes:
AbstractExpression, EmptyExpression, KeyValueExpression, TableExpression

public interface Expression
  • Method Details

    • empty

      @NotNull static @NotNull EmptyExpression empty()
    • keyValue

      @NotNull static @NotNull KeyValueExpression keyValue(@NotNull @NotNull io.github.wasabithumb.jtoml.key.TomlKey key, @NotNull @NotNull io.github.wasabithumb.jtoml.value.TomlValue value)
    • table

      @NotNull static @NotNull TableExpression table(@NotNull @NotNull io.github.wasabithumb.jtoml.key.TomlKey key, boolean isArray)
    • getComment

      @Nullable @Nullable String getComment()
    • setComment

      void setComment(@Nullable @Nullable String comment)
    • isEmpty

      default boolean isEmpty()
    • asEmpty

      @Contract("-> this") @NotNull default @NotNull EmptyExpression asEmpty()
    • isKeyValue

      default boolean isKeyValue()
    • asKeyValue

      @Contract("-> this") @NotNull default @NotNull KeyValueExpression asKeyValue()
    • isTable

      default boolean isTable()
    • asTable

      @Contract("-> this") @NotNull default @NotNull TableExpression asTable()