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

io.hyperfoil.cli.context.HyperfoilCompleterData Maven / Gradle / Ivy

package io.hyperfoil.cli.context;

import java.util.Collection;
import java.util.List;

import org.aesh.command.Command;
import org.aesh.command.completer.CompleterInvocation;
import org.aesh.readline.AeshContext;
import org.aesh.readline.terminal.formatting.TerminalString;

public class HyperfoilCompleterData implements CompleterInvocation {
   private final CompleterInvocation delegate;
   private final HyperfoilCliContext context;

   public HyperfoilCompleterData(CompleterInvocation completerInvocation, HyperfoilCliContext context) {
      this.delegate = completerInvocation;
      this.context = context;
   }

   @Override
   public String getGivenCompleteValue() {
      return delegate.getGivenCompleteValue();
   }

   @Override
   public Command getCommand() {
      return delegate.getCommand();
   }

   @Override
   public List getCompleterValues() {
      return delegate.getCompleterValues();
   }

   @Override
   public void setCompleterValues(Collection completerValues) {
      delegate.setCompleterValues(completerValues);
   }

   @Override
   public void setCompleterValuesTerminalString(List completerValues) {
      delegate.setCompleterValuesTerminalString(completerValues);
   }

   @Override
   public void clearCompleterValues() {
      delegate.clearCompleterValues();
   }

   @Override
   public void addAllCompleterValues(Collection completerValues) {
      delegate.addAllCompleterValues(completerValues);
   }

   @Override
   public void addCompleterValue(String value) {
      delegate.addCompleterValue(value);
   }

   @Override
   public void addCompleterValueTerminalString(TerminalString value) {
      delegate.addCompleterValueTerminalString(value);
   }

   @Override
   public boolean isAppendSpace() {
      return delegate.isAppendSpace();
   }

   @Override
   public void setAppendSpace(boolean appendSpace) {
      delegate.setAppendSpace(appendSpace);
   }

   @Override
   public void setIgnoreOffset(boolean ignoreOffset) {
      delegate.setIgnoreOffset(ignoreOffset);
   }

   @Override
   public boolean doIgnoreOffset() {
      return delegate.doIgnoreOffset();
   }

   @Override
   public void setOffset(int offset) {
      delegate.setOffset(offset);
   }

   @Override
   public int getOffset() {
      return delegate.getOffset();
   }

   @Override
   public void setIgnoreStartsWith(boolean ignoreStartsWith) {
      delegate.setIgnoreStartsWith(ignoreStartsWith);
   }

   @Override
   public boolean isIgnoreStartsWith() {
      return delegate.isIgnoreStartsWith();
   }

   @Override
   public AeshContext getAeshContext() {
      return delegate.getAeshContext();
   }

   public HyperfoilCliContext getContext() {
      return context;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy