To define a new expression template parameter, you must subclass this class and implement the ExpressionTemplateParameter.expression() method, which actually defines the Java expression. It corresponds to a spoon.reflect.code.CtExpression .