Package edu.umd.cs.findbugs.ba.type
Class NullType
- java.lang.Object
-
- org.apache.bcel.generic.Type
-
- org.apache.bcel.generic.ReferenceType
-
- edu.umd.cs.findbugs.ba.type.NullType
-
- All Implemented Interfaces:
ExtendedTypes
public class NullType extends org.apache.bcel.generic.ReferenceType implements ExtendedTypes
Special type representing the null value. This is a type which is higher in the lattice than any object type, but lower than the overall Top type. It represents the type of the null value, which may logically be merged with any object type without loss of information.- See Also:
TypeAnalysis,TypeFrame,TypeMerger
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate static NullTypetheInstance-
Fields inherited from class org.apache.bcel.generic.Type
BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, FLOAT, INT, LONG, NO_ARGS, NULL, OBJECT, SHORT, signature, STRING, STRINGBUFFER, THROWABLE, type, UNKNOWN, VOID
-
Fields inherited from interface edu.umd.cs.findbugs.ba.type.ExtendedTypes
T_AVAIL_TYPE, T_BOTTOM, T_DOUBLE_EXTRA, T_EXCEPTION, T_LONG_EXTRA, T_NULL, T_TOP
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNullType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()static NullTypeinstance()-
Methods inherited from class org.apache.bcel.generic.ReferenceType
firstCommonSuperclass, getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableTo
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
theInstance
private static final NullType theInstance
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.apache.bcel.generic.Type
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classorg.apache.bcel.generic.Type
-
instance
public static NullType instance()
-
-