io.vertx.codetrans.expression.JsonArrayClassModel Maven / Gradle / Ivy
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