- package com.company.command;
- import com.company.CommandVO;
- import com.company.command_name.CommandName;
- import com.company.command_name.ls.AbstractLS;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class LSCommand extends Command{
- public String execute(CommandVO vo){
- //返回链表的首节点
- CommandName firstNode = super.buildChain(AbstractLS.class).get(0);
- return firstNode.handleMessage(vo);
- }
- }