Class StatementListContainerExtension
java.lang.Object
tools.mdsd.jamopp.model.java.extensions.statements.StatementListContainerExtension
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalVariable
getLocalVariable
(StatementListContainer statementListContainer, String name) Returns the first local variable in the givenStatementListContainer
with the specified name.
-
Method Details
-
getLocalVariable
public static LocalVariable getLocalVariable(StatementListContainer statementListContainer, String name) Returns the first local variable in the givenStatementListContainer
with the specified name.- Parameters:
statementListContainer
- theStatementListContainer
to search inname
- the name of the variable to search for- Returns:
- a local variable with the given name or
null
if no such variable was found
-