package com.changhong.epc.rely.api.tool.power.function; import com.googlecode.aviator.runtime.type.AviatorBoolean; import com.googlecode.aviator.runtime.type.AviatorObject; import java.util.Map; public class Like extends ShowButtonAbstractFunction { @Override public AviatorObject call(Map env, AviatorObject arg1, AviatorObject arg2) { return AviatorBoolean.valueOf( getMainInfo(env, arg1.stringValue(env)).indexOf(arg2.stringValue(env)) >= 0 ); } @Override public String getName() { return "like"; } }