KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jicengine > element > impl > ContainerElementCompiler


1 package org.jicengine.element.impl;
2
3 import org.jicengine.element.*;
4 import org.jicengine.operation.Context;
5 import org.jicengine.operation.Operation;
6 import org.jicengine.operation.PushVariableOperation;
7 import org.jicengine.operation.EmptyOperation;
8 import java.util.*;
9
10 /**
11  *
12  *
13  * <p>
14  * Copyright (C) 2004 Timo Laitinen
15  * </p>
16  * @author Timo Laitinen
17  * @created 2004-09-20
18  * @since JICE-0.10
19  *
20  */

21
22 public class ContainerElementCompiler extends ElementCompiler {
23
24     public ContainerElementCompiler(String JavaDoc name, Location location)
25     {
26         super(name, location);
27     }
28
29     /**
30      * compiles the unused value element to an action element, that
31      * doesn't actually do anything than just creates the value..
32      */

33     protected ActionElement handleLooseVariableElement(VariableElement child) throws org.jicengine.element.ElementException
34     {
35         return new WrapperActionElement(child, child.getLocation(), new PushVariableOperation(Element.VARIABLE_NAME_ELEMENT_INSTANCE, child.getName()));
36     }
37
38 }
39
Popular Tags