01: /*
02: * $Id: DivisionAssignmentNode.java,v 1.11 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.core.Any.Op;
15: import anvil.codec.Code;
16: import anvil.script.compiler.ByteCompiler;
17: import anvil.script.Context;
18: import java.io.IOException;
19:
20: /**
21: * class DivisionAssignmentNode
22: *
23: * @author: Jani Lehtimäki
24: */
25: public class DivisionAssignmentNode extends AbstractAssignmentNode {
26:
27: public DivisionAssignmentNode(Location location, int childs) {
28: super (location, childs);
29: }
30:
31: public int typeOf() {
32: return Node.EXPR_ASSIGN_DIVIDE;
33: }
34:
35: public String getOperator() {
36: return "/=";
37: }
38:
39: protected String getAssignmentMethod() {
40: return "div";
41: }
42:
43: }
|