Package org.maltparserx.core.feature.function

Source Code of org.maltparserx.core.feature.function.AddressFunction

package org.maltparserx.core.feature.function;

import org.maltparserx.core.exception.MaltChainedException;
import org.maltparserx.core.feature.value.AddressValue;

/**
*
*
* @author Johan Hall
*/
public abstract class AddressFunction implements Function {
  protected AddressValue address;
  public AddressFunction() {
    address = new AddressValue(this);
  }
 
  public abstract void update(Object[] arguments) throws MaltChainedException;
 
  /**
   * Returns the address value of address function
   *
   * @return the address value of address function
   */
  public AddressValue getAddressValue() {
    return address;
  }
 
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;

    return address.equals(((AddressFunction)obj).getAddressValue());
  }

  public String toString() {
    return address.toString();
  }
}
TOP

Related Classes of org.maltparserx.core.feature.function.AddressFunction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.