From 26ddf506ae0881f879c26c894b1f8db73cc115e0 Mon Sep 17 00:00:00 2001 From: Michael Pollmeier Date: Mon, 13 Nov 2023 19:02:15 +0100 Subject: [PATCH] generate NodeXyz.Label and NodeXyz.PropertyKinds statics (#102) * refactor * generate static NodeName.Label * generate NodeXyz.PropertyKinds statics --- .../schemagen/DomainClassesGenerator.scala | 52 +++++++++++++------ .../generated/v2/nodes/Annotation.scala | 17 ++++++ .../v2/nodes/AnnotationLiteral.scala | 16 ++++++ .../v2/nodes/AnnotationParameter.scala | 13 +++++ .../v2/nodes/AnnotationParameterAssign.scala | 13 +++++ .../generated/v2/nodes/ArrayInitializer.scala | 15 ++++++ .../generated/v2/nodes/Binding.scala | 12 +++++ .../generated/v2/nodes/Block.scala | 18 +++++++ .../generated/v2/nodes/Call.scala | 22 ++++++++ .../generated/v2/nodes/ClosureBinding.scala | 12 +++++ .../generated/v2/nodes/Comment.scala | 14 +++++ .../generated/v2/nodes/ConfigFile.scala | 11 ++++ .../generated/v2/nodes/ControlStructure.scala | 17 ++++++ .../generated/v2/nodes/Dependency.scala | 12 +++++ .../generated/v2/nodes/FieldIdentifier.scala | 16 ++++++ .../generated/v2/nodes/File.scala | 15 ++++++ .../generated/v2/nodes/Finding.scala | 8 +++ .../generated/v2/nodes/Identifier.scala | 19 +++++++ .../generated/v2/nodes/Import.scala | 18 +++++++ .../generated/v2/nodes/JumpLabel.scala | 15 ++++++ .../generated/v2/nodes/JumpTarget.scala | 16 ++++++ .../generated/v2/nodes/KeyValuePair.scala | 11 ++++ .../generated/v2/nodes/Literal.scala | 18 +++++++ .../generated/v2/nodes/Local.scala | 18 +++++++ .../generated/v2/nodes/Location.scala | 18 +++++++ .../generated/v2/nodes/Member.scala | 17 ++++++ .../generated/v2/nodes/MetaData.scala | 14 +++++ .../generated/v2/nodes/Method.scala | 23 ++++++++ .../v2/nodes/MethodParameterIn.scala | 20 +++++++ .../v2/nodes/MethodParameterOut.scala | 18 +++++++ .../generated/v2/nodes/MethodRef.scala | 19 +++++++ .../generated/v2/nodes/MethodReturn.scala | 17 ++++++ .../generated/v2/nodes/Modifier.scala | 14 +++++ .../generated/v2/nodes/Namespace.scala | 14 +++++ .../generated/v2/nodes/NamespaceBlock.scala | 16 ++++++ .../generated/v2/nodes/Return.scala | 15 ++++++ .../generated/v2/nodes/Tag.scala | 11 ++++ .../generated/v2/nodes/TagNodePair.scala | 8 +++ .../generated/v2/nodes/TemplateDom.scala | 16 ++++++ .../generated/v2/nodes/Type.scala | 12 +++++ .../generated/v2/nodes/TypeArgument.scala | 13 +++++ .../generated/v2/nodes/TypeDecl.scala | 21 ++++++++ .../generated/v2/nodes/TypeParameter.scala | 14 +++++ .../generated/v2/nodes/TypeRef.scala | 18 +++++++ .../generated/v2/nodes/Unknown.scala | 20 +++++++ 45 files changed, 721 insertions(+), 15 deletions(-) diff --git a/domain-classes-generator/src/main/scala/io/joern/odb2/schemagen/DomainClassesGenerator.scala b/domain-classes-generator/src/main/scala/io/joern/odb2/schemagen/DomainClassesGenerator.scala index 69c7d985..deb72419 100644 --- a/domain-classes-generator/src/main/scala/io/joern/odb2/schemagen/DomainClassesGenerator.scala +++ b/domain-classes-generator/src/main/scala/io/joern/odb2/schemagen/DomainClassesGenerator.scala @@ -255,18 +255,22 @@ class DomainClassesGenerator(schema: Schema) { nodeTypes.iterator.zipWithIndex.foreach { case (nodeType, kind) => val newExtendz = newExtendzMap(nodeType) val newProperties = newPropsAtNodeList(nodeType) - val staticTyp = - (s"""trait ${nodeType.className}EMT extends AnyRef""" +: newExtendz.map { b => s"${b.className}EMT" } ++: newProperties.map { p => - s"Has${p.className}EMT" - }).mkString(" with ") - - val base = (s"""trait ${nodeType.className}Base extends AbstractNode""" +: newExtendz - .map { base => base.className + "Base" } ++: List(s"StaticType[${nodeType.className}EMT]")).mkString(" with ") - - val stored = - (s"""class ${nodeType.className}(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, ${kind}.toShort , seq_4762)""" :: s"${nodeType.className}Base" +: newExtendz - .map { base => base.className } ++: List(s"StaticType[${nodeType.className}EMT]")).mkString(" with ") - // val base = (s"""class ${nodeType.className}""") + + val erasedMarkerType = { + val mixins = newExtendz.map(b => s"${b.className}EMT") ++ newProperties.map(p => s"Has${p.className}EMT") + s"""trait ${nodeType.className}EMT extends AnyRef""" +: mixins + }.mkString(" with ") + + val baseTrait = { + val mixins = newExtendz.map(base => base.className + "Base") :+ s"StaticType[${nodeType.className}EMT]" + s"""trait ${nodeType.className}Base extends AbstractNode""" +: mixins + }.mkString(" with ") + + val storedNode = { + val mixins = s"${nodeType.className}Base" +: newExtendz.map(_.className) :+ s"StaticType[${nodeType.className}EMT]" + s"""class ${nodeType.className}(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, $kind.toShort , seq_4762)""" +: mixins + }.mkString(" with ") + val newNodeProps = mutable.ArrayBuffer.empty[String] val newNodeFluent = mutable.ArrayBuffer.empty[String] val storedNodeProps = mutable.ArrayBuffer.empty[String] @@ -357,6 +361,14 @@ class DomainClassesGenerator(schema: Schema) { } .mkString("\n") + val propertyKinds = nodeType.properties + .map(_.name) + .map { name => + val camelCase = Helpers.camelCaseCaps(name) + s"""val $camelCase = $basePackage.PropertyKinds.$name""" + } + .mkString("\n") + val newNode = s"""object New${nodeType.className}{def apply(): New${nodeType.className} = new New${nodeType.className}} |class New${nodeType.className} extends NewNode(${nodeKindByNodeType(nodeType)}.toShort) with ${nodeType.className}Base { @@ -398,12 +410,21 @@ class DomainClassesGenerator(schema: Schema) { |import io.shiftleft.codepropertygraph.generated.v2.Language.* |import scala.collection.immutable.{IndexedSeq, ArraySeq} | - |$staticTyp - |$base { + |$erasedMarkerType + | + |$baseTrait { | ${baseNodeProps.mkString("\n")} | $propDictItemsSource |} - |$stored { + | + |object ${nodeType.className} { + | val Label = "${nodeType.name}" + | object PropertyKinds { + | $propertyKinds + | } + |} + | + |$storedNode { | ${storedNodeProps.mkString("\n")} | | override def productElementName(n: Int): String = @@ -423,6 +444,7 @@ class DomainClassesGenerator(schema: Schema) { | | override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[${nodeType.className}] |} + | |$newNode |""".stripMargin } diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Annotation.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Annotation.scala index 06560886..54c9f635 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Annotation.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Annotation.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait AnnotationEMT extends AnyRef with ExpressionEMT with HasFullNameEMT with HasNameEMT + trait AnnotationBase extends AbstractNode with ExpressionBase with StaticType[AnnotationEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -21,6 +22,21 @@ trait AnnotationBase extends AbstractNode with ExpressionBase with StaticType[An res } } + +object Annotation { + val Label = "ANNOTATION" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val FullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class Annotation(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 0.toShort, seq_4762) with AnnotationBase @@ -58,6 +74,7 @@ class Annotation(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Annotation] } + object NewAnnotation { def apply(): NewAnnotation = new NewAnnotation } class NewAnnotation extends NewNode(0.toShort) with AnnotationBase { type RelatedStored = Annotation diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationLiteral.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationLiteral.scala index 492262a6..1c3b77c5 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationLiteral.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationLiteral.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait AnnotationLiteralEMT extends AnyRef with ExpressionEMT with HasNameEMT + trait AnnotationLiteralBase extends AbstractNode with ExpressionBase with StaticType[AnnotationLiteralEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -20,6 +21,20 @@ trait AnnotationLiteralBase extends AbstractNode with ExpressionBase with Static res } } + +object AnnotationLiteral { + val Label = "ANNOTATION_LITERAL" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class AnnotationLiteral(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 1.toShort, seq_4762) with AnnotationLiteralBase @@ -55,6 +70,7 @@ class AnnotationLiteral(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[AnnotationLiteral] } + object NewAnnotationLiteral { def apply(): NewAnnotationLiteral = new NewAnnotationLiteral } class NewAnnotationLiteral extends NewNode(1.toShort) with AnnotationLiteralBase { type RelatedStored = AnnotationLiteral diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationParameter.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationParameter.scala index cfe77529..480614ba 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationParameter.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationParameter.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait AnnotationParameterEMT extends AnyRef with AstNodeEMT + trait AnnotationParameterBase extends AbstractNode with AstNodeBase with StaticType[AnnotationParameterEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -17,6 +18,17 @@ trait AnnotationParameterBase extends AbstractNode with AstNodeBase with StaticT res } } + +object AnnotationParameter { + val Label = "ANNOTATION_PARAMETER" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class AnnotationParameter(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 2.toShort, seq_4762) with AnnotationParameterBase @@ -46,6 +58,7 @@ class AnnotationParameter(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[AnnotationParameter] } + object NewAnnotationParameter { def apply(): NewAnnotationParameter = new NewAnnotationParameter } class NewAnnotationParameter extends NewNode(2.toShort) with AnnotationParameterBase { type RelatedStored = AnnotationParameter diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationParameterAssign.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationParameterAssign.scala index ff36b0e0..83275634 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationParameterAssign.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/AnnotationParameterAssign.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait AnnotationParameterAssignEMT extends AnyRef with AstNodeEMT + trait AnnotationParameterAssignBase extends AbstractNode with AstNodeBase with StaticType[AnnotationParameterAssignEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -17,6 +18,17 @@ trait AnnotationParameterAssignBase extends AbstractNode with AstNodeBase with S res } } + +object AnnotationParameterAssign { + val Label = "ANNOTATION_PARAMETER_ASSIGN" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class AnnotationParameterAssign(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 3.toShort, seq_4762) with AnnotationParameterAssignBase @@ -46,6 +58,7 @@ class AnnotationParameterAssign(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[AnnotationParameterAssign] } + object NewAnnotationParameterAssign { def apply(): NewAnnotationParameterAssign = new NewAnnotationParameterAssign } class NewAnnotationParameterAssign extends NewNode(3.toShort) with AnnotationParameterAssignBase { type RelatedStored = AnnotationParameterAssign diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ArrayInitializer.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ArrayInitializer.scala index 5c5c1ced..4aa2a370 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ArrayInitializer.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ArrayInitializer.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait ArrayInitializerEMT extends AnyRef with ExpressionEMT + trait ArrayInitializerBase extends AbstractNode with ExpressionBase with StaticType[ArrayInitializerEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -19,6 +20,19 @@ trait ArrayInitializerBase extends AbstractNode with ExpressionBase with StaticT res } } + +object ArrayInitializer { + val Label = "ARRAY_INITIALIZER" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class ArrayInitializer(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 4.toShort, seq_4762) with ArrayInitializerBase @@ -52,6 +66,7 @@ class ArrayInitializer(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[ArrayInitializer] } + object NewArrayInitializer { def apply(): NewArrayInitializer = new NewArrayInitializer } class NewArrayInitializer extends NewNode(4.toShort) with ArrayInitializerBase { type RelatedStored = ArrayInitializer diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Binding.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Binding.scala index 45e13cdf..84cc0755 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Binding.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Binding.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait BindingEMT extends AnyRef with HasMethodFullNameEMT with HasNameEMT with HasSignatureEMT + trait BindingBase extends AbstractNode with StaticType[BindingEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -16,6 +17,16 @@ trait BindingBase extends AbstractNode with StaticType[BindingEMT] { res } } + +object Binding { + val Label = "BINDING" + object PropertyKinds { + val MethodFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.METHOD_FULL_NAME + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Signature = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.SIGNATURE + } +} + class Binding(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 5.toShort, seq_4762) with BindingBase @@ -42,6 +53,7 @@ class Binding(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Binding] } + object NewBinding { def apply(): NewBinding = new NewBinding } class NewBinding extends NewNode(5.toShort) with BindingBase { type RelatedStored = Binding diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Block.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Block.scala index 3fa9addd..a734b7d1 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Block.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Block.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait BlockEMT extends AnyRef with ExpressionEMT with HasDynamicTypeHintFullNameEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait BlockBase extends AbstractNode with ExpressionBase with StaticType[BlockEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -23,6 +24,22 @@ trait BlockBase extends AbstractNode with ExpressionBase with StaticType[BlockEM res } } + +object Block { + val Label = "BLOCK" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class Block(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 6.toShort, seq_4762) with BlockBase @@ -62,6 +79,7 @@ class Block(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Block] } + object NewBlock { def apply(): NewBlock = new NewBlock } class NewBlock extends NewNode(6.toShort) with BlockBase { type RelatedStored = Block diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Call.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Call.scala index 73c93330..10af896d 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Call.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Call.scala @@ -13,6 +13,7 @@ trait CallEMT with HasMethodFullNameEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait CallBase extends AbstractNode with CallReprBase with ExpressionBase with StaticType[CallEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -35,6 +36,26 @@ trait CallBase extends AbstractNode with CallReprBase with ExpressionBase with S res } } + +object Call { + val Label = "CALL" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DispatchType = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DISPATCH_TYPE + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val MethodFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.METHOD_FULL_NAME + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val Signature = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.SIGNATURE + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class Call(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 7.toShort, seq_4762) with CallBase @@ -83,6 +104,7 @@ class Call(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Call] } + object NewCall { def apply(): NewCall = new NewCall } class NewCall extends NewNode(7.toShort) with CallBase { type RelatedStored = Call diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ClosureBinding.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ClosureBinding.scala index dbece3da..67a4b55c 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ClosureBinding.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ClosureBinding.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait ClosureBindingEMT extends AnyRef with HasClosureBindingIdEMT with HasClosureOriginalNameEMT with HasEvaluationStrategyEMT + trait ClosureBindingBase extends AbstractNode with StaticType[ClosureBindingEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -16,6 +17,16 @@ trait ClosureBindingBase extends AbstractNode with StaticType[ClosureBindingEMT] res } } + +object ClosureBinding { + val Label = "CLOSURE_BINDING" + object PropertyKinds { + val ClosureBindingId = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CLOSURE_BINDING_ID + val ClosureOriginalName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CLOSURE_ORIGINAL_NAME + val EvaluationStrategy = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.EVALUATION_STRATEGY + } +} + class ClosureBinding(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 8.toShort, seq_4762) with ClosureBindingBase @@ -42,6 +53,7 @@ class ClosureBinding(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[ClosureBinding] } + object NewClosureBinding { def apply(): NewClosureBinding = new NewClosureBinding } class NewClosureBinding extends NewNode(8.toShort) with ClosureBindingBase { type RelatedStored = ClosureBinding diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Comment.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Comment.scala index 95ad3983..026d9a42 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Comment.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Comment.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait CommentEMT extends AnyRef with AstNodeEMT with HasFilenameEMT + trait CommentBase extends AbstractNode with AstNodeBase with StaticType[CommentEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -18,6 +19,18 @@ trait CommentBase extends AbstractNode with AstNodeBase with StaticType[CommentE res } } + +object Comment { + val Label = "COMMENT" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val Filename = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FILENAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class Comment(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 9.toShort, seq_4762) with CommentBase @@ -49,6 +62,7 @@ class Comment(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Comment] } + object NewComment { def apply(): NewComment = new NewComment } class NewComment extends NewNode(9.toShort) with CommentBase { type RelatedStored = Comment diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ConfigFile.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ConfigFile.scala index adffc138..3e88ce60 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ConfigFile.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ConfigFile.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait ConfigFileEMT extends AnyRef with HasContentEMT with HasNameEMT + trait ConfigFileBase extends AbstractNode with StaticType[ConfigFileEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -15,6 +16,15 @@ trait ConfigFileBase extends AbstractNode with StaticType[ConfigFileEMT] { res } } + +object ConfigFile { + val Label = "CONFIG_FILE" + object PropertyKinds { + val Content = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CONTENT + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + } +} + class ConfigFile(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 10.toShort, seq_4762) with ConfigFileBase @@ -39,6 +49,7 @@ class ConfigFile(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[ConfigFile] } + object NewConfigFile { def apply(): NewConfigFile = new NewConfigFile } class NewConfigFile extends NewNode(10.toShort) with ConfigFileBase { type RelatedStored = ConfigFile diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ControlStructure.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ControlStructure.scala index c030d90d..fcd1bf64 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ControlStructure.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/ControlStructure.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait ControlStructureEMT extends AnyRef with ExpressionEMT with HasControlStructureTypeEMT with HasParserTypeNameEMT + trait ControlStructureBase extends AbstractNode with ExpressionBase with StaticType[ControlStructureEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -21,6 +22,21 @@ trait ControlStructureBase extends AbstractNode with ExpressionBase with StaticT res } } + +object ControlStructure { + val Label = "CONTROL_STRUCTURE" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val ControlStructureType = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CONTROL_STRUCTURE_TYPE + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val ParserTypeName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.PARSER_TYPE_NAME + } +} + class ControlStructure(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 11.toShort, seq_4762) with ControlStructureBase @@ -58,6 +74,7 @@ class ControlStructure(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[ControlStructure] } + object NewControlStructure { def apply(): NewControlStructure = new NewControlStructure } class NewControlStructure extends NewNode(11.toShort) with ControlStructureBase { type RelatedStored = ControlStructure diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Dependency.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Dependency.scala index 2ed27048..84feaeaa 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Dependency.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Dependency.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait DependencyEMT extends AnyRef with HasDependencyGroupIdEMT with HasNameEMT with HasVersionEMT + trait DependencyBase extends AbstractNode with StaticType[DependencyEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -16,6 +17,16 @@ trait DependencyBase extends AbstractNode with StaticType[DependencyEMT] { res } } + +object Dependency { + val Label = "DEPENDENCY" + object PropertyKinds { + val DependencyGroupId = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DEPENDENCY_GROUP_ID + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Version = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.VERSION + } +} + class Dependency(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 12.toShort, seq_4762) with DependencyBase @@ -42,6 +53,7 @@ class Dependency(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Dependency] } + object NewDependency { def apply(): NewDependency = new NewDependency } class NewDependency extends NewNode(12.toShort) with DependencyBase { type RelatedStored = Dependency diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/FieldIdentifier.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/FieldIdentifier.scala index 3ab10091..9878a178 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/FieldIdentifier.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/FieldIdentifier.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait FieldIdentifierEMT extends AnyRef with ExpressionEMT with HasCanonicalNameEMT + trait FieldIdentifierBase extends AbstractNode with ExpressionBase with StaticType[FieldIdentifierEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -20,6 +21,20 @@ trait FieldIdentifierBase extends AbstractNode with ExpressionBase with StaticTy res } } + +object FieldIdentifier { + val Label = "FIELD_IDENTIFIER" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val CanonicalName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CANONICAL_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class FieldIdentifier(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 13.toShort, seq_4762) with FieldIdentifierBase @@ -55,6 +70,7 @@ class FieldIdentifier(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[FieldIdentifier] } + object NewFieldIdentifier { def apply(): NewFieldIdentifier = new NewFieldIdentifier } class NewFieldIdentifier extends NewNode(13.toShort) with FieldIdentifierBase { type RelatedStored = FieldIdentifier diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/File.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/File.scala index 354ab050..e6147f82 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/File.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/File.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait FileEMT extends AnyRef with AstNodeEMT with HasHashEMT with HasNameEMT + trait FileBase extends AbstractNode with AstNodeBase with StaticType[FileEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -19,6 +20,19 @@ trait FileBase extends AbstractNode with AstNodeBase with StaticType[FileEMT] { res } } + +object File { + val Label = "FILE" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val Hash = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.HASH + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class File(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 14.toShort, seq_4762) with FileBase @@ -52,6 +66,7 @@ class File(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[File] } + object NewFile { def apply(): NewFile = new NewFile } class NewFile extends NewNode(14.toShort) with FileBase { type RelatedStored = File diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Finding.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Finding.scala index d2cf5af6..c2d262ee 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Finding.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Finding.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait FindingEMT extends AnyRef + trait FindingBase extends AbstractNode with StaticType[FindingEMT] { def evidence: IndexedSeq[AbstractNode] def keyValuePairs: IndexedSeq[KeyValuePairBase] @@ -16,6 +17,12 @@ trait FindingBase extends AbstractNode with StaticType[FindingEMT] { res } } + +object Finding { + val Label = "FINDING" + object PropertyKinds {} +} + class Finding(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 15.toShort, seq_4762) with FindingBase @@ -42,6 +49,7 @@ class Finding(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Finding] } + object NewFinding { def apply(): NewFinding = new NewFinding } class NewFinding extends NewNode(15.toShort) with FindingBase { type RelatedStored = Finding diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Identifier.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Identifier.scala index 3854596c..8ba7f490 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Identifier.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Identifier.scala @@ -11,6 +11,7 @@ trait IdentifierEMT with HasNameEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait IdentifierBase extends AbstractNode with ExpressionBase with StaticType[IdentifierEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -30,6 +31,23 @@ trait IdentifierBase extends AbstractNode with ExpressionBase with StaticType[Id res } } + +object Identifier { + val Label = "IDENTIFIER" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class Identifier(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 16.toShort, seq_4762) with IdentifierBase @@ -71,6 +89,7 @@ class Identifier(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Identifier] } + object NewIdentifier { def apply(): NewIdentifier = new NewIdentifier } class NewIdentifier extends NewNode(16.toShort) with IdentifierBase { type RelatedStored = Identifier diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Import.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Import.scala index f1ea8d56..91534158 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Import.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Import.scala @@ -12,6 +12,7 @@ trait ImportEMT with HasImportedEntityEMT with HasIsExplicitEMT with HasIsWildcardEMT + trait ImportBase extends AbstractNode with AstNodeBase with StaticType[ImportEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -29,6 +30,22 @@ trait ImportBase extends AbstractNode with AstNodeBase with StaticType[ImportEMT res } } + +object Import { + val Label = "IMPORT" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val ExplicitAs = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.EXPLICIT_AS + val ImportedAs = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.IMPORTED_AS + val ImportedEntity = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.IMPORTED_ENTITY + val IsExplicit = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.IS_EXPLICIT + val IsWildcard = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.IS_WILDCARD + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class Import(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 17.toShort, seq_4762) with ImportBase @@ -68,6 +85,7 @@ class Import(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Import] } + object NewImport { def apply(): NewImport = new NewImport } class NewImport extends NewNode(17.toShort) with ImportBase { type RelatedStored = Import diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/JumpLabel.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/JumpLabel.scala index 99b3c9e0..7ce6bbd1 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/JumpLabel.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/JumpLabel.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait JumpLabelEMT extends AnyRef with AstNodeEMT with HasNameEMT with HasParserTypeNameEMT + trait JumpLabelBase extends AbstractNode with AstNodeBase with StaticType[JumpLabelEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -19,6 +20,19 @@ trait JumpLabelBase extends AbstractNode with AstNodeBase with StaticType[JumpLa res } } + +object JumpLabel { + val Label = "JUMP_LABEL" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val ParserTypeName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.PARSER_TYPE_NAME + } +} + class JumpLabel(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 18.toShort, seq_4762) with JumpLabelBase @@ -52,6 +66,7 @@ class JumpLabel(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[JumpLabel] } + object NewJumpLabel { def apply(): NewJumpLabel = new NewJumpLabel } class NewJumpLabel extends NewNode(18.toShort) with JumpLabelBase { type RelatedStored = JumpLabel diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/JumpTarget.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/JumpTarget.scala index f66b7cd1..b6f00a99 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/JumpTarget.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/JumpTarget.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait JumpTargetEMT extends AnyRef with CfgNodeEMT with HasArgumentIndexEMT with HasNameEMT with HasParserTypeNameEMT + trait JumpTargetBase extends AbstractNode with CfgNodeBase with StaticType[JumpTargetEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -20,6 +21,20 @@ trait JumpTargetBase extends AbstractNode with CfgNodeBase with StaticType[JumpT res } } + +object JumpTarget { + val Label = "JUMP_TARGET" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val ParserTypeName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.PARSER_TYPE_NAME + } +} + class JumpTarget(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 19.toShort, seq_4762) with JumpTargetBase @@ -55,6 +70,7 @@ class JumpTarget(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[JumpTarget] } + object NewJumpTarget { def apply(): NewJumpTarget = new NewJumpTarget } class NewJumpTarget extends NewNode(19.toShort) with JumpTargetBase { type RelatedStored = JumpTarget diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/KeyValuePair.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/KeyValuePair.scala index 3956e0f0..04480ccf 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/KeyValuePair.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/KeyValuePair.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait KeyValuePairEMT extends AnyRef with HasKeyEMT with HasValueEMT + trait KeyValuePairBase extends AbstractNode with StaticType[KeyValuePairEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -15,6 +16,15 @@ trait KeyValuePairBase extends AbstractNode with StaticType[KeyValuePairEMT] { res } } + +object KeyValuePair { + val Label = "KEY_VALUE_PAIR" + object PropertyKinds { + val Key = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.KEY + val Value = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.VALUE + } +} + class KeyValuePair(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 20.toShort, seq_4762) with KeyValuePairBase @@ -39,6 +49,7 @@ class KeyValuePair(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[KeyValuePair] } + object NewKeyValuePair { def apply(): NewKeyValuePair = new NewKeyValuePair } class NewKeyValuePair extends NewNode(20.toShort) with KeyValuePairBase { type RelatedStored = KeyValuePair diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Literal.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Literal.scala index 44aafce5..522e9ec3 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Literal.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Literal.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait LiteralEMT extends AnyRef with ExpressionEMT with HasDynamicTypeHintFullNameEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait LiteralBase extends AbstractNode with ExpressionBase with StaticType[LiteralEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -23,6 +24,22 @@ trait LiteralBase extends AbstractNode with ExpressionBase with StaticType[Liter res } } + +object Literal { + val Label = "LITERAL" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class Literal(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 21.toShort, seq_4762) with LiteralBase @@ -62,6 +79,7 @@ class Literal(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Literal] } + object NewLiteral { def apply(): NewLiteral = new NewLiteral } class NewLiteral extends NewNode(21.toShort) with LiteralBase { type RelatedStored = Literal diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Local.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Local.scala index 2471daca..abe81c90 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Local.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Local.scala @@ -12,6 +12,7 @@ trait LocalEMT with HasDynamicTypeHintFullNameEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait LocalBase extends AbstractNode with AstNodeBase with DeclarationBase with StaticType[LocalEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -30,6 +31,22 @@ trait LocalBase extends AbstractNode with AstNodeBase with DeclarationBase with res } } + +object Local { + val Label = "LOCAL" + object PropertyKinds { + val ClosureBindingId = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CLOSURE_BINDING_ID + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class Local(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 22.toShort, seq_4762) with LocalBase @@ -70,6 +87,7 @@ class Local(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Local] } + object NewLocal { def apply(): NewLocal = new NewLocal } class NewLocal extends NewNode(22.toShort) with LocalBase { type RelatedStored = Local diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Location.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Location.scala index 37a51130..56cd945e 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Location.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Location.scala @@ -15,6 +15,7 @@ trait LocationEMT with HasNodeLabelEMT with HasPackageNameEMT with HasSymbolEMT + trait LocationBase extends AbstractNode with StaticType[LocationEMT] { def node: Option[AbstractNode] override def propertiesMap: java.util.Map[String, Any] = { @@ -33,6 +34,22 @@ trait LocationBase extends AbstractNode with StaticType[LocationEMT] { res } } + +object Location { + val Label = "LOCATION" + object PropertyKinds { + val ClassName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CLASS_NAME + val ClassShortName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CLASS_SHORT_NAME + val Filename = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FILENAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val MethodFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.METHOD_FULL_NAME + val MethodShortName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.METHOD_SHORT_NAME + val NodeLabel = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NODE_LABEL + val PackageName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.PACKAGE_NAME + val Symbol = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.SYMBOL + } +} + class Location(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 23.toShort, seq_4762) with LocationBase @@ -74,6 +91,7 @@ class Location(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Location] } + object NewLocation { def apply(): NewLocation = new NewLocation } class NewLocation extends NewNode(23.toShort) with LocationBase { type RelatedStored = Location diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Member.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Member.scala index 913bd0b4..d45a2a5c 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Member.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Member.scala @@ -11,6 +11,7 @@ trait MemberEMT with HasDynamicTypeHintFullNameEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait MemberBase extends AbstractNode with AstNodeBase with DeclarationBase with StaticType[MemberEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -28,6 +29,21 @@ trait MemberBase extends AbstractNode with AstNodeBase with DeclarationBase with res } } + +object Member { + val Label = "MEMBER" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class Member(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 24.toShort, seq_4762) with MemberBase @@ -66,6 +82,7 @@ class Member(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Member] } + object NewMember { def apply(): NewMember = new NewMember } class NewMember extends NewNode(24.toShort) with MemberBase { type RelatedStored = Member diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MetaData.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MetaData.scala index b29d8db8..2d23e447 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MetaData.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MetaData.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait MetaDataEMT extends AnyRef with HasHashEMT with HasLanguageEMT with HasOverlaysEMT with HasRootEMT with HasVersionEMT + trait MetaDataBase extends AbstractNode with StaticType[MetaDataEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -18,6 +19,18 @@ trait MetaDataBase extends AbstractNode with StaticType[MetaDataEMT] { res } } + +object MetaData { + val Label = "META_DATA" + object PropertyKinds { + val Hash = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.HASH + val Language = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LANGUAGE + val Overlays = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.OVERLAYS + val Root = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ROOT + val Version = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.VERSION + } +} + class MetaData(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 25.toShort, seq_4762) with MetaDataBase @@ -48,6 +61,7 @@ class MetaData(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[MetaData] } + object NewMetaData { def apply(): NewMetaData = new NewMetaData } class NewMetaData extends NewNode(25.toShort) with MetaDataBase { type RelatedStored = MetaData diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Method.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Method.scala index 78a951fe..fd4e8e46 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Method.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Method.scala @@ -17,6 +17,7 @@ trait MethodEMT with HasIsExternalEMT with HasLineNumberEndEMT with HasSignatureEMT + trait MethodBase extends AbstractNode with CfgNodeBase with DeclarationBase with StaticType[MethodEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -39,6 +40,27 @@ trait MethodBase extends AbstractNode with CfgNodeBase with DeclarationBase with res } } + +object Method { + val Label = "METHOD" + object PropertyKinds { + val AstParentFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.AST_PARENT_FULL_NAME + val AstParentType = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.AST_PARENT_TYPE + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val ColumnNumberEnd = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER_END + val Filename = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FILENAME + val FullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FULL_NAME + val Hash = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.HASH + val IsExternal = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.IS_EXTERNAL + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val LineNumberEnd = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER_END + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val Signature = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.SIGNATURE + } +} + class Method(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 26.toShort, seq_4762) with MethodBase @@ -89,6 +111,7 @@ class Method(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Method] } + object NewMethod { def apply(): NewMethod = new NewMethod } class NewMethod extends NewNode(26.toShort) with MethodBase { type RelatedStored = Method diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodParameterIn.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodParameterIn.scala index 290f6ed5..11b6d650 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodParameterIn.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodParameterIn.scala @@ -14,6 +14,7 @@ trait MethodParameterInEMT with HasIsVariadicEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait MethodParameterInBase extends AbstractNode with CfgNodeBase with DeclarationBase with StaticType[MethodParameterInEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -34,6 +35,24 @@ trait MethodParameterInBase extends AbstractNode with CfgNodeBase with Declarati res } } + +object MethodParameterIn { + val Label = "METHOD_PARAMETER_IN" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val EvaluationStrategy = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.EVALUATION_STRATEGY + val Index = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.INDEX + val IsVariadic = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.IS_VARIADIC + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class MethodParameterIn(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 27.toShort, seq_4762) with MethodParameterInBase @@ -78,6 +97,7 @@ class MethodParameterIn(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[MethodParameterIn] } + object NewMethodParameterIn { def apply(): NewMethodParameterIn = new NewMethodParameterIn } class NewMethodParameterIn extends NewNode(27.toShort) with MethodParameterInBase { type RelatedStored = MethodParameterIn diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodParameterOut.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodParameterOut.scala index 631280ac..a97bbaca 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodParameterOut.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodParameterOut.scala @@ -12,6 +12,7 @@ trait MethodParameterOutEMT with HasIndexEMT with HasIsVariadicEMT with HasTypeFullNameEMT + trait MethodParameterOutBase extends AbstractNode with CfgNodeBase with DeclarationBase with StaticType[MethodParameterOutEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -29,6 +30,22 @@ trait MethodParameterOutBase extends AbstractNode with CfgNodeBase with Declarat res } } + +object MethodParameterOut { + val Label = "METHOD_PARAMETER_OUT" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val EvaluationStrategy = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.EVALUATION_STRATEGY + val Index = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.INDEX + val IsVariadic = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.IS_VARIADIC + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class MethodParameterOut(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 28.toShort, seq_4762) with MethodParameterOutBase @@ -69,6 +86,7 @@ class MethodParameterOut(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[MethodParameterOut] } + object NewMethodParameterOut { def apply(): NewMethodParameterOut = new NewMethodParameterOut } class NewMethodParameterOut extends NewNode(28.toShort) with MethodParameterOutBase { type RelatedStored = MethodParameterOut diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodRef.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodRef.scala index ead8805c..36194f3c 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodRef.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodRef.scala @@ -11,6 +11,7 @@ trait MethodRefEMT with HasMethodFullNameEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait MethodRefBase extends AbstractNode with ExpressionBase with StaticType[MethodRefEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -30,6 +31,23 @@ trait MethodRefBase extends AbstractNode with ExpressionBase with StaticType[Met res } } + +object MethodRef { + val Label = "METHOD_REF" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val MethodFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.METHOD_FULL_NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class MethodRef(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 29.toShort, seq_4762) with MethodRefBase @@ -71,6 +89,7 @@ class MethodRef(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[MethodRef] } + object NewMethodRef { def apply(): NewMethodRef = new NewMethodRef } class NewMethodRef extends NewNode(29.toShort) with MethodRefBase { type RelatedStored = MethodRef diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodReturn.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodReturn.scala index 864ca890..ba450e8e 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodReturn.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/MethodReturn.scala @@ -11,6 +11,7 @@ trait MethodReturnEMT with HasEvaluationStrategyEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait MethodReturnBase extends AbstractNode with CfgNodeBase with StaticType[MethodReturnEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -28,6 +29,21 @@ trait MethodReturnBase extends AbstractNode with CfgNodeBase with StaticType[Met res } } + +object MethodReturn { + val Label = "METHOD_RETURN" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val EvaluationStrategy = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.EVALUATION_STRATEGY + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class MethodReturn(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 30.toShort, seq_4762) with MethodReturnBase @@ -65,6 +81,7 @@ class MethodReturn(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[MethodReturn] } + object NewMethodReturn { def apply(): NewMethodReturn = new NewMethodReturn } class NewMethodReturn extends NewNode(30.toShort) with MethodReturnBase { type RelatedStored = MethodReturn diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Modifier.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Modifier.scala index 3eddead4..9b9a0b6b 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Modifier.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Modifier.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait ModifierEMT extends AnyRef with AstNodeEMT with HasModifierTypeEMT + trait ModifierBase extends AbstractNode with AstNodeBase with StaticType[ModifierEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -18,6 +19,18 @@ trait ModifierBase extends AbstractNode with AstNodeBase with StaticType[Modifie res } } + +object Modifier { + val Label = "MODIFIER" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val ModifierType = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.MODIFIER_TYPE + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class Modifier(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 31.toShort, seq_4762) with ModifierBase @@ -49,6 +62,7 @@ class Modifier(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Modifier] } + object NewModifier { def apply(): NewModifier = new NewModifier } class NewModifier extends NewNode(31.toShort) with ModifierBase { type RelatedStored = Modifier diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Namespace.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Namespace.scala index c62fc7b5..c9229f8b 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Namespace.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Namespace.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait NamespaceEMT extends AnyRef with AstNodeEMT with HasNameEMT + trait NamespaceBase extends AbstractNode with AstNodeBase with StaticType[NamespaceEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -18,6 +19,18 @@ trait NamespaceBase extends AbstractNode with AstNodeBase with StaticType[Namesp res } } + +object Namespace { + val Label = "NAMESPACE" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class Namespace(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 32.toShort, seq_4762) with NamespaceBase @@ -49,6 +62,7 @@ class Namespace(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Namespace] } + object NewNamespace { def apply(): NewNamespace = new NewNamespace } class NewNamespace extends NewNode(32.toShort) with NamespaceBase { type RelatedStored = Namespace diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/NamespaceBlock.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/NamespaceBlock.scala index e7a3c966..cced4cd8 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/NamespaceBlock.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/NamespaceBlock.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait NamespaceBlockEMT extends AnyRef with AstNodeEMT with HasFilenameEMT with HasFullNameEMT with HasNameEMT + trait NamespaceBlockBase extends AbstractNode with AstNodeBase with StaticType[NamespaceBlockEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -20,6 +21,20 @@ trait NamespaceBlockBase extends AbstractNode with AstNodeBase with StaticType[N res } } + +object NamespaceBlock { + val Label = "NAMESPACE_BLOCK" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val Filename = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FILENAME + val FullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class NamespaceBlock(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 33.toShort, seq_4762) with NamespaceBlockBase @@ -55,6 +70,7 @@ class NamespaceBlock(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[NamespaceBlock] } + object NewNamespaceBlock { def apply(): NewNamespaceBlock = new NewNamespaceBlock } class NewNamespaceBlock extends NewNode(33.toShort) with NamespaceBlockBase { type RelatedStored = NamespaceBlock diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Return.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Return.scala index fcce5d6c..5925cb67 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Return.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Return.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait ReturnEMT extends AnyRef with ExpressionEMT + trait ReturnBase extends AbstractNode with ExpressionBase with StaticType[ReturnEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -19,6 +20,19 @@ trait ReturnBase extends AbstractNode with ExpressionBase with StaticType[Return res } } + +object Return { + val Label = "RETURN" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class Return(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 34.toShort, seq_4762) with ReturnBase @@ -52,6 +66,7 @@ class Return(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Return] } + object NewReturn { def apply(): NewReturn = new NewReturn } class NewReturn extends NewNode(34.toShort) with ReturnBase { type RelatedStored = Return diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Tag.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Tag.scala index c2dfbe45..1116503e 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Tag.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Tag.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait TagEMT extends AnyRef with HasNameEMT with HasValueEMT + trait TagBase extends AbstractNode with StaticType[TagEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -15,6 +16,15 @@ trait TagBase extends AbstractNode with StaticType[TagEMT] { res } } + +object Tag { + val Label = "TAG" + object PropertyKinds { + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Value = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.VALUE + } +} + class Tag(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 35.toShort, seq_4762) with TagBase with StaticType[TagEMT] { override def productElementName(n: Int): String = @@ -36,6 +46,7 @@ class Tag(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Tag] } + object NewTag { def apply(): NewTag = new NewTag } class NewTag extends NewNode(35.toShort) with TagBase { type RelatedStored = Tag diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TagNodePair.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TagNodePair.scala index c0bbbfbd..f9fd47e2 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TagNodePair.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TagNodePair.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait TagNodePairEMT extends AnyRef + trait TagNodePairBase extends AbstractNode with StaticType[TagNodePairEMT] { def node: AbstractNode def tag: TagBase @@ -16,6 +17,12 @@ trait TagNodePairBase extends AbstractNode with StaticType[TagNodePairEMT] { res } } + +object TagNodePair { + val Label = "TAG_NODE_PAIR" + object PropertyKinds {} +} + class TagNodePair(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 36.toShort, seq_4762) with TagNodePairBase @@ -42,6 +49,7 @@ class TagNodePair(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[TagNodePair] } + object NewTagNodePair { def apply(): NewTagNodePair = new NewTagNodePair } class NewTagNodePair extends NewNode(36.toShort) with TagNodePairBase { type RelatedStored = TagNodePair diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TemplateDom.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TemplateDom.scala index df383e54..60988fdb 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TemplateDom.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TemplateDom.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait TemplateDomEMT extends AnyRef with ExpressionEMT with HasNameEMT + trait TemplateDomBase extends AbstractNode with ExpressionBase with StaticType[TemplateDomEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -20,6 +21,20 @@ trait TemplateDomBase extends AbstractNode with ExpressionBase with StaticType[T res } } + +object TemplateDom { + val Label = "TEMPLATE_DOM" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class TemplateDom(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 37.toShort, seq_4762) with TemplateDomBase @@ -55,6 +70,7 @@ class TemplateDom(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[TemplateDom] } + object NewTemplateDom { def apply(): NewTemplateDom = new NewTemplateDom } class NewTemplateDom extends NewNode(37.toShort) with TemplateDomBase { type RelatedStored = TemplateDom diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Type.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Type.scala index d72e3395..178e86e0 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Type.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Type.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait TypeEMT extends AnyRef with HasFullNameEMT with HasNameEMT with HasTypeDeclFullNameEMT + trait TypeBase extends AbstractNode with StaticType[TypeEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -16,6 +17,16 @@ trait TypeBase extends AbstractNode with StaticType[TypeEMT] { res } } + +object Type { + val Label = "TYPE" + object PropertyKinds { + val FullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FULL_NAME + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val TypeDeclFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_DECL_FULL_NAME + } +} + class Type(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 38.toShort, seq_4762) with TypeBase @@ -42,6 +53,7 @@ class Type(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Type] } + object NewType { def apply(): NewType = new NewType } class NewType extends NewNode(38.toShort) with TypeBase { type RelatedStored = Type diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeArgument.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeArgument.scala index 38e2df72..ea3e7746 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeArgument.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeArgument.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait TypeArgumentEMT extends AnyRef with AstNodeEMT + trait TypeArgumentBase extends AbstractNode with AstNodeBase with StaticType[TypeArgumentEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -17,6 +18,17 @@ trait TypeArgumentBase extends AbstractNode with AstNodeBase with StaticType[Typ res } } + +object TypeArgument { + val Label = "TYPE_ARGUMENT" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class TypeArgument(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 39.toShort, seq_4762) with TypeArgumentBase @@ -46,6 +58,7 @@ class TypeArgument(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[TypeArgument] } + object NewTypeArgument { def apply(): NewTypeArgument = new NewTypeArgument } class NewTypeArgument extends NewNode(39.toShort) with TypeArgumentBase { type RelatedStored = TypeArgument diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeDecl.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeDecl.scala index 297da0aa..869f477f 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeDecl.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeDecl.scala @@ -15,6 +15,7 @@ trait TypeDeclEMT with HasInheritsFromTypeFullNameEMT with HasIsExternalEMT with HasNameEMT + trait TypeDeclBase extends AbstractNode with AstNodeBase with StaticType[TypeDeclEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -36,6 +37,25 @@ trait TypeDeclBase extends AbstractNode with AstNodeBase with StaticType[TypeDec res } } + +object TypeDecl { + val Label = "TYPE_DECL" + object PropertyKinds { + val AliasTypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ALIAS_TYPE_FULL_NAME + val AstParentFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.AST_PARENT_FULL_NAME + val AstParentType = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.AST_PARENT_TYPE + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val Filename = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FILENAME + val FullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.FULL_NAME + val InheritsFromTypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.INHERITS_FROM_TYPE_FULL_NAME + val IsExternal = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.IS_EXTERNAL + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class TypeDecl(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 40.toShort, seq_4762) with TypeDeclBase @@ -81,6 +101,7 @@ class TypeDecl(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[TypeDecl] } + object NewTypeDecl { def apply(): NewTypeDecl = new NewTypeDecl } class NewTypeDecl extends NewNode(40.toShort) with TypeDeclBase { type RelatedStored = TypeDecl diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeParameter.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeParameter.scala index 2799376f..01ec4e50 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeParameter.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeParameter.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait TypeParameterEMT extends AnyRef with AstNodeEMT with HasNameEMT + trait TypeParameterBase extends AbstractNode with AstNodeBase with StaticType[TypeParameterEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -18,6 +19,18 @@ trait TypeParameterBase extends AbstractNode with AstNodeBase with StaticType[Ty res } } + +object TypeParameter { + val Label = "TYPE_PARAMETER" + object PropertyKinds { + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Name = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.NAME + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + } +} + class TypeParameter(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 41.toShort, seq_4762) with TypeParameterBase @@ -49,6 +62,7 @@ class TypeParameter(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[TypeParameter] } + object NewTypeParameter { def apply(): NewTypeParameter = new NewTypeParameter } class NewTypeParameter extends NewNode(41.toShort) with TypeParameterBase { type RelatedStored = TypeParameter diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeRef.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeRef.scala index bcf2f327..806d80a4 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeRef.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/TypeRef.scala @@ -5,6 +5,7 @@ import io.shiftleft.codepropertygraph.generated.v2.Language.* import scala.collection.immutable.{IndexedSeq, ArraySeq} trait TypeRefEMT extends AnyRef with ExpressionEMT with HasDynamicTypeHintFullNameEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait TypeRefBase extends AbstractNode with ExpressionBase with StaticType[TypeRefEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -23,6 +24,22 @@ trait TypeRefBase extends AbstractNode with ExpressionBase with StaticType[TypeR res } } + +object TypeRef { + val Label = "TYPE_REF" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class TypeRef(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 42.toShort, seq_4762) with TypeRefBase @@ -62,6 +79,7 @@ class TypeRef(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[TypeRef] } + object NewTypeRef { def apply(): NewTypeRef = new NewTypeRef } class NewTypeRef extends NewNode(42.toShort) with TypeRefBase { type RelatedStored = TypeRef diff --git a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Unknown.scala b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Unknown.scala index c3e5a6b8..e6174d5c 100644 --- a/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Unknown.scala +++ b/joern-generated/src/main/scala/io/shiftleft/codepropertygraph/generated/v2/nodes/Unknown.scala @@ -12,6 +12,7 @@ trait UnknownEMT with HasParserTypeNameEMT with HasPossibleTypesEMT with HasTypeFullNameEMT + trait UnknownBase extends AbstractNode with ExpressionBase with StaticType[UnknownEMT] { override def propertiesMap: java.util.Map[String, Any] = { @@ -32,6 +33,24 @@ trait UnknownBase extends AbstractNode with ExpressionBase with StaticType[Unkno res } } + +object Unknown { + val Label = "UNKNOWN" + object PropertyKinds { + val ArgumentIndex = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_INDEX + val ArgumentName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ARGUMENT_NAME + val Code = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CODE + val ColumnNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.COLUMN_NUMBER + val ContainedRef = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.CONTAINED_REF + val DynamicTypeHintFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.DYNAMIC_TYPE_HINT_FULL_NAME + val LineNumber = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.LINE_NUMBER + val Order = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.ORDER + val ParserTypeName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.PARSER_TYPE_NAME + val PossibleTypes = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.POSSIBLE_TYPES + val TypeFullName = io.shiftleft.codepropertygraph.generated.v2.PropertyKinds.TYPE_FULL_NAME + } +} + class Unknown(graph_4762: odb2.Graph, seq_4762: Int) extends StoredNode(graph_4762, 43.toShort, seq_4762) with UnknownBase @@ -75,6 +94,7 @@ class Unknown(graph_4762: odb2.Graph, seq_4762: Int) override def canEqual(that: Any): Boolean = that != null && that.isInstanceOf[Unknown] } + object NewUnknown { def apply(): NewUnknown = new NewUnknown } class NewUnknown extends NewNode(43.toShort) with UnknownBase { type RelatedStored = Unknown