ModuloAssignmentNode.java :  » Web-Framework » anvil » anvil » script » expression » Java Open Source

Java Open Source » Web Framework » anvil 
anvil » anvil » script » expression » ModuloAssignmentNode.java
/*
 * $Id: ModuloAssignmentNode.java,v 1.11 2002/09/16 08:05:05 jkl Exp $
 *
 * Copyright (c) 2002 Njet Communications Ltd. All Rights Reserved.
 *
 * Use is subject to license terms, as defined in
 * Anvil Sofware License, Version 1.1. See LICENSE 
 * file, or http://njet.org/license-1.1.txt
 */
package anvil.script.expression;

import anvil.Location;
import anvil.core.Any;
import anvil.core.Any.Op;
import anvil.codec.Code;
import anvil.script.compiler.ByteCompiler;
import anvil.script.Context;
import java.io.IOException;

/**
 * class ModuloAssignmentNode
 *
 * @author: Jani Lehtimki
 */
public class ModuloAssignmentNode extends AbstractAssignmentNode
{

  public ModuloAssignmentNode(Location location, int childs) 
  {
    super(location, childs);
  }


  public int typeOf() 
  {
    return Node.EXPR_ASSIGN_MODULO;
  }

 
  public String getOperator() 
  {
    return "%=";
  }

 
  protected String getAssignmentMethod()
  {
    return "mod";
  }


}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.