getText() is a method that will return the value of the text in that field. So to get the text from the expression text field you would use expression.getText() and store the result in a variable.