class compiler::FTable

sys::Obj
  compiler::FTable

Source

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

add

Int add(Obj val)

Source

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.

get

@Operator
Obj get(Int index)

Source

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

isEmpty

Bool isEmpty()

Source

Return if this table is empty

make

new make(FPod pod, |OutStream,Obj| writer, |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)

Source

Serialize.

reader

|InStream->Obj| reader

Source

reverse

Obj:Int reverse

Source

table

Obj[] table

Source

write

Void write(OutStream out)

Source

Deserialize.

writer

|OutStream,Obj| writer

Source