Class VariableExtension
- java.lang.Object
-
- org.emftext.language.java.extensions.variables.VariableExtension
-
public class VariableExtension extends Object
-
-
Constructor Summary
Constructors Constructor Description VariableExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IdentifierReference
createMethodCall(Variable me, String methodName, EList<Expression> arguments)
Creates an expression that calls the method with the given name on this variable.static ExpressionStatement
createMethodCallStatement(Variable me, String methodName, EList<Expression> arguments)
Creates a statement that calls the method with the given name on this variable.
-
-
-
Method Detail
-
createMethodCallStatement
public static ExpressionStatement createMethodCallStatement(Variable me, 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 me, 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
-
-
-