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: * Robert M. Fuhrer (rfuhrer@watson.ibm.com), IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.corext.refactoring.typeconstraints.typesets;
11:
12: import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TType;
13:
14: public class TypeUniverseSet extends SubTypesOfSingleton {
15:
16: TypeUniverseSet(TypeSetEnvironment typeSetEnvironment) {
17: super (typeSetEnvironment.getJavaLangObject(),
18: typeSetEnvironment);
19: }
20:
21: /* (non-Javadoc)
22: * @see org.eclipse.jdt.internal.corext.refactoring.typeconstraints.typesets.SubTypesSet#contains(TType)
23: */
24: public boolean contains(TType t) {
25: return true;
26: }
27:
28: /* (non-Javadoc)
29: * @see org.eclipse.jdt.internal.corext.refactoring.typeconstraints.typesets.SubTypesSet#containsAll(org.eclipse.jdt.internal.corext.refactoring.typeconstraints.typesets.TypeSet)
30: */
31: public boolean containsAll(TypeSet s) {
32: return true;
33: }
34:
35: /* (non-Javadoc)
36: * @see org.eclipse.jdt.internal.corext.refactoring.typeconstraints.typesets.TypeSet#addedTo(org.eclipse.jdt.internal.corext.refactoring.typeconstraints.typesets.TypeSet)
37: */
38: public TypeSet addedTo(TypeSet that) {
39: return this ;
40: }
41:
42: /* (non-Javadoc)
43: * @see org.eclipse.jdt.internal.corext.refactoring.typeconstraints.typesets.SubTypesOfSingleton#makeClone()
44: */
45: public TypeSet makeClone() {
46: return this ; // new TypeUniverseSet();
47: }
48:
49: public String toString() {
50: return "{ " + fID + ": <universe> }"; //$NON-NLS-1$//$NON-NLS-2$
51: }
52: }
|