01: /*
02: * $Id: CompressStatement.java,v 1.9 2002/09/16 08:05:06 jkl Exp $
03: *
04: * Copyright (c) 2002 Njet Communications Ltd. All Rights Reserved.
05: *
06: * Use is subject to license terms, as defined in
07: * Anvil Sofware License, Version 1.1. See LICENSE
08: * file, or http://njet.org/license-1.1.txt
09: */
10: package anvil.script.statements;
11:
12: import anvil.Location;
13: import anvil.parser.Tag;
14: import anvil.script.compiler.ByteCompiler;
15: import anvil.script.Context;
16: import anvil.script.parser.TemplateParser;
17: import java.io.IOException;
18:
19: /**
20: * class CompressStatement
21: *
22: * @author: Jani Lehtimäki
23: */
24: public class CompressStatement extends Statement {
25:
26: public CompressStatement(Statement parent, Location location) {
27: super (parent, location);
28: }
29:
30: public int typeOf() {
31: return ST_COMPRESS;
32: }
33:
34: public String name() {
35: return "compress";
36: }
37:
38: public void parse(TemplateParser parser, Tag tag) {
39: FunctionStatement function = getFunctionStatement();
40: if (function != null) {
41: function.setContentState(CONTENT_COMPRESS);
42: }
43: }
44:
45: public void compile(ByteCompiler context) {
46: }
47:
48: }
|