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

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

package io.vertx.codetrans.expression;

import io.vertx.codegen.type.TypeInfo;
import io.vertx.codetrans.CodeBuilder;
import io.vertx.codetrans.CodeWriter;
import io.vertx.codetrans.MethodSignature;
import io.vertx.codetrans.TypeArg;

import java.util.List;

/**
 * @author Julien Viet
 */
public class MethodInvocationModel extends ExpressionModel {

  public final ExpressionModel expression;
  public final TypeInfo receiverType;
  public final MethodSignature method;
  public final TypeInfo returnType;
  public final List typeArguments;
  public final List argumentModels;
  public final List argumentTypes;

  public MethodInvocationModel(CodeBuilder builder, ExpressionModel expression, TypeInfo receiverType, MethodSignature method,
                               TypeInfo returnType, List typeArguments, List argumentModels, List argumentTypes) {
    super(builder);
    this.expression = expression;
    this.receiverType = receiverType;
    this.method = method;
    this.returnType = returnType;
    this.typeArguments = typeArguments;
    this.argumentModels = argumentModels;
    this.argumentTypes = argumentTypes;
  }

  @Override
  public void render(CodeWriter writer) {
    writer.renderMethodInvocation(expression, receiverType, method, returnType, typeArguments, argumentModels, argumentTypes);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy