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

io.vertx.codetrans.expression.JsonArrayClassModel Maven / Gradle / Ivy

There is a newer version: 4.1.0.Beta1
Show newest version
package io.vertx.codetrans.expression;

import io.vertx.codetrans.CodeBuilder;

import java.util.List;

/**
 * @author Julien Viet
 */
public class JsonArrayClassModel extends ClassModel {

  public JsonArrayClassModel(CodeBuilder builder) {
    super(builder);
  }

  @Override
  public ExpressionModel onNew(List arguments) {
    switch (arguments.size()) {
      case 0:
        return new JsonArrayLiteralModel(builder);
      default:
        throw new UnsupportedOperationException();
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy