@@ -169,114 +169,119 @@ object Properties {
169169 */
170170 val IsExternal = flatgraph.SinglePropertyKey [Boolean ](kind = 29 , name = " IS_EXTERNAL" , default = false )
171171
172+ /** Specifies whether this is a module import. This is used for languages like Java >= 25 where packages exported by a
173+ * module can be imported via the module name (which does not need to match the package names in any way).
174+ */
175+ val IsModuleImport = flatgraph.OptionalPropertyKey [Boolean ](kind = 30 , name = " IS_MODULE_IMPORT" )
176+
172177 /** Specifies whether a parameter is the variadic argument handling parameter of a variadic method. Only one parameter
173178 * of a method is allowed to have this property set to true.
174179 */
175- val IsVariadic = flatgraph.SinglePropertyKey [Boolean ](kind = 30 , name = " IS_VARIADIC" , default = false )
180+ val IsVariadic = flatgraph.SinglePropertyKey [Boolean ](kind = 31 , name = " IS_VARIADIC" , default = false )
176181
177182 /** Specifies whether this is a wildcard import. For a Java import like "import java.nio.*;" IS_WILDCARD would be
178183 * "true" and IMPORTED_ENTITY would be "java.nio". For wildcard imports the IMPORTED_AS property is ignored.
179184 */
180- val IsWildcard = flatgraph.OptionalPropertyKey [Boolean ](kind = 31 , name = " IS_WILDCARD" )
185+ val IsWildcard = flatgraph.OptionalPropertyKey [Boolean ](kind = 32 , name = " IS_WILDCARD" )
181186
182187 /** This property denotes a key of a key-value pair. */
183- val Key = flatgraph.SinglePropertyKey [String ](kind = 32 , name = " KEY" , default = " <empty>" )
188+ val Key = flatgraph.SinglePropertyKey [String ](kind = 33 , name = " KEY" , default = " <empty>" )
184189
185190 /** This field indicates which CPG language frontend generated the CPG. Frontend developers may freely choose a value
186191 * that describes their frontend so long as it is not used by an existing frontend. Reserved values are to date: C,
187192 * LLVM, GHIDRA, PHP.
188193 */
189- val Language = flatgraph.SinglePropertyKey [String ](kind = 33 , name = " LANGUAGE" , default = " <empty>" )
194+ val Language = flatgraph.SinglePropertyKey [String ](kind = 34 , name = " LANGUAGE" , default = " <empty>" )
190195
191196 /** This optional field provides the line number of the program construct represented by the node.
192197 */
193- val LineNumber = flatgraph.OptionalPropertyKey [Int ](kind = 34 , name = " LINE_NUMBER" )
198+ val LineNumber = flatgraph.OptionalPropertyKey [Int ](kind = 35 , name = " LINE_NUMBER" )
194199
195200 /** This optional fields provides the line number at which the program construct represented by the node ends.
196201 */
197- val LineNumberEnd = flatgraph.OptionalPropertyKey [Int ](kind = 35 , name = " LINE_NUMBER_END" )
202+ val LineNumberEnd = flatgraph.OptionalPropertyKey [Int ](kind = 36 , name = " LINE_NUMBER_END" )
198203
199204 /** The FULL_NAME of a method. Used to link CALL and METHOD nodes. It is required to have exactly one METHOD node for
200205 * each METHOD_FULL_NAME
201206 */
202- val MethodFullName = flatgraph.SinglePropertyKey [String ](kind = 36 , name = " METHOD_FULL_NAME" , default = " <empty>" )
207+ val MethodFullName = flatgraph.SinglePropertyKey [String ](kind = 37 , name = " METHOD_FULL_NAME" , default = " <empty>" )
203208
204209 /** The modifier type is a free-form string. The following are known modifier types: `STATIC`, `PUBLIC`, `PROTECTED`,
205210 * `PRIVATE`, `ABSTRACT`, `NATIVE`, `CONSTRUCTOR`, `VIRTUAL`.
206211 */
207- val ModifierType = flatgraph.SinglePropertyKey [String ](kind = 37 , name = " MODIFIER_TYPE" , default = " <empty>" )
212+ val ModifierType = flatgraph.SinglePropertyKey [String ](kind = 38 , name = " MODIFIER_TYPE" , default = " <empty>" )
208213
209214 /** Name of represented object, e.g., method name (e.g. "run") */
210- val Name = flatgraph.SinglePropertyKey [String ](kind = 38 , name = " NAME" , default = " <empty>" )
215+ val Name = flatgraph.SinglePropertyKey [String ](kind = 39 , name = " NAME" , default = " <empty>" )
211216
212217 /** Start offset into the CONTENT property of the corresponding FILE node. The offset is such that parts of the
213218 * content can easily be accessed via `content.substring(offset, offsetEnd)`. This means that the offset must be
214219 * measured in utf16 encoding (i.e. neither in characters/codeunits nor in byte-offsets into a utf8 encoding). E.g.
215220 * for METHOD nodes this start offset points to the start of the methods source code in the string holding the source
216221 * code of the entire file.
217222 */
218- val Offset = flatgraph.OptionalPropertyKey [Int ](kind = 39 , name = " OFFSET" )
223+ val Offset = flatgraph.OptionalPropertyKey [Int ](kind = 40 , name = " OFFSET" )
219224
220225 /** End offset (exclusive) into the CONTENT property of the corresponding FILE node. See OFFSET documentation for
221226 * finer details. E.g. for METHOD nodes this end offset points to the first code position which is not part of the
222227 * method.
223228 */
224- val OffsetEnd = flatgraph.OptionalPropertyKey [Int ](kind = 40 , name = " OFFSET_END" )
229+ val OffsetEnd = flatgraph.OptionalPropertyKey [Int ](kind = 41 , name = " OFFSET_END" )
225230
226231 /** This integer indicates the position of the node among its siblings in the AST. The left-most child has an order of
227232 * 0.
228233 */
229- val Order = flatgraph.SinglePropertyKey [Int ](kind = 41 , name = " ORDER" , default = - 1 : Int )
234+ val Order = flatgraph.SinglePropertyKey [Int ](kind = 42 , name = " ORDER" , default = - 1 : Int )
230235
231236 /** The field contains the names of the overlays applied to this CPG, in order of their application. Names are
232237 * free-form strings, that is, this specification does not dictate them but rather requires tool producers and
233238 * consumers to communicate them between each other.
234239 */
235- val Overlays = flatgraph.MultiPropertyKey [String ](kind = 42 , name = " OVERLAYS" )
240+ val Overlays = flatgraph.MultiPropertyKey [String ](kind = 43 , name = " OVERLAYS" )
236241
237242 /** AST node type name emitted by parser. */
238- val ParserTypeName = flatgraph.SinglePropertyKey [String ](kind = 43 , name = " PARSER_TYPE_NAME" , default = " <empty>" )
243+ val ParserTypeName = flatgraph.SinglePropertyKey [String ](kind = 44 , name = " PARSER_TYPE_NAME" , default = " <empty>" )
239244
240245 /** Similar to `DYNAMIC_TYPE_HINT_FULL_NAME`, but that this makes no guarantee that types within this property are
241246 * correct. This property is used to capture observations between node interactions during a 'may-analysis'.
242247 */
243- val PossibleTypes = flatgraph.MultiPropertyKey [String ](kind = 44 , name = " POSSIBLE_TYPES" )
248+ val PossibleTypes = flatgraph.MultiPropertyKey [String ](kind = 45 , name = " POSSIBLE_TYPES" )
244249
245250 /** The path to the root directory of the source/binary this CPG is generated from. */
246- val Root = flatgraph.SinglePropertyKey [String ](kind = 45 , name = " ROOT" , default = " <empty>" )
251+ val Root = flatgraph.SinglePropertyKey [String ](kind = 46 , name = " ROOT" , default = " <empty>" )
247252
248253 /** The method signature encodes the types of parameters in a string. The string SHOULD be human readable and suitable
249254 * for differentiating methods with different parameter types sufficiently to allow for resolving of function
250255 * overloading. The present specification does not enforce a strict format for the signature, that is, it can be
251256 * chosen by the frontend implementor to fit the source language.
252257 */
253- val Signature = flatgraph.SinglePropertyKey [String ](kind = 46 , name = " SIGNATURE" , default = " " )
258+ val Signature = flatgraph.SinglePropertyKey [String ](kind = 47 , name = " SIGNATURE" , default = " " )
254259
255260 /** The `STATIC_RECEIVER` field is used to keep track of the type on which a static method is called for static
256261 * methods which may be inherited. This information can then be used to find the true `METHOD_FULL_NAME` of the
257262 * method being called during call linking. For example, if a class `Foo` defines a static method `foo` and a class
258263 * `Bar extends Foo`, then the `STATIC_RECEIVER` of a`Bar.foo()` call is `Bar` and the `METHOD_FULL_NAME` of the
259264 * `foo` call is rewritten to `Foo.foo:<signature>`.
260265 */
261- val StaticReceiver = flatgraph.OptionalPropertyKey [String ](kind = 47 , name = " STATIC_RECEIVER" )
266+ val StaticReceiver = flatgraph.OptionalPropertyKey [String ](kind = 48 , name = " STATIC_RECEIVER" )
262267
263268 /** The static type decl of a TYPE. This property is matched against the FULL_NAME of TYPE_DECL nodes. It is required
264269 * to have exactly one TYPE_DECL for each different TYPE_DECL_FULL_NAME
265270 */
266271 val TypeDeclFullName =
267- flatgraph.SinglePropertyKey [String ](kind = 48 , name = " TYPE_DECL_FULL_NAME" , default = " <empty>" )
272+ flatgraph.SinglePropertyKey [String ](kind = 49 , name = " TYPE_DECL_FULL_NAME" , default = " <empty>" )
268273
269274 /** This field contains the fully-qualified static type name of the program construct represented by a node. It is the
270275 * name of an instantiated type, e.g., `java.util.List<Integer>`, rather than `java.util.List[T]`. If the type cannot
271276 * be determined, this field should be set to the empty string.
272277 */
273- val TypeFullName = flatgraph.SinglePropertyKey [String ](kind = 49 , name = " TYPE_FULL_NAME" , default = " <empty>" )
278+ val TypeFullName = flatgraph.SinglePropertyKey [String ](kind = 50 , name = " TYPE_FULL_NAME" , default = " <empty>" )
274279
275280 /** This property denotes a string value as used in a key-value pair. */
276- val Value = flatgraph.SinglePropertyKey [String ](kind = 50 , name = " VALUE" , default = " " )
281+ val Value = flatgraph.SinglePropertyKey [String ](kind = 51 , name = " VALUE" , default = " " )
277282
278283 /** A version, given as a string. Used, for example, in the META_DATA node to indicate which version of the CPG spec
279284 * this CPG conforms to
280285 */
281- val Version = flatgraph.SinglePropertyKey [String ](kind = 51 , name = " VERSION" , default = " <empty>" )
286+ val Version = flatgraph.SinglePropertyKey [String ](kind = 52 , name = " VERSION" , default = " <empty>" )
282287}
0 commit comments