APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.jvm.hotspot.debugger.cdbg.basic

public Class BasicEnumType

extends BasicIntType
implements EnumType
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.debugger.cdbg.EnumType, sun.jvm.hotspot.debugger.cdbg.IntType, sun.jvm.hotspot.debugger.cdbg.Type
Imports
java.util.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.debugger.cdbg.*, sun.jvm.hotspot.utilities.Assert

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private List<BasicEnumType.Enum>
private Type

Constructor Summary

AccessConstructor and Description
public
BasicEnumType(String name, Type underlyingType)

Underlying type of enum must be an integer type (or as yet unresolved)

private
BasicEnumType(String name, Type underlyingType, int cvAttributes)

Method Summary

Modifier and TypeMethod and Description
public void
addEnum(String name, long val)

public EnumType
protected Type
public String
enumNameForValue(long val)

Implements sun.jvm.hotspot.debugger.cdbg.EnumType.enumNameForValue.

Return name for given enum value, or null if not found

public String
getEnumName(int i)

Implements sun.jvm.hotspot.debugger.cdbg.EnumType.getEnumName.

Fetch ith (0..getNumEnumerants() - 1) name

public long
getEnumValue(int i)

Implements sun.jvm.hotspot.debugger.cdbg.EnumType.getEnumValue.

Fetch ith (0..getNumEnumerants() - 1) value

public int
getNumEnumerates()

Implements sun.jvm.hotspot.debugger.cdbg.EnumType.getNumEnumerates.

Number of enumerates defined in this enum

public int
public boolean
public void
iterateObject(Address a, ObjectVisitor v, FieldIdentifier f)

Overrides sun.jvm.hotspot.debugger.cdbg.basic.BasicIntType.iterateObject.

Implements sun.jvm.hotspot.debugger.cdbg.Type.iterateObject.

Alternate visitor which allows end user to specify the FieldIdentifier associated with this type (typically for visiting locals in a frame)

pack-priv Type
public void
Inherited from sun.jvm.hotspot.debugger.cdbg.basic.BasicIntType:
asIntgetIntSize

Field Detail

enumsback to summary
private List<BasicEnumType.Enum> enums
underlyingTypeback to summary
private Type underlyingType

Constructor Detail

BasicEnumTypeback to summary
public BasicEnumType(String name, Type underlyingType)

Underlying type of enum must be an integer type (or as yet unresolved)

BasicEnumTypeback to summary
private BasicEnumType(String name, Type underlyingType, int cvAttributes)

Method Detail

addEnumback to summary
public void addEnum(String name, long val)
asEnumback to summary
public EnumType asEnum()

Overrides sun.jvm.hotspot.debugger.cdbg.basic.BasicType.asEnum.

Implements sun.jvm.hotspot.debugger.cdbg.Type.asEnum.

createCVVariantback to summary
protected Type createCVVariant(int cvAttributes)

Overrides sun.jvm.hotspot.debugger.cdbg.basic.BasicIntType.createCVVariant.

enumNameForValueback to summary
public String enumNameForValue(long val)

Implements sun.jvm.hotspot.debugger.cdbg.EnumType.enumNameForValue.

Doc from sun.jvm.hotspot.debugger.cdbg.EnumType.enumNameForValue.

Return name for given enum value, or null if not found

getEnumNameback to summary
public String getEnumName(int i)

Implements sun.jvm.hotspot.debugger.cdbg.EnumType.getEnumName.

Doc from sun.jvm.hotspot.debugger.cdbg.EnumType.getEnumName.

Fetch ith (0..getNumEnumerants() - 1) name

getEnumValueback to summary
public long getEnumValue(int i)

Implements sun.jvm.hotspot.debugger.cdbg.EnumType.getEnumValue.

Doc from sun.jvm.hotspot.debugger.cdbg.EnumType.getEnumValue.

Fetch ith (0..getNumEnumerants() - 1) value

getNumEnumeratesback to summary
public int getNumEnumerates()

Implements sun.jvm.hotspot.debugger.cdbg.EnumType.getNumEnumerates.

Doc from sun.jvm.hotspot.debugger.cdbg.EnumType.getNumEnumerates.

Number of enumerates defined in this enum

getSizeback to summary
public int getSize()

Overrides sun.jvm.hotspot.debugger.cdbg.basic.BasicType.getSize.

Implements sun.jvm.hotspot.debugger.cdbg.Type.getSize.

Doc from sun.jvm.hotspot.debugger.cdbg.Type.getSize.

Size of the type in bytes

isUnsignedback to summary
public boolean isUnsigned()

Overrides sun.jvm.hotspot.debugger.cdbg.basic.BasicIntType.isUnsigned.

Implements sun.jvm.hotspot.debugger.cdbg.IntType.isUnsigned.

Doc from sun.jvm.hotspot.debugger.cdbg.IntType.isUnsigned.

Indicates whether this type is unsigned

iterateObjectback to summary
public void iterateObject(Address a, ObjectVisitor v, FieldIdentifier f)

Overrides sun.jvm.hotspot.debugger.cdbg.basic.BasicIntType.iterateObject.

Implements sun.jvm.hotspot.debugger.cdbg.Type.iterateObject.

Doc from sun.jvm.hotspot.debugger.cdbg.Type.iterateObject.

Alternate visitor which allows end user to specify the FieldIdentifier associated with this type (typically for visiting locals in a frame)

resolveTypesback to summary
pack-priv Type resolveTypes(BasicCDebugInfoDataBase db, ResolveListener listener)

Overrides sun.jvm.hotspot.debugger.cdbg.basic.BasicType.resolveTypes.

visitback to summary
public void visit(TypeVisitor v)

Overrides sun.jvm.hotspot.debugger.cdbg.basic.BasicIntType.visit.

sun.jvm.hotspot.debugger.cdbg.basic back to summary

private Class BasicEnumType.Enum

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv long

Constructor Summary

AccessConstructor and Description
pack-priv
Enum(String name, long value)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
pack-priv long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
pack-priv String name
valueback to summary
pack-priv long value

Constructor Detail

Enumback to summary
pack-priv Enum(String name, long value)

Method Detail

getNameback to summary
pack-priv String getName()
getValueback to summary
pack-priv long getValue()