You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OptionAspect.aj 431B

1234567891011
  1. package com.test;
  2. public aspect OptionAspect {
  3. interface IBadOptionSubtype {};
  4. declare parents : (IOption+ && !IOption && !IXOption && !IYOption && !IZOption) && !hasmethod(new(OptionType))
  5. implements IBadOptionSubtype;
  6. declare error : staticinitialization(IOption+ && IBadOptionSubtype+)
  7. : "IOption implementations must provide a constructor which accepts an OptionType";
  8. }