com.newisys.randsolver.annotation
Annotation Type Constraint


@Retention(value=RUNTIME)
@Target(value=ANNOTATION_TYPE)
public @interface Constraint

An annotation that describes a list of constraints to be used when randomizing a class. The expr parameter is not optional. The name parameter is optional and defaults to the empty string.


Required Element Summary
 String expr
          The constraint expression(s).
 
Optional Element Summary
 String name
          The name of the constraint.
 

Element Detail

expr

public abstract String expr
The constraint expression(s). This is a String containing a list of valid constraint expressions.

Returns:
a string of constraint expressions

name

public abstract String name
The name of the constraint. name is optional and defaults to the empty string.

Returns:
the name of this constraint or the empty string if it is an unnamed constraint
Default:
""