ENG:add a virtual method getvalue() to ast
ENH:add getValue() function