1 19 20 package org.objectweb.fractal.fraclet.annotation; 21 22 import java.lang.annotation.ElementType ; 23 import java.lang.annotation.Target ; 24 25 import spoon.aval.annotation.structure.Inside; 26 import spoon.aval.annotation.structure.Prohibits; 27 import spoon.aval.annotation.value.Matches; 28 import spoon.aval.annotation.value.RefersTo; 29 30 36 @Inside(FractalComponent.class) 37 @Prohibits(FractalAC.class) 38 @Target (ElementType.FIELD) 39 public @interface FractalBC { 40 44 @RefersTo(value = FractalItf.class,attribute="name") String name(); 45 46 53 Class signature() default Void .class; 54 55 60 @Matches("(singleton|collection)") String cardinality() default "singleton"; 61 62 66 @Matches("(mandatory|optional)") String contingency() default "mandatory"; 67 68 } 69 | Popular Tags |