01: package org.jicengine.element.impl;
02:
03: import org.jicengine.element.*;
04: import org.jicengine.operation.Context;
05: import org.jicengine.operation.Operation;
06: import org.jicengine.operation.PushVariableOperation;
07: import org.jicengine.operation.EmptyOperation;
08: import java.util.*;
09:
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 name, Location location) {
25: super (name, location);
26: }
27:
28: /**
29: * compiles the unused value element to an action element, that
30: * doesn't actually do anything than just creates the value..
31: */
32: protected ActionElement handleLooseVariableElement(
33: VariableElement child)
34: throws org.jicengine.element.ElementException {
35: return new WrapperActionElement(child, child.getLocation(),
36: new PushVariableOperation(
37: Element.VARIABLE_NAME_ELEMENT_INSTANCE, child
38: .getName()));
39: }
40:
41: }
|