1 /******************************************************************************* 2 * Copyright (c) 2000, 2008 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.jdt.internal.corext.refactoring.typeconstraints; 15 16 public interface ITypeConstraint { 17 /** 18 * Returns the resolved representation of the constraint. 19 * For example, if <code>toString</code> returns "[a] <= [b]" and types of 'a' and 'b' are A and B, 20 * repespectively, then this method returns "A <= B". 21 * 22 * This method is provided for debugging purposes only. 23 */ toResolvedString()24 public abstract String toResolvedString(); 25 26 /** 27 * Returns whether this is a simple constraint. If so, it can be safely downcast to 28 * <code>SimpleTypeConstraint</code>. 29 */ isSimpleTypeConstraint()30 public boolean isSimpleTypeConstraint(); 31 } 32