Files
ueblueprint/js/entity/PinReferenceEntity.js
barsdeveloper ecc71b76d1 WIP
2024-05-31 15:09:48 +02:00

34 lines
906 B
JavaScript
Executable File

import P from "parsernostrum"
import GuidEntity from "./GuidEntity.js"
import IEntity from "./IEntity.js"
import SymbolEntity from "./SymbolEntity.js"
export default class PinReferenceEntity extends IEntity {
static grammar = P.seq(
SymbolEntity.grammar,
P.whitespace,
GuidEntity.grammar
)
.map(([objectName, _1, pinGuid]) => new this(objectName, pinGuid))
.label("PinReferenceEntity")
/**
* @param {SymbolEntity} objectName
* @param {GuidEntity} pinGuid
*/
constructor(objectName = null, pinGuid = null) {
super()
this.objectName = objectName
this.pinGuid = pinGuid
}
toString(
insideString = false,
indentation = "",
printKey = this.Self().printKey,
) {
return this.objectName.toString() + " " + this.pinGuid.toString()
}
}