KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * NilNodeCompiler.java
3  *
4  * Created on January 12, 2007, 12:55 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 NilNodeCompiler implements NodeCompiler{
19     
20     /** Creates a new instance of NilNodeCompiler */
21     public NilNodeCompiler() {
22     }
23     
24     public void compile(Node node, Compiler JavaDoc context) {
25         context.lineNumber(node.getPosition());
26         
27         context.loadNil();
28     }
29     
30 }
31
Popular Tags