Include

com.reactific.riddl.language.AST.Include
case class Include[T <: Definition](loc: At, contents: Seq[T], source: Option[String]) extends Definition, VitalDefinitionDefinition, RootDefinition

A value to record an inclusion of a file while parsing.

Value parameters

contents

The Vital Definitions read from the file

loc

The location of the include statement in the source

source

A string providing the source (path or URL) of the included source

Attributes

Graph
Supertypes

Members list

Value members

Concrete methods

def format: String

Format the node to a string

Format the node to a string

Attributes

def id: Identifier
override def isRootContainer: Boolean

Attributes

Definition Classes

Inherited methods

def asVital[OPT <: OptionValue, DEF <: Definition]: VitalDefinition[OPT, DEF]

Attributes

Inherited from:
Definition

Attributes

Inherited from:
BrieflyDescribedValue

Attributes

Inherited from:
DescribedValue

Attributes

Inherited from:
Definition

Attributes

Inherited from:
BrieflyDescribedValue
override def hasDefinitions: Boolean

Attributes

Definition Classes
Inherited from:
Definition

Attributes

Inherited from:
DescribedValue

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition
override def isContainer: Boolean

Determine if this node is a container or not

Determine if this node is a container or not

Attributes

Definition Classes
Inherited from:
Container
override def isDefinition: Boolean

Attributes

Definition Classes
Inherited from:
Definition
override def isEmpty: Boolean

determine if this node is empty or not.

determine if this node is empty or not. Non-containers are always empty

Attributes

Definition Classes
Inherited from:
Container

Attributes

Inherited from:
Definition

Attributes

Inherited from:
Definition
final def nonEmpty: Boolean

Attributes

Inherited from:
RiddlNode

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Definition

Concrete fields

final val kind: String