KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * SValueNodeCompiler.java
3  *
4  * Created on January 31, 2007, 10:50 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.AttrAssignNode;
13 import org.jruby.ast.MultipleAsgnNode;
14 import org.jruby.ast.Node;
15 import org.jruby.ast.NodeTypes;
16
17 /**
18  *
19  * @author headius
20  */

21 public class MultipleAsgnNodeCompiler implements NodeCompiler{
22     
23     /** Creates a new instance of SValueNodeCompiler */
24     public MultipleAsgnNodeCompiler() {
25     }
26     
27     public void compile(Node node, Compiler JavaDoc context) {
28         context.lineNumber(node.getPosition());
29         
30         MultipleAsgnNode multipleAsgnNode = (MultipleAsgnNode)node;
31         
32         NodeCompilerFactory.getCompiler(multipleAsgnNode.getValueNode()).compile(multipleAsgnNode.getValueNode(), context);
33         
34         NodeCompilerFactory.getAssignmentCompiler(multipleAsgnNode).compile(multipleAsgnNode, context);
35     }
36 }
37
Popular Tags