EntityDef
Generated from the TypeQLite grammar.
An EntityDef node of the TypeQLite syntax tree: what the grammar rule EntityDef produces. Its $type is 'EntityDef'.
Written like:
entity project, owns project-id @key, plays project-task:owner;entity adr sub doc;entity person plays employment:employee, owns name @card(0..);entity abstract-type @abstract;Extends
Section titled “Extends”Member summary
Section titled “Member summary”Properties
| Name | Description |
|---|---|
| $container | The container node in the AST; every node except the root node has a container. |
| $containerIndex? | In case $containerProperty is an array, the array index is stored here. |
| $containerProperty? | The property of the $container node that contains this node. |
| $cstNode? | The Concrete Syntax Tree (CST) node of the text range from which this node was parsed. |
| $document? | The document containing the AST; only the root node has a direct reference to the document. |
| $type | Every AST node has a type corresponding to what was specified in the grammar declaration. |
| annotations | The Annotation nodes written in annotations, in source order. |
| name | The text written for name. |
| subAnnotations | The annotations written after the sub clause. |
| superTypes | References to the EntityDef the source names in superTypes: .ref is the definition it resolves to (undefined if it does not), .$refText the name as written. |
| traits | The Trait nodes written in traits, in source order. |
| valueAnnotations | The annotations written after the value clause. |
| valueTypes | The ValueType values written in valueTypes, in source order. |
Properties
Section titled “Properties”$container
Section titled “$container”
readonly$container:DefineClause
The container node in the AST; every node except the root node has a container.
Overrides
Section titled “Overrides”langium.AstNode.$container
$containerIndex?
Section titled “$containerIndex?”
readonlyoptional$containerIndex?:number
Defined in: node_modules/langium/lib/syntax-tree.d.ts:21
In case $containerProperty is an array, the array index is stored here.
Inherited from
Section titled “Inherited from”langium.AstNode.$containerIndex
$containerProperty?
Section titled “$containerProperty?”
readonlyoptional$containerProperty?:string
Defined in: node_modules/langium/lib/syntax-tree.d.ts:19
The property of the $container node that contains this node. This is either a direct reference or an array.
Inherited from
Section titled “Inherited from”langium.AstNode.$containerProperty
$cstNode?
Section titled “$cstNode?”
readonlyoptional$cstNode?:CstNode
Defined in: node_modules/langium/lib/syntax-tree.d.ts:23
The Concrete Syntax Tree (CST) node of the text range from which this node was parsed.
Inherited from
Section titled “Inherited from”langium.AstNode.$cstNode
$document?
Section titled “$document?”
readonlyoptional$document?:LangiumDocument<AstNode>
Defined in: node_modules/langium/lib/syntax-tree.d.ts:25
The document containing the AST; only the root node has a direct reference to the document.
Inherited from
Section titled “Inherited from”langium.AstNode.$document
readonly$type:"EntityDef"
Every AST node has a type corresponding to what was specified in the grammar declaration.
Overrides
Section titled “Overrides”langium.AstNode.$type
annotations
Section titled “annotations”annotations:
Annotation[]
The Annotation nodes written in annotations, in source order.
name:
string
The text written for name.
subAnnotations
Section titled “subAnnotations”subAnnotations:
Annotation[]
The annotations written after the sub clause.
superTypes
Section titled “superTypes”superTypes:
Reference<EntityDef>[]
References to the EntityDef the source names in superTypes: .ref is the definition it resolves to (undefined if it does not), .$refText the name as written.
traits
Section titled “traits”traits:
Trait[]
The Trait nodes written in traits, in source order.
valueAnnotations
Section titled “valueAnnotations”valueAnnotations:
Annotation[]
The annotations written after the value clause.
valueTypes
Section titled “valueTypes”valueTypes:
string[]
The ValueType values written in valueTypes, in source order.
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.