6.5.1. General Language Representation¶
This section explains the types of nodes and edges (the “elements”) in the RFG, along with their attributes. Some graph element types within the RFG models are abstract from the perspective of source code analysis; i.e., front ends will not create elements of those types. However, you can still add graph elements of these types to your specification views because some analyses depend on the subclass relationship.
Various languages are modeled using a uniform schema. Therefore, it is possible that
the naming does not directly reflect the terminology of a specific language. For
example, the C# property
of being a sealed entity is named Element.Is_Final, which is a term taken
from Java.
This is because there is no common terminology across all languages, even though the basic concepts are very similar.
Caution
Be aware that you may need to translate the terminology used here into your language’s terminology.
In addition to the basic node and edge types presented here, some languages require
additional types of elements (e.g.,
Package in Java or
Namespace in C++ and C#). These elements and the details
of the types presented here are explained in the respective language chapters.