Package org.jfree.formula.lvalues

Examples of org.jfree.formula.lvalues.ContextLookup


    protected boolean isReferenceChanged(final LValue lValue)
    {
        if (lValue instanceof ContextLookup)
        {
            final ContextLookup rval = (ContextLookup) lValue;
            final String s = rval.getName();
            final DataRow view = getFlowController().getMasterRow().getGlobalView();
            try
            {
                final DataFlags flags = view.getFlags(s);
                if (flags != null && flags.isChanged())
View Full Code Here


                                    final LValue val = (LValue) parser.parse(reportExp.getFormulaExpression());
                                    if (val instanceof FormulaFunction)
                                    {
                                        final FormulaFunction reportFunction = (FormulaFunction) val;
                                   
                                        final ContextLookup context = (ContextLookup) reportFunction.getChildValues()[0];
                                        name = context.getName();
                                    }
                                    else if (val instanceof Term)
                                    {
                                        final Term term = (Term) val;
                                        final ContextLookup context = (ContextLookup) term.getHeadValue().getChildValues()[0];
                                        name = context.getName();
                                    }
                                    break;
                                }
                            }
                        }
View Full Code Here

      ;
    }
    switch (jj_nt.kind) {
    case COLUMN_LOOKUP:
      value = jj_consume_token(COLUMN_LOOKUP);
                                retval = new ContextLookup (ParserTools.stripQuote(value.image));
      break;
    case STRING_LITERAL:
      value = jj_consume_token(STRING_LITERAL);
                                 retval = new StaticValue (ParserTools.stripQuote(value.image), TextType.TYPE);
      break;
View Full Code Here

            public LValue getRaw(int row, int column)
            {
              if (column == 0)
              {
                return new ContextLookup("." + firstColumnName + (firstRow + row));
              }
              return null;
            }

            public Object getValue(int row, int column) throws EvaluationException
View Full Code Here

      jj_la1[2] = jj_gen;
    }
    switch (jj_nt.kind) {
    case COLUMN_LOOKUP:
      value = jj_consume_token(COLUMN_LOOKUP);
                                retval = new ContextLookup (ParserTools.stripQuote(value.image));
      break;
    case STRING_LITERAL:
      value = jj_consume_token(STRING_LITERAL);
                                 retval = new StaticValue (ParserTools.stripQuote(value.image), TextType.TYPE);
      break;
View Full Code Here

  protected boolean isReferenceChanged (final LValue lValue)
  {
    if (lValue instanceof ContextLookup)
    {
      final ContextLookup rval = (ContextLookup) lValue;
      final String s = rval.getName();
      final DataRow view = getFlowController().getMasterRow().getGlobalView();
      try
      {
        final DataFlags flags = view.getFlags(s);
        if (flags != null)
View Full Code Here

TOP

Related Classes of org.jfree.formula.lvalues.ContextLookup

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.