io.github.mmm.code.impl.java.expression.JavaNAryOperatorExpression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-code-java-impl Show documentation
Show all versions of mmm-code-java-impl Show documentation
Implementation of mmm-code-api for Java.
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.code.impl.java.expression;
import java.util.List;
import io.github.mmm.code.api.expression.CodeExpression;
import io.github.mmm.code.api.operator.CodeNAryOperator;
import io.github.mmm.code.base.expression.BaseNAryOperatorExpression;
import io.github.mmm.code.impl.java.expression.constant.JavaConstant;
import io.github.mmm.code.impl.java.operator.JavaNAryOperatorHelper;
/**
* Implementation of {@link BaseNAryOperatorExpression} for Java.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.0.0
*/
public class JavaNAryOperatorExpression extends BaseNAryOperatorExpression implements JavaExpression {
/**
* The constructor.
*
* @param operator the {@link #getOperator() operator}.
* @param arguments the {@link #getArguments() arguments}.
*/
public JavaNAryOperatorExpression(CodeNAryOperator operator, CodeExpression... arguments) {
super(operator, arguments);
}
/**
* The constructor.
*
* @param operator the {@link #getOperator() operator}.
* @param arguments the {@link #getArguments() arguments}.
*/
public JavaNAryOperatorExpression(CodeNAryOperator operator, List arguments) {
super(operator, arguments);
}
@Override
public JavaConstant> evaluate() {
return JavaNAryOperatorHelper.evaluate(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy