01: /* InterpretContext.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Sat Sep 17 16:59:44 2005, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2004 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.web.servlet.dsp.impl;
20:
21: import java.io.Writer;
22:
23: import org.zkoss.xel.XelContext;
24: import org.zkoss.xel.util.SimpleXelContext;
25:
26: import org.zkoss.web.servlet.dsp.*;
27: import org.zkoss.web.servlet.dsp.action.Action;
28:
29: /**
30: * Holds the context for interpreting an {@link Interpretation}.
31: *
32: * @author tomyeh
33: */
34: class InterpretContext {
35: final DspContext dc;
36: final InterpretResolver resolver;
37: final XelContext xelc;
38: /** The action being processing, or null if no such action. */
39: Action action;
40:
41: /** Constructs an interpret context.
42: */
43: InterpretContext(DspContext dc) {
44: this .dc = dc;
45: this .resolver = new InterpretResolver(dc.getVariableResolver());
46: this .xelc = new SimpleXelContext(this.resolver, null);
47: }
48: }
|