Package ghidra.util.datastruct
Class DataTable
- java.lang.Object
- 
- ghidra.util.datastruct.DataTable
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 - Direct Known Subclasses:
- ManagedDataTable
 
 public class DataTable extends java.lang.Object implements java.io.SerializableTable for managing rows and columns of data.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DataTable()Creates a new DataTable.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyRowTo(int row, DataTable table, int toRow)Copy one row to another row.booleangetBoolean(int row, int col)Returns the boolean at the given row, column.bytegetByte(int row, int col)Returns the byte at the given row, column.byte[]getByteArray(int row, int col)Returns the byte array at the given row, column.doublegetDouble(int row, int col)Returns the double at the given row, column.double[]getDoubleArray(int row, int col)Returns the double array at the given row, column.floatgetFloat(int row, int col)Returns the float at the given row, column.float[]getFloatArray(int row, int col)Returns the float array at the given row, column.intgetInt(int row, int col)Returns the int at the given row, column.int[]getIntArray(int row, int col)Returns the int array at the given row, column.longgetLong(int row, int col)Returns the long at the given row, column.long[]getLongArray(int row, int col)Returns the long array at the given row, column.java.lang.ObjectgetObject(int row, int col)Returns the Object at the given row, column.shortgetShort(int row, int col)Returns the short at the given row, column.short[]getShortArray(int row, int col)Returns the short array at the given row, column.java.lang.StringgetString(int row, int col)Returns the string at the given row, column.java.lang.String[]getStringArray(int row, int col)Returns the String array at the given row, column.voidputBoolean(int row, int col, boolean value)Stores a boolean value in the table at the given row and column.voidputByte(int row, int col, byte value)Stores a byte value in the table at the given row and column.voidputByteArray(int row, int col, byte[] value)Stores an byte array in the table at the given row and column.voidputDouble(int row, int col, double value)Stores a double value in the table at the given row and column.voidputDoubleArray(int row, int col, double[] value)Stores a double array in the table at the given row and column.voidputFloat(int row, int col, float value)Stores a float value in the table at the given row and column.voidputFloatArray(int row, int col, float[] value)Stores a float array in the table at the given row and column.voidputInt(int row, int col, int value)Stores an int value in the table at the given row and column.voidputIntArray(int row, int col, int[] value)Stores an int array in the table at the given row and column.voidputLong(int row, int col, long value)Stores a long value in the table at the given row and column.voidputLongArray(int row, int col, long[] value)Stores an long array in the table at the given row and column.voidputObject(int row, int col, java.lang.Object value)Stores an Object in the table at the given row and column.voidputShort(int row, int col, short value)Stores a short value in the table at the given row and column.voidputShortArray(int row, int col, short[] value)Stores an short array in the table at the given row and column.voidputString(int row, int col, java.lang.String value)Stores a String in the table at the given row and column.voidputStringArray(int row, int col, java.lang.String[] value)Stores a String array in the table at the given row and column.voidremoveRow(int row)Removes the given row from the table.
 
- 
- 
- 
Method Detail- 
removeRowpublic void removeRow(int row) Removes the given row from the table.- Parameters:
- row- The row to be removed
 
 - 
copyRowTopublic void copyRowTo(int row, DataTable table, int toRow)Copy one row to another row.- Parameters:
- row- source row
- table- table containing the data
- toRow- destination row
 
 - 
putBooleanpublic void putBoolean(int row, int col, boolean value)Stores a boolean value in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getBooleanpublic boolean getBoolean(int row, int col)Returns the boolean at the given row, column.- Parameters:
- row- the row in the table
- col- the column in the table (field num)
- Returns:
- the boolean value in the table
 
 - 
putBytepublic void putByte(int row, int col, byte value)Stores a byte value in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getBytepublic byte getByte(int row, int col)Returns the byte at the given row, column.- Parameters:
- row- the row in the table
- col- the column in the table (field num)
- Returns:
- the byte value in the table
 
 - 
putShortpublic void putShort(int row, int col, short value)Stores a short value in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getShortpublic short getShort(int row, int col)Returns the short at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the short value.
 
 - 
putIntpublic void putInt(int row, int col, int value)Stores an int value in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getIntpublic int getInt(int row, int col)Returns the int at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the int value.
 
 - 
putLongpublic void putLong(int row, int col, long value)Stores a long value in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
putDoublepublic void putDouble(int row, int col, double value)Stores a double value in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
putFloatpublic void putFloat(int row, int col, float value)Stores a float value in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getLongpublic long getLong(int row, int col)Returns the long at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the long value.
 
 - 
getFloatpublic float getFloat(int row, int col)Returns the float at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the float value.
 
 - 
getDoublepublic double getDouble(int row, int col)Returns the double at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the double value.
 
 - 
putStringpublic void putString(int row, int col, java.lang.String value)Stores a String in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
putObjectpublic void putObject(int row, int col, java.lang.Object value)Stores an Object in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getStringpublic java.lang.String getString(int row, int col)Returns the string at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the int value.
 
 - 
getObjectpublic java.lang.Object getObject(int row, int col)Returns the Object at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the Object value.
 
 - 
putByteArraypublic void putByteArray(int row, int col, byte[] value)Stores an byte array in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getByteArraypublic byte[] getByteArray(int row, int col)Returns the byte array at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the int value.
 
 - 
putShortArraypublic void putShortArray(int row, int col, short[] value)Stores an short array in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getShortArraypublic short[] getShortArray(int row, int col)Returns the short array at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the int value.
 
 - 
putIntArraypublic void putIntArray(int row, int col, int[] value)Stores an int array in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
putFloatArraypublic void putFloatArray(int row, int col, float[] value)Stores a float array in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
putDoubleArraypublic void putDoubleArray(int row, int col, double[] value)Stores a double array in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getIntArraypublic int[] getIntArray(int row, int col)Returns the int array at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the int value.
 
 - 
putLongArraypublic void putLongArray(int row, int col, long[] value)Stores an long array in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getLongArraypublic long[] getLongArray(int row, int col)Returns the long array at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the long[] value.
 
 - 
getFloatArraypublic float[] getFloatArray(int row, int col)Returns the float array at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the float[] value.
 
 - 
getDoubleArraypublic double[] getDoubleArray(int row, int col)Returns the double array at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the int value.
 
 - 
putStringArraypublic void putStringArray(int row, int col, java.lang.String[] value)Stores a String array in the table at the given row and column. Note - all values in a given column must be of the same type.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- value- The value to store.
 
 - 
getStringArraypublic java.lang.String[] getStringArray(int row, int col)Returns the String array at the given row, column.- Parameters:
- row- The row into the table (specifies which object)
- col- The column of the table. (specifies which field)
- Returns:
- the String[] value.
 
 
- 
 
-