com.sun.codemodel.JExpressionImpl Java Examples
The following examples show how to use
com.sun.codemodel.JExpressionImpl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KubernetesCoreTypeAnnotator.java From kubernetes-client with Apache License 2.0 | 5 votes |
private JExpressionImpl literalExpression(String literal) { return new JExpressionImpl() { @Override public void generate(JFormatter f) { f.p(literal); } }; }
Example #2
Source File: MetaPlugin.java From jaxb2-rich-contract-plugin with MIT License | 5 votes |
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"); } }; } }