Package ghidra.program.model.util
Class CompositeDataTypeElementInfo
- java.lang.Object
-
- ghidra.program.model.util.DataTypeInfo
-
- ghidra.program.model.util.CompositeDataTypeElementInfo
-
public class CompositeDataTypeElementInfo extends DataTypeInfo
-
-
Field Summary
-
Fields inherited from class ghidra.program.model.util.DataTypeInfo
dataTypeAlignment, dataTypeHandle, dataTypeLength
-
-
Constructor Summary
Constructors Constructor Description CompositeDataTypeElementInfo(DataTypeInfo dataTypeInfo, int dataTypeOffset)
Constructor for CompositeDataTypeElementInfo (copy-ish).CompositeDataTypeElementInfo(java.lang.Object dataTypeHandle, int dataTypeOffset, int dataTypeLength, int dataTypeAlignment)
Constructor for CompositeDataTypeElementInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
getDataTypeOffset()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class ghidra.program.model.util.DataTypeInfo
getDataTypeAlignment, getDataTypeHandle, getDataTypeLength
-
-
-
-
Constructor Detail
-
CompositeDataTypeElementInfo
public CompositeDataTypeElementInfo(java.lang.Object dataTypeHandle, int dataTypeOffset, int dataTypeLength, int dataTypeAlignment)
Constructor for CompositeDataTypeElementInfo.- Parameters:
dataTypeHandle
- any Object providing identity for this data typedataTypeOffset
- the offset of the element within the outer composite data typedataTypeLength
- the length of the data typedataTypeAlignment
- the alignment of the data type
-
CompositeDataTypeElementInfo
public CompositeDataTypeElementInfo(DataTypeInfo dataTypeInfo, int dataTypeOffset)
Constructor for CompositeDataTypeElementInfo (copy-ish).- Parameters:
dataTypeInfo
- the dataType this CompositeDataTypeElementInfo is based upondataTypeOffset
- the offset of the element within the outer composite data type
-
-
Method Detail
-
getDataTypeOffset
public int getDataTypeOffset()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDataTypeInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classDataTypeInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-