Fantom

 

class

compiler::FTable

sys::Obj
  compiler::FTable

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

Slots

addSource

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.

getSource

Obj get(Int index)

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

isEmptySource

Bool isEmpty()

Return if this table is empty

makeSource

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

makeDecimalsSource

const static FTable makeDecimals(FPod pod)

makeDurationsSource

const static FTable makeDurations(FPod pod)

makeFieldRefsSource

const static FTable makeFieldRefs(FPod pod)

makeFloatsSource

const static FTable makeFloats(FPod pod)

makeIntsSource

const static FTable makeInts(FPod pod)

makeMethodRefsSource

const static FTable makeMethodRefs(FPod pod)

makeStrsSource

const static FTable makeStrs(FPod pod)

makeTypeRefsSource

const static FTable makeTypeRefs(FPod pod)

podSource

FPod pod

readSource

FTable read(InStream? in)

Serialize.

readerSource

|InStream -> Obj| reader

reverseSource

Obj:Int reverse

tableSource

Obj[] table

writeSource

Void write(OutStream out)

Deserialize.

writerSource

|OutStream, Obj| writer