Defines a semantic PMI representation.
new SemanticRepresentation(
component?):SemanticRepresentation
Creates a semantic representation with one optional component.
Semantic component.
SemanticRepresentation
readonlycomponents:Set<SemanticComponent>
Semantic components of this representation.
get id():
bigint
Returns the unique identifier of the object.
bigint
accept(
visitor):void
Accepts a semantic component visitor.
Visitor to accept.
void
addComponent(
component):void
Adds a semantic component.
Semantic component.
void
Use SemanticRepresentation.components and components.add instead.
isEmpty():
boolean
Returns whether this representation has no components.
boolean
Use SemanticRepresentation.components and components.size === 0 instead.
numberOfComponents():
number
Returns the number of semantic components.
number
Use SemanticRepresentation.components and components.size instead.