diff --git a/sections/stm2.tex b/sections/stm2.tex index ef4cf867cc4ad778f7847f6d1ff53674e113c12a..ac9bf955d45f1f0a13fb62a46102ec2cc1aab9b6 100644 --- a/sections/stm2.tex +++ b/sections/stm2.tex @@ -46,7 +46,7 @@ During the implementation phase of parameter inference, RAG was beneficial at wr \begin{itemize} \item As long as a returned type can be called or storable in primitive way, the syntax in RAG is reduced with an equlas sign and simpler than in common programming language. Therefore, the source codes are compact. To compare how RAG could be implemented effectively, see the implementation of an attribute in this work in Listing 5.3 and how this attribute is defined in common Java description in Listing 5.4. -\item For loop with inherited attributes +\item To iterate all paths available in OpenAPI, an inherited attribute facilitated the writing effort. Paths Objects are child nodes of OpenAPI Object, so, all that should have been done was only two lines of code instead of writing an extra for loop. See Listing 5.5. \item Collection attributes \end{itemize} @@ -60,6 +60,13 @@ public String InferredParameter.value() { } \end{lstlisting} +\begin{lstlisting}[language=JRAG,label={lst:java-infParam},caption={InferredParameter.value() in Java}] +inh boolean PathsObject.inferUrl(); +eq OpenAPIObject.getPathsObject(int i).inferUrl(){ + ... +} +\end{lstlisting} + % Result % Future work