logo

class

compiler::FTable

sys::Obj
  compiler::FTable

FTable is a 16-bit indexed lookup table for pod constants.

Slots

add

Int add(Obj val)

Perform a reverse lookup to map a value to it's index (only available at compile time). If the value isn't in the table yet, then add it.

Source

get

Obj get(Int index)

Get the object identified by the specified 16-bit index.

Source

isEmpty

Bool isEmpty()

Return if this table is empty

Source

make

new make(FPod pod, |OutStream, Obj| writter, |InStream -> Obj| reader)

Source

makeDecimals

static FTable makeDecimals(FPod pod)

Source

makeDurations

static FTable makeDurations(FPod pod)

Source

makeFieldRefs

static FTable makeFieldRefs(FPod pod)

Source

makeFloats

static FTable makeFloats(FPod pod)

Source

makeInts

static FTable makeInts(FPod pod)

Source

makeMethodRefs

static FTable makeMethodRefs(FPod pod)

Source

makeStrs

static FTable makeStrs(FPod pod)

Source

makeTypeRefs

static FTable makeTypeRefs(FPod pod)

Source

pod

FPod pod

Source

read

FTable read(InStream in)

Serialize.

Source

reader

|InStream -> Obj| reader

Source

reverse

Obj:Int reverse

Source

table

Obj[] table

Source

write

Void write(OutStream out)

Deserialize.

Source

writter

|OutStream, Obj| writter

Source