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.
1234567891011 |
- package com.test;
-
- public aspect OptionAspect {
- interface IBadOptionSubtype {};
-
- declare parents : (IOption+ && !IOption && !IXOption && !IYOption && !IZOption) && !hasmethod(new(OptionType))
- implements IBadOptionSubtype;
-
- declare error : staticinitialization(IOption+ && IBadOptionSubtype+)
- : "IOption implementations must provide a constructor which accepts an OptionType";
- }
|