01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.corext.refactoring.typeconstraints;
11:
12: import org.eclipse.jdt.core.dom.Expression;
13: import org.eclipse.jdt.core.dom.IMethodBinding;
14: import org.eclipse.jdt.core.dom.ITypeBinding;
15: import org.eclipse.jdt.core.dom.IVariableBinding;
16: import org.eclipse.jdt.core.dom.ReturnStatement;
17: import org.eclipse.jdt.core.dom.Type;
18:
19: public interface IConstraintVariableFactory {
20: ConstraintVariable makeExpressionOrTypeVariable(
21: Expression expression, IContext context);
22:
23: DeclaringTypeVariable makeDeclaringTypeVariable(
24: ITypeBinding memberTypeBinding);
25:
26: DeclaringTypeVariable makeDeclaringTypeVariable(
27: IVariableBinding fieldBinding);
28:
29: DeclaringTypeVariable makeDeclaringTypeVariable(
30: IMethodBinding methodBinding);
31:
32: ParameterTypeVariable makeParameterTypeVariable(
33: IMethodBinding methodBinding, int parameterIndex);
34:
35: RawBindingVariable makeRawBindingVariable(ITypeBinding binding);
36:
37: ReturnTypeVariable makeReturnTypeVariable(
38: ReturnStatement returnStatement);
39:
40: ReturnTypeVariable makeReturnTypeVariable(
41: IMethodBinding methodBinding);
42:
43: TypeVariable makeTypeVariable(Type type);
44:
45: TypeVariable makeTypeVariable(ITypeBinding binding, String source,
46: CompilationUnitRange range);
47: }
|