com.imsweb.validation.translation.language.entity.ArgumentList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-translation Show documentation
Show all versions of validation-translation Show documentation
This project allows a Genedits Metafile to be translated into Groovy edits that can be executed in the SEER Validation framework.
The newest version!
/*
* Copyright (C) 2010 Information Management Services, Inc.
*/
package com.imsweb.validation.translation.language.entity;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.imsweb.validation.translation.EditTranslationContext;
public class ArgumentList implements ParsedTreeNode {
private static final Logger _LOG = LogManager.getLogger(ArgumentList.class);
private final List _expressions = new ArrayList<>();
public ArgumentList() {
_LOG.debug("new ArgumentList()");
}
public ArgumentList(Expression e) {
_LOG.debug("new ArgumentList(" + e + ")");
_expressions.add(e);
}
public ArgumentList(ArgumentList list, Expression e) {
_LOG.debug("new ArgumentList(" + list + "," + e + ")");
_expressions.addAll(list.getExpressions());
_expressions.add(e);
}
public ArgumentList(ArgumentList list) {
_expressions.addAll(list.getExpressions());
}
public List getExpressions() {
return _expressions;
}
@Override
public void generateGroovy(StringBuilder buf, EditTranslationContext tContext) {
throw new RuntimeException("This should never be called!");
}
@Override
public String toString() {
return _expressions.stream().map(Expression::toString).collect(Collectors.toList()).toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy