Class VariableExtension
java.lang.Object
tools.mdsd.jamopp.model.java.extensions.variables.VariableExtension
-
Method Summary
Modifier and TypeMethodDescriptionstatic IdentifierReference
createMethodCall
(Variable variable, String methodName, EList<Expression> arguments) Creates an expression that calls the method with the given name on this variable.static ExpressionStatement
createMethodCallStatement
(Variable variable, String methodName, EList<Expression> arguments) Creates a statement that calls the method with the given name on this variable.
-
Method Details
-
createMethodCallStatement
public static ExpressionStatement createMethodCallStatement(Variable variable, String methodName, EList<Expression> arguments) Creates a statement that calls the method with the given name on this variable. If the variable's type does not offer such a method, null is returned.- Parameters:
methodName
-arguments
-
-
createMethodCall
public static IdentifierReference createMethodCall(Variable variable, String methodName, EList<Expression> arguments) Creates an expression that calls the method with the given name on this variable. If the variable's type does not offer such a method, null is returned.- Parameters:
methodName
-arguments
-
-