KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jruby > compiler > ZArrayNodeCompiler


1 /*
2  * ZArrayNodeCompiler.java
3  *
4  * Created on January 31, 2007, 6:37 PM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.jruby.compiler;
11
12 import org.jruby.ast.Node;
13
14 /**
15  *
16  * @author headius
17  */

18 public class ZArrayNodeCompiler implements NodeCompiler {
19     
20     /** Creates a new instance of ZArrayNodeCompiler */
21     public ZArrayNodeCompiler() {
22     }
23     
24     public void compile(Node node, Compiler JavaDoc context) {
25         context.lineNumber(node.getPosition());
26         
27         context.createEmptyArray();
28     }
29     
30 }
31
Popular Tags