KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Robert M. Fuhrer (rfuhrer@watson.ibm.com), IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.corext.refactoring.typeconstraints.typesets;
12
13 import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TType;
14
15 public class TypeUniverseSet extends SubTypesOfSingleton {
16
17     TypeUniverseSet(TypeSetEnvironment typeSetEnvironment) {
18         super(typeSetEnvironment.getJavaLangObject(), 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 JavaDoc toString() {
50         return "{ " + fID + ": <universe> }"; //$NON-NLS-1$//$NON-NLS-2$
51
}
52 }
53
Popular Tags