KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > umd > cs > findbugs > ba > type > DoubleExtraType


1 /*
2  * Bytecode Analysis Framework
3  * Copyright (C) 2003,2004 University of Maryland
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19
20 package edu.umd.cs.findbugs.ba.type;
21
22 import org.apache.bcel.generic.Type;
23
24 /**
25  * Special type used to represent the "extra" part of a double
26  * value. We say that when a double is stored, local <i>n</i> will
27  * have type double, and local <i>n+1</i> will have this
28  * type.
29  *
30  * @author David Hovemeyer
31  * @see TypeAnalysis
32  * @see TypeFrame
33  * @see TypeMerger
34  */

35 public class DoubleExtraType extends Type implements ExtendedTypes {
36     /**
37      *
38      */

39     private static final long serialVersionUID = 1L;
40     private static final Type theInstance = new DoubleExtraType();
41
42     private DoubleExtraType() {
43         super(T_DOUBLE_EXTRA, "<double extra>");
44     }
45
46     @Override JavaDoc
47          public int hashCode() {
48         return System.identityHashCode(this);
49     }
50
51     @Override JavaDoc
52          public boolean equals(Object JavaDoc o) {
53         return o == this;
54     }
55
56     public static Type instance() {
57         return theInstance;
58     }
59 }
60
61 // vim:ts=4
62
Popular Tags