Getters for logical expression properties

This commit is contained in:
Tim Schaub
2013-06-11 22:54:37 -06:00
parent 3de330eb99
commit 4a617871da
2 changed files with 50 additions and 0 deletions

View File

@@ -396,6 +396,33 @@ ol.expression.Logical.prototype.evaluate = function(opt_scope, opt_fns,
};
/**
* Get the logical operator.
* @return {string} The logical operator.
*/
ol.expression.Logical.prototype.getOperator = function() {
return this.operator_;
};
/**
* Get the left expression.
* @return {ol.expression.Expression} The left expression.
*/
ol.expression.Logical.prototype.getLeft = function() {
return this.left_;
};
/**
* Get the right expression.
* @return {ol.expression.Expression} The right expression.
*/
ol.expression.Logical.prototype.getRight = function() {
return this.right_;
};
/**
* @enum {string}
*/