HeapSegment.HeapSegmentElement

public static class HeapSegment.HeapSegmentElement
extends Object implements Comparable<HeapSegment.HeapSegmentElement>

java.lang.Object
   ↳ com.android.tradefed.device.server.HeapSegment.HeapSegmentElement


Opisuje obiekt lub region zakodowany w danych HPSG.

Podsumowanie

Stałe

int KIND_ARRAY_1

Element opisuje tablicę elementów 1-bajtowych.

int KIND_ARRAY_2

Element opisuje tablicę 2-bajtowych elementów.

int KIND_ARRAY_4

Element opisuje tablicę elementów 4-bajtowych.

int KIND_ARRAY_8

Element opisuje tablicę elementów 8-bajtowych.

int KIND_CLASS_OBJECT

Element opisuje obiekt klasy.

int KIND_INVALID

Rodzaj obiektu jest nieznany lub nieokreślony.

int KIND_NATIVE

Element opisuje obiekt natywny.

int KIND_OBJECT

Element opisuje obiekt danych.

int KIND_UNKNOWN

Element opisuje nieznany typ obiektu.

int SOLIDITY_FINALIZABLE

Element oczekuje na sfinalizowanie.

int SOLIDITY_FREE

Element opisuje wolny blok.

int SOLIDITY_HARD

Element jest łatwo dostępny.

int SOLIDITY_INVALID

Dostępność obiektu jest nieznana.

int SOLIDITY_PHANTOM

Element jest dostępny w sposób nieoczywisty.

int SOLIDITY_SOFT

Element jest łatwo dostępny.

int SOLIDITY_SWEEP

Element jest niedostępny i wkrótce zostanie usunięty lub zwolniony.

int SOLIDITY_WEAK

Element jest słabo osiągalny.

Konstruktory publiczne

HeapSegmentElement()

Tworzy niezainicjowany element.

HeapSegmentElement(HeapSegment hs)

Utwórz element opisujący wpis w bieżącym położeniu hpsgData.

Metody publiczne

int compareTo(HeapSegment.HeapSegmentElement other)
int getKind()
int getLength()
int getSolidity()
HeapSegment.HeapSegmentElement set(HeapSegment hs)

Zastąp element wpisem w bieżącej pozycji hpsgData.

void setKind(int kind)
void setLength(int length)
void setSolidity(int solidity)

Stałe

KIND_ARRAY_1

public static final int KIND_ARRAY_1

Element opisuje tablicę elementów 1-bajtowych.

Wartość stała: 2 (0x00000002)

KIND_ARRAY_2

public static final int KIND_ARRAY_2

Element opisuje tablicę 2-bajtowych elementów.

Constant Value: 3 (0x00000003)

KIND_ARRAY_4

public static final int KIND_ARRAY_4

Element opisuje tablicę elementów 4-bajtowych.

Constant Value: 4 (0x00000004)

KIND_ARRAY_8

public static final int KIND_ARRAY_8

Element opisuje tablicę elementów 8-bajtowych.

Wartość stała: 5 (0x00000005)

KIND_CLASS_OBJECT

public static final int KIND_CLASS_OBJECT

Element opisuje obiekt klasy.

Constant Value: 1 (0x00000001)

KIND_INVALID

public static final int KIND_INVALID

Rodzaj obiektu jest nieznany lub nieokreślony.

Wartość stała: -1 (0xffffffff)

KIND_NATIVE

public static final int KIND_NATIVE

Element opisuje obiekt natywny.

Constant Value: 7 (0x00000007)

KIND_OBJECT

public static final int KIND_OBJECT

Element opisuje obiekt danych.

Constant Value: 0 (0x00000000)

KIND_UNKNOWN

public static final int KIND_UNKNOWN

Element opisuje nieznany typ obiektu.

Constant Value: 6 (0x00000006)

SOLIDITY_FINALIZABLE

public static final int SOLIDITY_FINALIZABLE

Element oczekuje na sfinalizowanie.

Wartość stała: 5 (0x00000005)

SOLIDITY_FREE

public static final int SOLIDITY_FREE

Element opisuje wolny blok.

Constant Value: 0 (0x00000000)

SOLIDITY_HARD

public static final int SOLIDITY_HARD

Element jest łatwo dostępny.

Constant Value: 1 (0x00000001)

SOLIDITY_INVALID

public static final int SOLIDITY_INVALID

Dostępność obiektu jest nieznana.

Wartość stała: -1 (0xffffffff)

SOLIDITY_PHANTOM

public static final int SOLIDITY_PHANTOM

Element jest dostępny w sposób nieoczywisty.

Constant Value: 4 (0x00000004)

SOLIDITY_SOFT

public static final int SOLIDITY_SOFT

Element jest łatwo dostępny.

Wartość stała: 2 (0x00000002)

SOLIDITY_SWEEP

public static final int SOLIDITY_SWEEP

Element jest niedostępny i wkrótce zostanie usunięty lub zwolniony.

Constant Value: 6 (0x00000006)

SOLIDITY_WEAK

public static final int SOLIDITY_WEAK

Element jest słabo osiągalny.

Constant Value: 3 (0x00000003)

Konstruktory publiczne

HeapSegmentElement

public HeapSegmentElement ()

Tworzy niezainicjowany element.

HeapSegmentElement

public HeapSegmentElement (HeapSegment hs)

Utwórz element opisujący wpis w bieżącym położeniu hpsgData.

Parametry
hs HeapSegment: segment sterty, z którego ma zostać pobrany wpis.

Zgłasza
BufferUnderflowException jeśli po bieżącej pozycji hpsgData nie ma całego wpisu.
ParseException jeśli podane dane są nieprawidłowe.

Metody publiczne

compareTo

public int compareTo (HeapSegment.HeapSegmentElement other)

Parametry
other HeapSegment.HeapSegmentElement

Zwraca
int

getKind

public int getKind ()

Zwraca
int

getLength

public int getLength ()

Zwraca
int

getSolidity

public int getSolidity ()

Zwraca
int

ustaw

public HeapSegment.HeapSegmentElement set (HeapSegment hs)

Zastąp element wpisem w bieżącej pozycji hpsgData.

Parametry
hs HeapSegment: segment sterty, z którego ma zostać pobrany wpis.

Zwraca
HeapSegment.HeapSegmentElement tego obiektu.

Zgłasza
BufferUnderflowException jeśli po bieżącej pozycji hpsgData nie ma całego wpisu.
ParseException jeśli podane dane są nieprawidłowe.

setKind

public void setKind (int kind)

Parametry
kind int

setLength

public void setLength (int length)

Parametry
length int

setSolidity

public void setSolidity (int solidity)

Parametry
solidity int