Top Description Fields Constructors Methods
org.apache.bcel.verifier.structurals

public Class UninitializedObjectType

extends ReferenceType
implements Constants
Class Inheritance
All Implemented Interfaces
org.apache.bcel.Constants
Imports
org.apache.bcel.Const, .Constants, org.apache.bcel.generic.ObjectType, .ReferenceType

Deprecated

as a consequence of Constants being deprecated. See corresponding docs for further information.

This class represents an uninitialized object type; see The Java Virtual Machine Specification, Second Edition, page 147: 4.9.4 for more details.

Field Summary

Modifier and TypeField and Description
private final ObjectType
initialized

The "initialized" version.

Constructor Summary

AccessConstructor and Description
public
UninitializedObjectType(final ObjectType
uninitialized object type.
objectType
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(final Object
the reference object with which to compare.
o
)

Overrides org.apache.bcel.generic.Type.equals.

Returns true on equality of this and o.
public ObjectType

Returns:

the ObjectType.
getInitialized
()

Returns the ObjectType of the same class as the one of the uninitialized object represented by this UninitializedObjectType instance.

public int

Returns:

a hash code value for the object.
hashCode
()

Overrides org.apache.bcel.generic.Type.hashCode.

Returns a hash code value for the object.
Inherited from org.apache.bcel.generic.ReferenceType:
firstCommonSuperclassgetFirstCommonSuperclassisAssignmentCompatibleWithisCastableTo

Field Detail

initializedback to summary
private final ObjectType initialized

The "initialized" version.

Constructor Detail

UninitializedObjectTypeback to summary
public UninitializedObjectType(final ObjectType objectType)

Creates a new instance.

Parameters
objectType:ObjectType

uninitialized object type.

Method Detail

equalsback to summary
public boolean equals(final Object o)

Overrides org.apache.bcel.generic.Type.equals.

Returns true on equality of this and o. Equality means the ObjectType instances of "initialized" equal one another in this and the o instance.

Parameters
o:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from org.apache.bcel.generic.Type.equals.

whether the Types are equal

Annotations
@Override
getInitializedback to summary
public ObjectType getInitialized()

Returns the ObjectType of the same class as the one of the uninitialized object represented by this UninitializedObjectType instance.

Returns:ObjectType

the ObjectType.

hashCodeback to summary
public int hashCode()

Overrides org.apache.bcel.generic.Type.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for the object.

Annotations
@Override