Changes for page SCL Extensions
Last modified by Richard Kreissig on 2023/09/14 11:13
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -116,7 +116,7 @@ 116 116 117 117 def AbstractThread getThread(Statement)(% style="font-size: small;" %) 118 118 )))|((( 119 -Returns the SCL thread of a SCL statement or SCL instruction 119 +Returns the SCL thread of a SCL statement or SCL instruction. 120 120 ))) 121 121 |(% colspan="1" %)(% colspan="1" %) 122 122 ((( ... ... @@ -125,7 +125,7 @@ 125 125 def AbstractThread getMainThread(Statement)(% style="font-size: small;" %) 126 126 )))|(% colspan="1" %)(% colspan="1" %) 127 127 ((( 128 -Returns the main thread of a SCL program 128 +Returns the main thread of a SCL program. 129 129 ))) 130 130 |(% colspan="1" %)(% colspan="1" %) 131 131 ((( ... ... @@ -134,7 +134,7 @@ 134 134 def **boolean** isInSameThreadAs(Statement, Statement) 135 135 )))|(% colspan="1" %)(% colspan="1" %) 136 136 ((( 137 -Returns true, if both instructions/statements are in the same thread 137 +Returns true, if both instructions/statements are in the same thread. 138 138 ))) 139 139 |(% colspan="1" %)(% colspan="1" %) 140 140 ((( ... ... @@ -143,40 +143,78 @@ 143 143 def **boolean** isInMainThread(Statement) 144 144 )))|(% colspan="1" %)(% colspan="1" %) 145 145 ((( 146 -Returns true, if the instruction/statement runs in the main thread 146 +Returns true, if the instruction/statement runs in the main thread. 147 147 ))) 148 148 |(% colspan="1" %)(% colspan="1" %) 149 149 ((( 150 -def **boolean** isInThread(Instruction, Thread) 150 +def **boolean** isInThread(Instruction, AbstractThread) 151 151 152 -def **boolean** isInThread(Statement, Thread) 152 +def **boolean** isInThread(Statement, AbstractThread) 153 153 )))|(% colspan="1" %)(% colspan="1" %) 154 154 ((( 155 -Returns true, if the instruction/statement runs in the given thread 155 +Returns true, if the instruction/statement runs in the given thread. 156 156 ))) 157 157 |(% colspan="1" %)(% colspan="1" %) 158 158 ((( 159 -def **boolean** contains(Thread, Instruction) 159 +def **boolean** contains(AbstractThread, Instruction) 160 160 161 -def **boolean** contains(Thread, Statements) 161 +def **boolean** contains(AbstractThread, Statements) 162 162 )))|(% colspan="1" %)(% colspan="1" %) 163 163 ((( 164 -Returns true, if the thread contains the given instruction/statement 164 +Returns true, if the thread contains the given instruction/statement. 165 165 ))) 166 166 |(% colspan="1" %)(% colspan="1" %) 167 167 ((( 168 -def dropPrevious(Thread, Statement) 168 +def dropPrevious(AbstractThread, Statement) 169 169 170 170 def dropPrevious(List<Statement>, Statement)(% style="font-size: small;" %) 171 171 )))|(% colspan="1" %)(% colspan="1" %) 172 172 ((( 173 -Drops all preceeding statements in a thread or a list of statements until the given statement is reached 173 +Drops all preceeding statements in a thread or a list of statements until the given statement is reached. 174 174 ))) 175 175 176 176 = SCL Goto Extensions = 177 177 178 - //coming soon...//178 +To help with the handling of the goto statement and its target instruction, use the SCL Goto Extensions. 179 179 180 +|=((( 181 +Method 182 +)))|=((( 183 +Description 184 +))) 185 +|((( 186 +def Statement getTargetStatement(Goto) 187 + 188 +def Statement getTargetStatement(Goto, AbstractThread) 189 +)))|((( 190 +Returns the target statement of a goto instruction (in the context of the (given) thread). 191 +))) 192 +|(% colspan="1" %)(% colspan="1" %) 193 +((( 194 +def boolean targetExists(Goto) 195 + 196 +def boolean targetExists(Goto, AbstractThread) 197 +)))|(% colspan="1" %)(% colspan="1" %) 198 +((( 199 +Returns true, if the target of a goto instruction exists (in the context of the (given) thread). 200 +))) 201 +|(% colspan="1" %)(% colspan="1" %) 202 +((( 203 +def InstructionStatement getInstructionStatement(Statement)(% style="font-size: small;" %) 204 +)))|(% colspan="1" %)(% colspan="1" %) 205 +((( 206 +Returns the first valid InstructionStatement in a thread after the given statement. **May return null, if no further InstructionStatement exists.** 207 + 208 +To get a valid instruction form a goto jump, one can write "goto.getTargetStatement?.getInstructionStatement?.instruction". The result value will be the instruction or null. 209 +))) 210 +|(% colspan="1" %)(% colspan="1" %) 211 +((( 212 +def getIncomingGotos(Statement) 213 +)))|(% colspan="1" %)(% colspan="1" %) 214 +((( 215 +Returns a list of all gotos that target the given statement. If you want to retrieve the count of incoming goto jumps, use "getIncomingGotos.size". 216 +))) 217 + 180 180 = SCL Expression Extensions = 181 181 182 182 //coming soon...//
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -675023 01 +6750231 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/675023 0/SCL Extensions1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/6750231/SCL Extensions