Examples of LValue


Examples of org.allspice.bytecode.LValue

        varDecl,
        new VarDecl("Throwable","$$ex$$"),
        new VarDecl("returnAddress","$$ra$$"))
        );
    EvaluationContext newContext = context.addFinallyDest(finallyMark).setVars(vars) ;
    LValue v = newContext.getVar("$$mon$$") ;
    Var ex = (Var)newContext.getVar("$$ex$$") ;
    Var vret = (Var)newContext.getVar("$$ra$$") ;
    makeInit(newContext,varDecl.init,v.getType(),l) ;
    l.add(new Dup(TypeCode.VOID,TypeCode.OBJECT)) ;
    l.add(new Store(v)) ;
    l.add(new MonitorEnter()) ;
    Mark the_end = new Mark() ;
    Mark start_pc = new Mark() ;
View Full Code Here

Examples of org.jfree.formula.lvalues.LValue

    try
    {
      final FormattedTextElement element = (FormattedTextElement) getNode();
      final FormulaExpression formulaExpression = element.getValueExpression();
      final Formula formula = formulaExpression.getCompiledFormula();
      final LValue lValue = formula.getRootReference();
      return isReferenceChanged(lValue);
    }
    catch (final ParseException e)
    {
      Log.debug("Parse Exception", e);
View Full Code Here

Examples of org.jfree.formula.lvalues.LValue

    }

    try
    {
      final Formula formula = formulaExpression.getCompiledFormula();
      final LValue lValue = formula.getRootReference();
      return isReferenceChanged(lValue);
    }
    catch (ParseException e)
    {
      return false;
View Full Code Here

Examples of org.jfree.formula.lvalues.LValue

    }

    try
    {
      final Formula formula = formulaExpression.getCompiledFormula();
      final LValue lValue = formula.getRootReference();
      return isReferenceChanged(lValue);
    }
    catch (ParseException e)
    {
      return false;
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.lvalues.LValue

    {
        int nStartPos = -1;
        try
        {
            final FormulaParser parser = new FormulaParser();
            final LValue x = parser.parse(formula);
            String part = x.toString();
            while ( part.length() < position )
            {
                final LValue[] children = x.getChildValues();
                if ( children != null )
                {
                    for(int i = 0; i < children.length;++i)
                    {
                        part = children[i].toString();
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.lvalues.LValue

                            {
                                final FormulaExpression reportExp = (FormulaExpression) reportFunctions[j];

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

Examples of org.pentaho.reporting.libraries.formula.lvalues.LValue

        formula = FormulaUtil.extractFormula(formulaWithPrefix);
      }
      try
      {
        final FormulaParser parser = new FormulaParser();
        final LValue value = parser.parse(formula);
        if (value instanceof FormulaFunction)
        {
          final FormulaFunction function = (FormulaFunction) value;
          if ("DRILLDOWN".equals(function.getFunctionName())) // NON-NLS
          {
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.lvalues.LValue

    if (lValues.length == 0)
    {
      return;
    }

    final LValue configValue = lValues[0];
    final String configText = extractStringValue(configValue);
    final String pathText;
    if (lValues.length > 1)
    {
      final LValue pathValue = lValues[1];
      pathText = extractStringValue(pathValue);
    }
    else
    {
      pathText = null;
    }

    final DrillDownParameter[] parameters;
    if (lValues.length == 3)
    {
      final LValue dataValue = lValues[2];
      if (dataValue instanceof DataTable)
      {
        final ArrayList<DrillDownParameter> values = new ArrayList<DrillDownParameter>();
        final DataTable paramsStaticValue = (DataTable) dataValue;
        final int colCount = paramsStaticValue.getColumnCount();
        final int rowCount = paramsStaticValue.getRowCount();
        for (int row = 0; row < rowCount; row++)
        {
          if (colCount == 0)
          {
            continue;
          }
          final LValue parameterNameValue = paramsStaticValue.getValueAt(row, 0);
          final String parameterName = extractStringValue(parameterNameValue);
          final String parameterText;
          if (colCount > 1)
          {
            final LValue parameterTextValue = paramsStaticValue.getValueAt(row, 1);
            if (parameterTextValue != null)
            {
              parameterText = parameterTextValue.toString();
            }
            else
            {
              parameterText = null;
            }
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.lvalues.LValue

    // connects the parsed formula to the context. The context provides the
    // operator and function implementations and resolves the references.
    f.initialize(new DefaultFormulaContext());

    final LValue rootReference = f.getRootReference();
    print(rootReference, 0);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.lvalues.LValue

  {
    System.out.println (level + " " + lValue.getClass() + " " + lValue.getParsePosition());
    final LValue[] lValues = lValue.getChildValues();
    for (int i = 0; i < lValues.length; i++)
    {
      LValue value = lValues[i];
      print (value, level +1);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.