getRPN method

List<Token> getRPN()

Cached access to the RPN notation of this expression, ensures only one calculation of the RPN per expression instance. If no cached instance exists, a new one will be created and put to the cache.

Returns the cached RPN instance.

Implementation

List<Token> getRPN() {
  if (_rpn == null) {
    _rpn = _shuntingYard(this._expressionString);
    _validate(_rpn!);
  }
  return _rpn!;
}