KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > refactoring > typeconstraints > ITypeConstraint


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.corext.refactoring.typeconstraints;
12
13 public interface ITypeConstraint {
14     /**
15      * Returns the resolved representation of the constraint.
16      * For example, if <code>toString</code> returns "[a] &lt;= [b]" and types of 'a' and 'b' are A and B,
17      * repespectively, then this method returns "A &lt;= B".
18      *
19      * This method is provided for debugging purposes only.
20      */

21     public abstract String JavaDoc toResolvedString();
22
23     /**
24      * Returns whether this is a simple constraint. If so, it can be safely downcast to
25      * <code>SimpleTypeConstraint</code>.
26      */

27     public boolean isSimpleTypeConstraint();
28 }
29
Popular Tags