public static boolean isFunctionOfType ( Expression expr , FunctionDefinition . Type type ) { return expr instanceof CallExpression && ( ( CallExpression ) expr ) . getFunctionDefinition ( ) . getType ( ) == type ; }
Checks if the expression is a function call of given type .