com.phasmidsoftware.gambit.attic
Members list
Type members
Classlikes
Attributes
- Supertypes
- Known subtypes
Abstract class to combine the behaviors of CharacterOutput, BufferedOutput and BackedOutput.
Abstract class to combine the behaviors of CharacterOutput, BufferedOutput and BackedOutput.
Type parameters
- A
-
the underlying (appendable) type.
Value parameters
- appendable
-
the persistent store of characters.
- indentation
-
the indentation to be used after a newline. NOTE: this is a var because sometimes when we concatenate Outputs, we have to update this value.
- sb
-
the StringBuilder that we use as temporary storage of characters.
Attributes
- Supertypes
-
trait BackedOutput[A]trait BufferedOutputtrait CharacterOutputtrait TypedOutputtrait Outputtrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class UnbackedOutputclass WriterOutput
Trait to define the behavior of a TypedOutput which has a buffer.
Trait to define the behavior of a TypedOutput which has a buffer.
Attributes
- Supertypes
- Known subtypes
Attributes
- Supertypes
- Known subtypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Flushabletrait Closeabletrait AutoCloseabletrait Appendableclass Objecttrait Matchableclass AnyShow all
Trait to define the behavior of an AutoCloseable that is a pseudo-monadic IO type for output.
Trait to define the behavior of an AutoCloseable that is a pseudo-monadic IO type for output.
In general, when two Outputs are concatenated (using ++), we merge the content of the Output on the right into the Output on the left. That way, it makes sense that the Output on the left is backed by a write-store (such as a Writer). The concatenation logic tries its best to keep things in order and appropriately backed.
NOTE: indentation also tends to be applied to the Output on the left. However, if new (unbacked) Outputs are created to be used for outputting indented values, then such Outputs should be explicitly indented also. A warning could be created if two Outputs are merged with different indents (but is currently commented out).
Attributes
- Companion
- object
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
- Known subtypes
-
trait TypedOutputtrait BackedOutput[A]class BufferedCharSequenceOutput[A]class UnbackedOutputclass WriterOutputtrait BufferedOutputtrait CharacterOutputShow all
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
A trait which provides the behavior of something that can be output to Output.
A trait which provides the behavior of something that can be output to Output.
Type parameters
- X
-
the underlying type of the optional parameter to the output method.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Trait to define the behavior of an Output with a particular OutputType.
Trait to define the behavior of an Output with a particular OutputType.
Attributes
- Supertypes
- Known subtypes
-
trait BackedOutput[A]class BufferedCharSequenceOutput[A]class UnbackedOutputclass WriterOutputtrait BufferedOutputtrait CharacterOutputShow all
Case class implementing Output and based on a NonOutput. This type of Output is not backed by a writeable store. This class extends the abstract class BufferedCharSequenceOutput[NonOutput]. The following traits are implemented: Output, CharacterOutput, BufferedOutput, BackedOutput[NonOutput].
Case class implementing Output and based on a NonOutput. This type of Output is not backed by a writeable store. This class extends the abstract class BufferedCharSequenceOutput[NonOutput]. The following traits are implemented: Output, CharacterOutput, BufferedOutput, BackedOutput[NonOutput].
Value parameters
- initialIndentation
-
the initial value of indentation.
- stringBuilder
-
the StringBuilder used for buffering characters.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BackedOutput[NonOutput]trait BufferedOutputtrait CharacterOutputtrait TypedOutputtrait Outputtrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
Case class implementing Output and based on a Writer. This type of Output is backed by the given writer. This class extends the abstract class BufferedCharSequenceOutput[Writer]. The following traits are implemented: Output, CharacterOutput, BufferedOutput, BackedOutput[Writer].
Case class implementing Output and based on a Writer. This type of Output is backed by the given writer. This class extends the abstract class BufferedCharSequenceOutput[Writer]. The following traits are implemented: Output, CharacterOutput, BufferedOutput, BackedOutput[Writer].
Value parameters
- initialIndentation
-
the initial value of indentation.
- stringBuilder
-
the StringBuilder used for buffering characters.
- writer
-
the appendable to which characters are flushed when appropriate.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BufferedCharSequenceOutput[Writer]trait BackedOutput[Writer]trait BufferedOutputtrait CharacterOutputtrait TypedOutputtrait Outputtrait AutoCloseableclass Objecttrait Matchableclass AnyShow all