class DialectsParser extends BaseSpecParser with DeclarationKeyCollector with AnnotationsParser
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DialectsParser
- AnnotationsParser
- DeclarationKeyCollector
- BaseSpecParser
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new DialectsParser(root: Root)(implicit ctx: DialectContext)
Type Members
- type ConcatenatedNames = String
- type Member = NodeMapping
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addDeclarationKey(key: DeclarationKey): Unit
- Definition Classes
- DeclarationKeyCollector
-
def
addDeclarationsToModel(model: DeclaresModel, declares: Seq[DomainElement]): Unit
- Attributes
- protected
- Definition Classes
- DeclarationKeyCollector
-
def
addDeclarationsToModel(model: DeclaresModel)(implicit ctx: DeclarationContext): Unit
- Attributes
- protected
- Definition Classes
- DeclarationKeyCollector
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkAmbiguity[T <: DomainElement](union: NodeWithDiscriminator[T]): Unit
Ambiguity kinds:
Ambiguity kinds:
- Un-avoidable: cannot distinguish between two union members
- Eventual: some times cannot distinguish between two union members, depending on the value of the dialect instance
Conditions for un-avoidable ambiguity:
- Set of property names is exactly the same between two union members
Conditions for eventual ambiguity:
- Set of MANDATORY property names is exactly the same between two union members
- T
type of union: union node mapping or union property mapping
- union
Union to calculate ambiguity over its members
- def checkGuidUniqueContraint(propertyMapping: PropertyMapping, ast: YPart): Unit
-
def
checkNodeMappableReferences[T <: DomainElement](mappable: NodeWithDiscriminator[T]): Unit
This method:
This method:
- replaces union & discriminator members references to other node mappings from their name to their id 2. validates union & discriminator members exist 3. checks for ambiguity
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
implicit
val
ctx: DialectContext
- Definition Classes
- DialectsParser → BaseSpecParser
- val dialect: Dialect
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val map: YMap
-
def
membersFrom[T <: DomainElement](union: NodeWithDiscriminator[T]): Seq[NodeMappable]
- Attributes
- protected
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parseAnnotations(ast: YMap, node: DomainElement, declarations: VocabularyDeclarations)(implicit ctx: ParserContext): Any
- Attributes
- protected
- Definition Classes
- AnnotationsParser
-
def
parseDeclarations(root: Root, map: YMap): Unit
- Attributes
- protected
- def parseDocument(): BaseUnit
- def parseFragment(): BaseUnit
- def parseLibrary(): BaseUnit
- def parseNodeMapping(entry: YMapEntry, adopt: (DomainElement) ⇒ Any, fragment: Boolean = false): Option[NodeMappable]
- def parsePropertyMapping(entry: YMapEntry, adopt: (PropertyMapping) ⇒ Any, nodeId: String): PropertyMapping
- def parseSingleNodeMapping(map: YMap, adopt: (DomainElement) ⇒ Any, fragment: Boolean = false): Option[NodeMapping]
-
def
parseUnionNodeMapping(map: YMap, adopt: (DomainElement) ⇒ Any, fragment: Boolean = false): Option[UnionNodeMapping]
- Attributes
- protected
-
def
resolveNodeMappingLink(entry: YMapEntry, adopt: (DomainElement) ⇒ Any): Some[NodeMapping]
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toFragment(dialect: Dialect): DialectFragment
- Attributes
- protected
-
def
toLibrary(dialect: Dialect): DialectLibrary
- Attributes
- protected
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def updateMapLabelReferences(propertyMapping: PropertyMapping, range: NodeMapping): Unit
- def validateTemplate(template: String, map: YMap, propMappings: Seq[PropertyMapping]): Unit
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()