public class ClassConstraintFactory extends Object
Constructor and Description |
---|
ClassConstraintFactory() |
Modifier and Type | Method and Description |
---|---|
Expression |
abstr()
This constraint passes if the checked class is abstract
|
Expression |
assignableTo(Class clazz)
Checks wether a class is an instance of (or subclass of) the class
passed in the clazz parameter.
|
Expression |
name(Expression expression)
Returns an expression that checks wether the classes name passes
the expression passed in the parameter expression.
|
public Expression assignableTo(Class clazz)
clazz
- The class to to check if it is if the checked class is assignable to.public Expression abstr()
ClassIsAbstractConstraint
public Expression name(Expression expression)
expression
- The expression to checkCopyright © 2005-2013 Agical AB. All Rights Reserved.