Package org.formulacompiler.compiler.internal.expressions.parser

Examples of org.formulacompiler.compiler.internal.expressions.parser.ExpressionParser


      final int definedNamesContext = getContext();
      while ((se = find( XMLConstants.Main.DEFINED_NAME, definedNamesContext )) != null) {
        final String name = se.getAttributeByName( XMLConstants.Main.NAME ).getValue();
        if (!name.startsWith( DEFINED_NAME_RESERVED_PREFIX )) {
          final String cellRangeAddress = getText();
          final ExpressionParser parser = new SpreadsheetExpressionParserA1OOXML( cellRangeAddress, _spreadsheet );
          try {
            final CellRange cellRange = (CellRange) parser.rangeOrCellRefA1();
            _spreadsheet.defineModelRangeName( name, cellRange );
          }
          catch (org.formulacompiler.compiler.internal.expressions.parser.ParseException e) {
            throw new SpreadsheetException.LoadError( "Error parsing named range " + name, e );
          }
View Full Code Here


    final Attribute nameAttribute = _startElement.getAttributeByName( XMLConstants.Table.NAME );
    final String name = nameAttribute.getValue();

    final Attribute rangeAttribute = _startElement.getAttributeByName( XMLConstants.Table.CELL_RANGE_ADDRESS );
    final String cellRangeAddress = rangeAttribute.getValue();
    final ExpressionParser parser = new SpreadsheetExpressionParserA1ODF( cellRangeAddress, this.spreadsheet );
    parser.token_source.SwitchTo( GeneratedExpressionParserConstants.IN_ODF_CELL_REF );
    try {
      final CellRange cellRange = (CellRange) parser.rangeOrCellRefODF();
      this.spreadsheet.defineModelRangeName( name, cellRange );
    }
    catch (org.formulacompiler.compiler.internal.expressions.parser.ParseException e) {
      throw new RuntimeException( e );
    }
View Full Code Here

TOP

Related Classes of org.formulacompiler.compiler.internal.expressions.parser.ExpressionParser

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.