Package org.erlide.engine.new_model.internal

Source Code of org.erlide.engine.new_model.internal.ErlError

package org.erlide.engine.new_model.internal;

import org.eclipse.handly.model.impl.Handle;
import org.eclipse.xtend.lib.annotations.Data;
import org.eclipse.xtext.xbase.lib.Pure;
import org.eclipse.xtext.xbase.lib.util.ToStringBuilder;
import org.erlide.engine.new_model.IErlError;
import org.erlide.engine.new_model.internal.ErlForm;

@Data
@SuppressWarnings("all")
public class ErlError extends ErlForm implements IErlError {
  public String getMessage() {
    return this.name;
  }
 
  public ErlError(final Handle parent, final String name) {
    super(parent, name);
  }
 
  @Override
  @Pure
  public int hashCode() {
    final int prime = 31;
    int result = super.hashCode();
    return result;
  }
 
  @Override
  @Pure
  public boolean equals(final Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    if (!super.equals(obj))
      return false;
    ErlError other = (ErlError) obj;
    return true;
  }
 
  @Override
  @Pure
  public String toString() {
    String result = new ToStringBuilder(this)
      .addAllFields()
      .toString();
    return result;
  }
}
TOP

Related Classes of org.erlide.engine.new_model.internal.ErlError

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.