All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.wensiqun.asmsupport.client.def.action.PreDecAction Maven / Gradle / Ivy

package cn.wensiqun.asmsupport.client.def.action;

import cn.wensiqun.asmsupport.client.block.KernelProgramBlockCursor;
import cn.wensiqun.asmsupport.client.def.Param;
import cn.wensiqun.asmsupport.client.def.ParamPostern;
import cn.wensiqun.asmsupport.client.def.param.DummyParam;
import cn.wensiqun.asmsupport.core.operator.Operator;

public class PreDecAction extends AbstractUnaryAction {

    public PreDecAction(KernelProgramBlockCursor cursor) {
        super(cursor, Operator.PRE_DEC);
    }

    @Override
    public Param doAction(Param... operands) {
        return new DummyParam(cursor, cursor.getPointer().predec(ParamPostern.getTarget(operands[0])));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy