com.surelogic
Annotation Type TypeSets
@Documented
@Target(value=PACKAGE)
public @interface TypeSets
Container annotation for multiple TypeSet annotations. It is a
modeling error for an entity to have both a TypeSets and a
TypeSet annotation.
Semantics:
This annotation holds a list TypeSet declarations without imposing
any further constraint on the program's implementation.
Examples:
Declaring two type sets on the same package. This annotation is only
permitted in a package-info.java file.
@TypeSets({
@TypeSet("UTIL = java.util & !(java.util.{Enumeration, Hashtable, Vector})"),
@TypeSet("XML = org.jdom+ | UTIL | java.{io, net}") })
package example;
import com.surelogic.*;
Javadoc usage notes:
This annotation is not supported in Javadoc because Javadoc supports multiple
@annotate tags of the same type (see the example below).
Javadoc annotation can be useful for Java 1.4 code which does not include
language support for annotations.
/**
* @annotate TypeSet("UTIL = java.util & !(java.util.{Enumeration, Hashtable, Vector})")
* @annotate TypeSet("XML = org.jdom+ | UTIL | java.{io, net}")
*/
package example;
- See Also:
TypeSet
value
public abstract TypeSet[] value
- The
TypeSet annotations to apply to the package.
Copyright © 2011 Surelogic, Inc.. All Rights Reserved.