Fantom

 

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

const static FTable makeDecimals(FPod pod)

Source

makeDurations

const static FTable makeDurations(FPod pod)

Source

makeFieldRefs

const static FTable makeFieldRefs(FPod pod)

Source

makeFloats

const static FTable makeFloats(FPod pod)

Source

makeInts

const static FTable makeInts(FPod pod)

Source

makeMethodRefs

const static FTable makeMethodRefs(FPod pod)

Source

makeStrs

const static FTable makeStrs(FPod pod)

Source

makeTypeRefs

const 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