forked from JavaTX/JavaCompilerCore
13 lines
454 B
Java
13 lines
454 B
Java
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<TargetExpression> params) implements TargetStatementExpression {
|
|
public String getDescriptor() {
|
|
return TargetMethod.getDescriptor(null, params.stream().map(TargetExpression::type).toArray(TargetType[]::new));
|
|
}
|
|
}
|