private JExpression dotClass(final JType cl) { if (cl instanceof JClass) { return ((JClass)cl).dotclass(); } else { return new JExpressionImpl() { public void generate(final JFormatter f) { f.g(cl).p(".class"); } }; } }
private JAnnotationUse param(final JType type) { if (type instanceof JClass) { return annotationUse.param(this.name, (JClass) type); } else { return annotationUse.param(this.name, new JExpressionImpl() { public void generate(JFormatter f) { f.g(type).p(".class"); } }); } }
private JAnnotationArrayMember param(final JType type) { if (type instanceof JClass) { return annotationArrayMember.param((JClass) type); } else { return annotationArrayMember.param(new JExpressionImpl() { public void generate(JFormatter f) { f.g(type).p(".class"); } }); } }