Package common-rails
common-rails #sleela 2.5 (lib/common-rails/common-rails.sleela)
PrintRail class
the self-contained, runnable build of the SLeeLa common-rails
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SQUARE_SIZE | int SQUARE_SIZE = 21 | No description in source. |
OID_WIDTH | int OID_WIDTH = 10 | No description in source. |
CURRENT_WIDTH | int CURRENT_WIDTH = 39 | No description in source. |
PRINT_WIDTH | int PRINT_WIDTH = 80 | No description in source. |
STATE_FIELD | int STATE_FIELD = 10 | No description in source. |
FULL | String FULL = "█" | Progress-square glyphs: FULL is the filled cell, LIGHT the empty cell. |
LIGHT | String LIGHT = "░" | No description in source. |
BOX_TL | String BOX_TL = "┌"; String BOX_TM = "┬"; String BOX_TR = "┐" | Box-drawing glyph set that frames a table (meaning survives without color). |
BOX_ML | String BOX_ML = "├"; String BOX_MM = "┼"; String BOX_MR = "┤" | No description in source. |
BOX_BL | String BOX_BL = "└"; String BOX_BM = "┴"; String BOX_BR = "┘" | No description in source. |
BOX_H | String BOX_H = "─"; String BOX_V = "│" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
repeat | String repeat(String s, int n) | repeat(s, n): the core String has no repeat; build it by concatenation. |
digitCount | int digitCount(int v) | digitCount(v): number of decimal digits in a non-negative int. |
padZeros | String padZeros(int value, int width) | No description in source. |
groupInt | String groupInt(int value) | No description in source. |
padRight | String padRight(String content, int contentChars, int width) | padRight(content, contentChars, width): content then right-pad spaces. |
padLeft | String padLeft(String content, int contentChars, int width) | padLeft(content, contentChars, width): left-pad spaces then content. |
widthLine | String widthLine(String content, int contentChars) | A fixed-width content line, PRINT_WIDTH columns wide. |
padCurrent | String padCurrent(String name, int nameChars) | padCurrent(name, nameChars): "[Current: @Name" + spaces + "]". |
componentLine | String componentLine(String name, int nameChars, int oid, int dateSeq, String message) | No description in source. |
stateLineText | String stateLineText(String state, int stateChars, String message, int messageChars) | No description in source. |
tableRule | String tableRule(String left, String mid, String right, int w0, int w1) | No description in source. |
tableRowText | String tableRowText( | A table row "│ cell0 │ cell1 │"; leftAlign selects alignment for both cells. |
printComponent | void printComponent(String name, int nameChars, int oid, int dateSeq, String message) | No description in source. |
printState | void printState(String state, int stateChars, String message, int messageChars) | No description in source. |
printTableTop | void printTableTop(int w0, int w1) | No description in source. |
printTableSeparator | void printTableSeparator(int w0, int w1) | No description in source. |
printTableBottom | void printTableBottom(int w0, int w1) | No description in source. |
printTableRow | void printTableRow( | No description in source. |
printTable | void printTable( | A complete two-column table: top, header, separator, two rows, bottom. |
printPair | void printPair(String field, int fieldChars, String value, int valueChars, boolean table) | Field/value renderer with a `table` switch: framed table vs plain line. |
clampPercent | int clampPercent(int percent) | No description in source. |
percentToCells | int percentToCells(int percent) | No description in source. |
printSquare | void printSquare(int filledCells) | `filled` cells are filled in order bottom-right to left, then up a row. |
printSquarePercent | void printSquarePercent(int percent) | No description in source. |
printPixel | void printPixel(int filledCells) | Single-pixel indicator: the most compact rendering, one glyph. |
printPixelPercent | void printPixelPercent(int percent) | No description in source. |
toolLine | String toolLine(String tool, int toolChars, String message, int messageChars) | A tool banner line, for example: sleelvac, then the source and artifact. |
compilerState | void compilerState(String state, int stateChars, String message, int messageChars) | The COMPILER (Sleelvac) rail. |
nordshriftState | void nordshriftState(String state, int stateChars, String message, int messageChars) | The NORDSHRIFT rail. |
debugFrame | void debugFrame(String symbol, int symbolChars, String location, int locationChars) | The DEBUGGER rail: one stack frame rendered into the two-column table. |
main | void main() | No description in source. |
PrintComponent #sleela 2.5 (lib/common-rails/PrintComponent.sleela)
PrintComponent class
Defines the SLeeLa standard-library type PrintComponent used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
value | String value="" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
set | void set(String v) | No description in source. |
get | String get() | No description in source. |
PrintContractTest #sleela 2.5 (lib/common-rails/PrintContractTest.sleela)
PrintContractTest class
Defines the SLeeLa standard-library type PrintContractTest used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
value | String value="" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
set | void set(String v) | No description in source. |
get | String get() | No description in source. |
PrintField #sleela 2.5 (lib/common-rails/PrintField.sleela)
PrintField class
Defines the SLeeLa standard-library type PrintField used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
value | String value="" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
set | void set(String v) | No description in source. |
get | String get() | No description in source. |
PrintFormatter #sleela 2.5 (lib/common-rails/PrintFormatter.sleela)
PrintFormatter class
Defines the SLeeLa standard-library type PrintFormatter used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
value | String value="" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
set | void set(String v) | No description in source. |
get | String get() | No description in source. |
PrintGlyphs #sleela 2.5 (lib/common-rails/PrintGlyphs.sleela)
PrintGlyphs class
Defines the SLeeLa standard-library type PrintGlyphs used within the common-rails library family.
PrintLayout #sleela 2.5 (lib/common-rails/PrintLayout.sleela)
PrintLayout class
Defines the SLeeLa standard-library type PrintLayout used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
value | String value="" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
set | void set(String v) | No description in source. |
get | String get() | No description in source. |
PrintLine #sleela 2.5 (lib/common-rails/PrintLine.sleela)
PrintLine class
Defines the SLeeLa standard-library type PrintLine used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
value | String value="" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
set | void set(String v) | No description in source. |
get | String get() | No description in source. |
PrintProgress #sleela 2.5 (lib/common-rails/PrintProgress.sleela)
PrintProgress class
Defines the SLeeLa standard-library type PrintProgress used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
side | int side=21 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
cells | int cells() | No description in source. |
clamp | int clamp(int percent) | No description in source. |
percentToCells | int percentToCells(int percent) | No description in source. |
PrintRail #sleela 2.5 (lib/common-rails/PrintRail.sleela)
PrintRail class
PrintRail -- the one professional-printing surface the SLeeLa
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SQUARE_SIZE | int SQUARE_SIZE = 21 | No description in source. |
OID_WIDTH | int OID_WIDTH = 10 | No description in source. |
CURRENT_WIDTH | int CURRENT_WIDTH = 39 | No description in source. |
PRINT_WIDTH | int PRINT_WIDTH = 80 | No description in source. |
STATE_FIELD | int STATE_FIELD = 10 | No description in source. |
FULL | String FULL = "█" | Progress-square glyphs: FULL is the filled cell, LIGHT the empty cell. |
LIGHT | String LIGHT = "░" | No description in source. |
BOX_TL | String BOX_TL = "┌"; String BOX_TM = "┬"; String BOX_TR = "┐" | Box-drawing glyph set that frames a table (meaning survives without color). |
BOX_ML | String BOX_ML = "├"; String BOX_MM = "┼"; String BOX_MR = "┤" | No description in source. |
BOX_BL | String BOX_BL = "└"; String BOX_BM = "┴"; String BOX_BR = "┘" | No description in source. |
BOX_H | String BOX_H = "─"; String BOX_V = "│" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
repeat | String repeat(String s, int n) | repeat(s, n): the core String has no repeat; build it by concatenation. |
digitCount | int digitCount(int v) | digitCount(v): number of decimal digits in a non-negative int. |
padZeros | String padZeros(int value, int width) | No description in source. |
groupInt | String groupInt(int value) | No description in source. |
padRight | String padRight(String content, int contentChars, int width) | padRight(content, contentChars, width): content then right-pad spaces. |
padLeft | String padLeft(String content, int contentChars, int width) | padLeft(content, contentChars, width): left-pad spaces then content. |
widthLine | String widthLine(String content, int contentChars) | A fixed-width content line, PRINT_WIDTH columns wide. |
padCurrent | String padCurrent(String name, int nameChars) | padCurrent(name, nameChars): "[Current: @Name" + spaces + "]". |
componentLine | String componentLine(String name, int nameChars, int oid, int dateSeq, String message) | No description in source. |
stateLineText | String stateLineText(String state, int stateChars, String message, int messageChars) | No description in source. |
tableRule | String tableRule(String left, String mid, String right, int w0, int w1) | No description in source. |
tableRowText | String tableRowText( | A table row "│ cell0 │ cell1 │"; leftAlign selects alignment for both cells. |
printComponent | void printComponent(String name, int nameChars, int oid, int dateSeq, String message) | No description in source. |
printState | void printState(String state, int stateChars, String message, int messageChars) | No description in source. |
printTableTop | void printTableTop(int w0, int w1) | No description in source. |
printTableSeparator | void printTableSeparator(int w0, int w1) | No description in source. |
printTableBottom | void printTableBottom(int w0, int w1) | No description in source. |
printTableRow | void printTableRow( | No description in source. |
printTable | void printTable( | A complete two-column table: top, header, separator, two rows, bottom. |
printPair | void printPair(String field, int fieldChars, String value, int valueChars, boolean table) | Field/value renderer with a `table` switch: framed table vs plain line. |
clampPercent | int clampPercent(int percent) | No description in source. |
percentToCells | int percentToCells(int percent) | No description in source. |
printSquare | void printSquare(int filledCells) | `filled` cells are filled in order bottom-right to left, then up a row. |
printSquarePercent | void printSquarePercent(int percent) | No description in source. |
printPixel | void printPixel(int filledCells) | Single-pixel indicator: the most compact rendering, one glyph. |
printPixelPercent | void printPixelPercent(int percent) | No description in source. |
toolLine | String toolLine(String tool, int toolChars, String message, int messageChars) | A tool banner line, for example: sleelvac, then the source and artifact. |
compilerState | void compilerState(String state, int stateChars, String message, int messageChars) | The COMPILER (Sleelvac) rail. |
nordshriftState | void nordshriftState(String state, int stateChars, String message, int messageChars) | The NORDSHRIFT rail. |
debugFrame | void debugFrame(String symbol, int symbolChars, String location, int locationChars) | The DEBUGGER rail: one stack frame rendered into the two-column table. |
PrintRenderer #sleela 2.5 (lib/common-rails/PrintRenderer.sleela)
PrintRenderer class
Defines the SLeeLa standard-library type PrintRenderer used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
value | String value="" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
set | void set(String v) | No description in source. |
get | String get() | No description in source. |
PrintState #sleela 2.5 (lib/common-rails/PrintState.sleela)
PrintState class
Defines the SLeeLa standard-library type PrintState used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
value | String value="" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
set | void set(String v) | No description in source. |
get | String get() | No description in source. |
PrintWriter #sleela 2.5 (lib/common-rails/PrintWriter.sleela)
PrintWriter class
Defines the SLeeLa standard-library type PrintWriter used within the common-rails library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
value | String value="" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
set | void set(String v) | No description in source. |
get | String get() | No description in source. |
SLPackage #sleela 2.5 (lib/common-rails/SLPackage.sleela)
CommonRails class
Defines the SLeeLa standard-library package for common-rails.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
source | String source = "lib/common-rails/PrintRail.sleela" | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
entryClass | String entryClass() | No description in source. |
configure | void configure(String path) | No description in source. |
path | String path() | No description in source. |
available | boolean available() | No description in source. |