RiddlFileEmitter

com.reactific.riddl.prettify.RiddlFileEmitter
case class RiddlFileEmitter(filePath: Path) extends TextFileWriter

Unit Tests For RiddlFileEmitter

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait OutputFile
trait FileBuilder
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def add(str: String): RiddlFileEmitter.this.type
def add(strings: Seq[LiteralString]): RiddlFileEmitter.this.type
def add[T](opt: Option[T])(map: T => String): RiddlFileEmitter.this.type
def addIndent(): RiddlFileEmitter.this.type
def addIndent(str: String): RiddlFileEmitter.this.type
def addLine(str: String): RiddlFileEmitter.this.type
def addSpace(): RiddlFileEmitter.this.type
override def clear: Unit

Attributes

Definition Classes
def closeDef(definition: Definition, withBrace: Boolean): RiddlFileEmitter.this.type
def emit(): Path
def emitAggregation(aggregation: Aggregation): RiddlFileEmitter.this.type
def emitAlternation(alternation: Alternation): RiddlFileEmitter.this.type
def emitCodeBlock(statements: Seq[Statement]): RiddlFileEmitter.this.type
def emitDescription(description: Option[Description]): RiddlFileEmitter.this.type
def emitEnumeration(enumeration: Enumeration): RiddlFileEmitter.this.type
def emitField(field: Field): RiddlFileEmitter.this.type
def emitFields(of: Seq[Field]): RiddlFileEmitter.this.type
def emitOptions(optionDef: WithOptions[_]): RiddlFileEmitter.this.type
def emitPattern(pattern: Pattern): RiddlFileEmitter.this.type
def emitStatement(action: Statement): RiddlFileEmitter.this.type
def emitStatements(actions: Seq[Statement]): RiddlFileEmitter.this.type
def emitStreamlets(proc: Processor[_, _]): RiddlFileEmitter.this.type
def emitString(s: Strng): RiddlFileEmitter.this.type
def emitType(t: Type): RiddlFileEmitter.this.type
def emitUndefined(): RiddlFileEmitter.this.type
def indent: RiddlFileEmitter.this.type
def openDef(definition: Definition, withBrace: Boolean): RiddlFileEmitter.this.type
def outdent: RiddlFileEmitter.this.type
def spc: String

Inherited methods

def nl: FileBuilder.this.type

Attributes

Inherited from:
FileBuilder

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
FileBuilder
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Inherited from:
TextFileWriter
def write(): Unit

Attributes

Inherited from:
OutputFile
def write(writer: PrintWriter): Unit

Attributes

Inherited from:
OutputFile

Inherited fields

val newLine: String

Attributes

Inherited from:
FileBuilder
protected val sb: StringBuilder

Attributes

Inherited from:
FileBuilder