JewelCli accessor method names

JewelCli 0.8.2 and above supports query methods with or without the “get” prefix:

public interface MyExample
{
  @Option
  String getMyOption();
 
  @Option
  String myOtherOption();
}

The instance strategy now supports mutators with or without the “set” prefix:

public class MyExample
{
  @Option
  void setMyOption(String value) {}
 
  @Option
  void myOtherOption(String value) {}
}

Leave a Reply

Your email address will not be published. Required fields are marked *