🏠 Gofer Engine > Msg Class > Sub Classes
Sub Classes
NOTE: THIS PAGE IS STILL A WORK IN PROGRESS
Seg, Segs & Seg[]
Seg— returned when there is only a single Segment bynameSegs— returned when there are multiple Segments bynameif noiterationis defined
Msg.getSegment(name: string, iteration?: number) => Seg | Segs
Seg[]returnedSegclasses in an array. NOTICE These will be 0-based index.
Msg.getSegments(name: string) => Seg[]
Fld, Flds, & Fld[]
-
Fld (
Seg.getField(index: number, iteration?: number)) -
Flds
-
Fld[] (
Seg.getFields(index: number)) returnedFldclasses in an array. NOTICE These will be 0-based index.
Rep[]
- Rep[] (
Fld.getRepetitions()) returnedRepclasses in an array. NOTICE These will be 0-based index.
Cmp, Cmps, & Cmp[]
- Cmp returned when there is a single component
Fld.getComponent(index?: number)
Flds.getComponent(index?: number)
Rep.getComponent(index?: number)
- Cmps (
Field.getComponent(index?: number)) returned when there are multiple components - Cmp[] (
Field.getComponents(index: number)) returnedCmpclasses in an array. NOTICE These will be 0-based index.
Sub, Subs, & MultiSubs
- SubComponent (
Component.getSubComponent(index: number))
Each of the above subclasses exposes the following methods:
json(strict?: boolean)—toString()—
The Seg class exposes an additional getName method that returns the segment name string.