All Downloads are FREE. Search and download functionalities are using the official Maven repository.

boomerang.scene.wala.WALAField Maven / Gradle / Ivy

There is a newer version: 3.2.2
Show newest version
/**
 * ***************************************************************************** Copyright (c) 2020
 * CodeShield GmbH, Paderborn, Germany. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * 

SPDX-License-Identifier: EPL-2.0 * *

Contributors: Johannes Spaeth - initial API and implementation * ***************************************************************************** */ package boomerang.scene.wala; import boomerang.scene.Field; import com.ibm.wala.types.FieldReference; public class WALAField extends Field { private FieldReference fieldRef; public WALAField(FieldReference fieldRef) { this.fieldRef = fieldRef; } @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((fieldRef == null) ? 0 : fieldRef.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; WALAField other = (WALAField) obj; if (fieldRef == null) { if (other.fieldRef != null) return false; } else if (!fieldRef.equals(other.fieldRef)) return false; return true; } @Override public String toString() { return fieldRef.toString(); } @Override public boolean isInnerClassField() { throw new RuntimeException("Not yet implemented"); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy