Create Complex Expressions
The class attribute of the introduction can only handle a single class expression. If you want a boolean expression, you can instead use the expr XML attribute. You can have any scoped boolean expression. The class(..) keyword will have a class expression within it. You can also specify a has or hasField expression as well. The example shows how to use the expr XML attribute. First we add some metadata to POJO3 and POJO4. Then we use these tags in our introduction expression: java.io.Serializable The expr states: Any class that has a method tagged as @Test or any class that is itself tagged @Test2.