Package org.formulacompiler.compiler.internal.expressions

Examples of org.formulacompiler.compiler.internal.expressions.ExpressionNodeForLetVar


  {
    if (null == _node) {
      // ignore
    }
    else if (_node instanceof ExpressionNodeForLetVar) {
      final ExpressionNodeForLetVar letVar = (ExpressionNodeForLetVar) _node;
      final LetEntry found = letDict().find( letVar.varName() );
      if (null != found && INNER_DEF != found.value) {
        // Don't treat repeated occurrences separately.
        _closure.put( found.name, found );
      }
    }
View Full Code Here


    if (_arrayRefNode instanceof ExpressionNodeForArrayReference) {
      final Collection<ExpressionNode> args = _arrayRefNode.arguments();
      return args.toArray( new ExpressionNode[ args.size() ] );
    }
    else if (_arrayRefNode instanceof ExpressionNodeForLetVar) {
      final ExpressionNodeForLetVar var = (ExpressionNodeForLetVar) _arrayRefNode;
      final Object res = letDict().lookup( var.varName() );
      final ExpressionNode val = (ExpressionNode) res;
      return arrayRefElements( _outerNode, val );
    }
    else {
      throw new CompilerException.UnsupportedExpression( "Array reference expected in "
View Full Code Here

TOP

Related Classes of org.formulacompiler.compiler.internal.expressions.ExpressionNodeForLetVar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.