use of org.apache.sysml.parser.pydml.PydmlParser.ParameterizedExpressionContext in project incubator-systemml by apache.
the class PydmlSyntacticValidator method getParameterExpressionList.
protected ArrayList<ParameterExpression> getParameterExpressionList(List<ParameterizedExpressionContext> paramExprs) {
ArrayList<ParameterExpression> retVal = new ArrayList<ParameterExpression>();
for (ParameterizedExpressionContext ctx : paramExprs) {
String paramName = null;
if (ctx.paramName != null && ctx.paramName.getText() != null && !ctx.paramName.getText().isEmpty()) {
paramName = ctx.paramName.getText();
}
ParameterExpression myArg = new ParameterExpression(paramName, ctx.paramVal.info.expr);
retVal.add(myArg);
}
return retVal;
}
Aggregations