Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jet/templates/writeJavaExpression.jet')
-rw-r--r--plugins/org.eclipse.jet/templates/writeJavaExpression.jet7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.jet/templates/writeJavaExpression.jet b/plugins/org.eclipse.jet/templates/writeJavaExpression.jet
new file mode 100644
index 0000000..54b1571
--- /dev/null
+++ b/plugins/org.eclipse.jet/templates/writeJavaExpression.jet
@@ -0,0 +1,7 @@
+<%@jet class="WriteJavaExpressionTemplate" %>
+<%@jet imports="org.eclipse.jet.compiler.JET2Expression"%>
+<%
+final String indent = (String)context.getVariable("indent"); //$NON-NLS-1$
+final JET2Expression expr = (JET2Expression)context.getVariable("element"); //$NON-NLS-1$
+%>
+<%= indent %>out.write(<%= expr.getJavaContent() %>);

Back to the top