package com.eactive.eai.transformer;

import java.util.Stack;

import org.nfunk.jep.ParseException;
import org.nfunk.jep.function.PostfixMathCommand;

public class ConcatFunction extends PostfixMathCommand {
	
	public ConcatFunction() {
        numberOfParameters = 2;
    }                                                                                                                                                                                                                                                                                                                                                      
	
	public void run(Stack inStack) throws ParseException {
        checkStack(inStack);

        String param2 = (String)inStack.pop();
        String param1 = (String)inStack.pop();

        String value = param1 + param2;

        inStack.push(value);
	}
    
}
