summaryrefslogtreecommitdiff
path: root/src/test/java/lionel2/Printer.oj
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/lionel2/Printer.oj')
-rw-r--r--src/test/java/lionel2/Printer.oj18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/lionel2/Printer.oj b/src/test/java/lionel2/Printer.oj
new file mode 100644
index 0000000..b196798
--- /dev/null
+++ b/src/test/java/lionel2/Printer.oj
@@ -0,0 +1,18 @@
+package lionel2;
+
+import io.devnulllabs.openjava.mop.*;
+import io.devnulllabs.openjava.ptree.*;
+
+public class Printer instantiates Metaclass extends OJClass {
+ public void translateDefinition() throws MOPException {
+ System.out.println("translateDefinition() of " + getName());
+ }
+
+ public Expression expandAllocation(
+ Environment env,
+ AllocationExpression expr) {
+ System.out.println(
+ "expandAllocation() of " + getName() + " for " + expr.toString());
+ return expr;
+ }
+}