Packages

case class Function(loc: Location, id: AST.Identifier, input: Option[AST.Aggregation] = None, output: Option[AST.Aggregation] = None, types: Seq[Type] = Seq.empty[Type], functions: Seq[Function] = Seq.empty[Function], examples: Seq[Example] = Seq.empty[Example], brief: Option[AST.LiteralString] = Option.empty[LiteralString], description: Option[AST.Description] = None) extends EntityDefinition with WithTypes with ContextDefinition with FunctionDefinition with Product with Serializable

A function definition which can be part of a bounded context or an entity.

loc

The location of the function definition

id

The identifier that names the function

input

An optional type expression that names and types the fields of the input of the function

output

An optional type expression that names and types the fields of the output of the function

examples

The set of examples that define the behavior of the function.

brief

A brief description (one sentence) for use in documentation

description

An optional description of the function.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Function
  2. Serializable
  3. Product
  4. Equals
  5. FunctionDefinition
  6. ContextDefinition
  7. WithTypes
  8. EntityDefinition
  9. Definition
  10. Container
  11. BrieflyDescribedValue
  12. DescribedValue
  13. RiddlValue
  14. RiddlNode
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Function(loc: Location, id: AST.Identifier, input: Option[AST.Aggregation] = None, output: Option[AST.Aggregation] = None, types: Seq[Type] = Seq.empty[Type], functions: Seq[Function] = Seq.empty[Function], examples: Seq[Example] = Seq.empty[Example], brief: Option[AST.LiteralString] = Option.empty[LiteralString], description: Option[AST.Description] = None)

    loc

    The location of the function definition

    id

    The identifier that names the function

    input

    An optional type expression that names and types the fields of the input of the function

    output

    An optional type expression that names and types the fields of the output of the function

    examples

    The set of examples that define the behavior of the function.

    brief

    A brief description (one sentence) for use in documentation

    description

    An optional description of the function.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val brief: Option[AST.LiteralString]
    Definition Classes
    FunctionBrieflyDescribedValue
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. lazy val contents: Seq[AST.FunctionDefinition]
    Definition Classes
    FunctionContainer
  8. val description: Option[AST.Description]
    Definition Classes
    FunctionDescribedValue
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. val examples: Seq[Example]
  11. def format: String

    Format the node to a string

    Format the node to a string

    Definition Classes
    RiddlNode
  12. val functions: Seq[Function]
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. def hasAuthors: Boolean
    Definition Classes
    Definition
  15. def hasOptions: Boolean
    Definition Classes
    Definition
  16. def hasTypes: Boolean
    Definition Classes
    WithTypesDefinition
  17. val id: AST.Identifier
    Definition Classes
    FunctionDefinition
  18. def identify: String
    Definition Classes
    Definition
  19. def identifyWithLoc: String
    Definition Classes
    Definition
  20. val input: Option[AST.Aggregation]
  21. def isContainer: Boolean

    Determine if this node is a container or not

    Determine if this node is a container or not

    Definition Classes
    ContainerRiddlNode
  22. def isEmpty: Boolean

    determine if this node is empty or not.

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

    Definition Classes
    FunctionContainerRiddlNode
  23. def isImplicit: Boolean
    Definition Classes
    Definition
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isRootContainer: Boolean
    Definition Classes
    Container
  26. final val kind: String
    Definition Classes
    FunctionDefinition
  27. def kindId: String
    Definition Classes
    Definition
  28. val loc: Location

    The location in the parse at which this RiddlValue occurs

    The location in the parse at which this RiddlValue occurs

    Definition Classes
    FunctionRiddlValue
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def nonEmpty: Boolean
    Definition Classes
    RiddlNode
    Annotations
    @deprecatedOverriding()
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  33. val output: Option[AST.Aggregation]
  34. def productElementNames: Iterator[String]
    Definition Classes
    Product
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. val types: Seq[Type]
    Definition Classes
    FunctionWithTypes
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AST.FunctionDefinition

Inherited from AST.ContextDefinition

Inherited from WithTypes

Inherited from AST.EntityDefinition

Inherited from AST.Definition

Inherited from AST.DescribedValue

Inherited from AST.RiddlValue

Inherited from AST.RiddlNode

Inherited from AnyRef

Inherited from Any

Ungrouped