PrettifyPass

com.reactific.riddl.prettify.PrettifyPass
See thePrettifyPass companion object
case class PrettifyPass(input: PassInput, state: PrettifyState) extends HierarchyPass

This is the RIDDL Prettifier to convert an AST back to RIDDL plain text

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Pass
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def closeContainer(container: Definition, parents: Seq[Definition]): Unit
def name: String

THe name of the pass for inclusion in messages it produces

THe name of the pass for inclusion in messages it produces

Attributes

Returns

A string value giving the name of this pass

def openContainer(container: Definition, parents: Seq[Definition]): Unit
def processLeaf(definition: LeafDefinition, parents: Seq[Definition]): Unit
override def result: PassOutput

Generate the output of this Pass.

Generate the output of this Pass. This will only be called after all the calls to process have completed.

Attributes

Returns

an instance of the output type

Definition Classes

Inherited methods

def close(): Unit

Close any resources used so this can be used with AutoCloseable or Using.Manager

Close any resources used so this can be used with AutoCloseable or Using.Manager

Attributes

Inherited from:
Pass

Attributes

Definition Classes
Inherited from:
HierarchyPass

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override protected def traverse(definition: Definition, parents: Stack[Definition]): Unit

Attributes

Definition Classes
Inherited from:
HierarchyPass