package de.dhbwstuttgart.target.tree.expression; import de.dhbwstuttgart.target.tree.TargetMethod; import de.dhbwstuttgart.target.tree.type.TargetType; import java.util.List; public record TargetNew(TargetType type, List params) implements TargetStatementExpression { public String getDescriptor() { return TargetMethod.getDescriptor(null, params.stream().map(TargetExpression::type).toArray(TargetType[]::new)); } }