APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvm.hotspot.types.basic

public Class BasicCIntegerType

extends BasicType
implements CIntegerType
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.types.CIntegerType, sun.jvm.hotspot.types.Type
Imports
java.util.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.types.*

This specialization of BasicType implements the CIntegerType interface and describes all C integer types.

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from sun.jvm.hotspot.types.basic.BasicType:
db

Constructor Summary

AccessConstructor and Description
public
BasicCIntegerType(BasicTypeDataBase db, String name, boolean isUnsigned)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object obj)

Overrides sun.jvm.hotspot.types.basic.BasicType.equals.

Indicates whether some other object is "equal to" this one.

public boolean
isCIntegerType()

Overrides sun.jvm.hotspot.types.basic.BasicType.isCIntegerType.

Implements sun.jvm.hotspot.types.Type.isCIntegerType.

Indicates whether this type is a C integer type -- regardless of size or signedness.

public boolean
isUnsigned()

Implements sun.jvm.hotspot.types.CIntegerType.isUnsigned.

Is this integer type unsigned?

public long
maxValue()

Implements sun.jvm.hotspot.types.CIntegerType.maxValue.

What is the maximum value of this type?

public long
minValue()

Implements sun.jvm.hotspot.types.CIntegerType.minValue.

What is the minimum value of this type?

public void
setIsUnsigned(boolean isUnsigned)

This should be called at most once, and only by the builder of the TypeDataBase

public String
toString()

Overrides sun.jvm.hotspot.types.basic.BasicType.toString.

Returns a string representation of the object.

Inherited from sun.jvm.hotspot.types.basic.BasicType:
addFieldgetAddressFieldgetCIntegerFieldgetFieldgetFieldgetFieldgetFieldgetFieldgetFieldsgetJBooleanFieldgetJByteFieldgetJCharFieldgetJDoubleFieldgetJFloatFieldgetJIntFieldgetJLongFieldgetJShortFieldgetNamegetNarrowOopFieldgetOopFieldgetSizegetSuperclasshashCodeisCStringTypeisJavaPrimitiveTypeisOopTypeisPointerTyperemoveFieldsetIsJavaPrimitiveTypesetIsOopTypesetSizesetSuperclass

Field Detail

isUnsignedback to summary
private boolean isUnsigned

Constructor Detail

BasicCIntegerTypeback to summary
public BasicCIntegerType(BasicTypeDataBase db, String name, boolean isUnsigned)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides sun.jvm.hotspot.types.basic.BasicType.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

isCIntegerTypeback to summary
public boolean isCIntegerType()

Overrides sun.jvm.hotspot.types.basic.BasicType.isCIntegerType.

Implements sun.jvm.hotspot.types.Type.isCIntegerType.

Doc from sun.jvm.hotspot.types.Type.isCIntegerType.

Indicates whether this type is a C integer type -- regardless of size or signedness.

isUnsignedback to summary
public boolean isUnsigned()

Implements sun.jvm.hotspot.types.CIntegerType.isUnsigned.

Doc from sun.jvm.hotspot.types.CIntegerType.isUnsigned.

Is this integer type unsigned?

maxValueback to summary
public long maxValue()

Implements sun.jvm.hotspot.types.CIntegerType.maxValue.

Doc from sun.jvm.hotspot.types.CIntegerType.maxValue.

What is the maximum value of this type? Note that this will not work properly for unsigned long longs.

minValueback to summary
public long minValue()

Implements sun.jvm.hotspot.types.CIntegerType.minValue.

Doc from sun.jvm.hotspot.types.CIntegerType.minValue.

What is the minimum value of this type? Note that this will not work properly for unsigned long longs.

setIsUnsignedback to summary
public void setIsUnsigned(boolean isUnsigned)

This should be called at most once, and only by the builder of the TypeDataBase

toStringback to summary
public String toString()

Overrides sun.jvm.hotspot.types.basic.BasicType.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.