01: /*
02: * $Id: AssignmentNode.java,v 1.12 2002/09/16 08:05:04 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.expression;
11:
12: import anvil.Location;
13: import anvil.core.Any;
14: import anvil.codec.Code;
15: import anvil.script.compiler.ByteCompiler;
16: import anvil.script.Context;
17: import java.io.IOException;
18:
19: /**
20: * class AssignmentNode
21: *
22: * @author: Jani Lehtimäki
23: */
24: public class AssignmentNode extends AbstractAssignmentNode {
25:
26: public AssignmentNode(Location location, int childs) {
27: super (location, childs);
28: }
29:
30: public AssignmentNode(Parent parent) {
31: super (parent);
32: }
33:
34: public int typeOf() {
35: return Node.EXPR_ASSIGN;
36: }
37:
38: public String getOperator() {
39: return "=";
40: }
41:
42: protected String getAssignmentMethod() {
43: return "assign";
44: }
45:
46: public void compileOperation(ByteCompiler context, Node left,
47: Node right) {
48: left.compile(context, right);
49: }
50:
51: }
|