All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.squarespace.cldrengine.message.MessageSimpleCode Maven / Gradle / Ivy

The newest version!
package com.squarespace.cldrengine.message;

import java.util.List;

import com.google.gson.JsonArray;

public class MessageSimpleCode extends MessageCode {

  protected final String name;
  protected final List arguments;
  protected final List options;

  public MessageSimpleCode(String name, List arguments, List options) {
    super(MessageOpType.SIMPLE);
    this.name = name;
    this.arguments = arguments;
    this.options = options;
  }

  public String name() {
    return name;
  }

  public List args() {
    return arguments;
  }

  public List options() {
    return options;
  }

  @Override
  protected void _toJson(JsonArray arr) {
    arr.add(name);
    arr.add(arrayOf(arguments));
    arr.add(arrayOf(options));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy