Package flash.tools.debugger.expression

Examples of flash.tools.debugger.expression.ValueExp


  }

  /* parse the given string and produce an error message as appropriate */
  ValueExp parseExpression(String s)
  {
    ValueExp expr = null;
    try
    {
      expr = m_exprCache.parse(s);
    }
    catch(ParseException pe)
View Full Code Here


            printPath = true;
        }
      }

      // first parse it, then attempt to evaluate the expression
      ValueExp expr = parseExpression(var);
      result = evalExpression(expr).value;

      StringBuilder sb = new StringBuilder();

      if (result instanceof Variable)
View Full Code Here

      /* pull the rest of the line */
      String s = restOfLine();

      // first parse it, then attempt to evaluate the expression
      ValueExp expr = parseExpression(s);

      // make sure no assignment
      if ( expr.containsAssignment() )
        throw new IllegalAccessException();

      result = evalExpression(expr).value;

      /* dump the output */
 
View Full Code Here

      {
        // now just pull the commands as they come while not end
        String line = restOfLine();

        // build an expression and attach it to the breakpoint
        ValueExp exp = parseExpression(line);

        // warn about the assignment!
        if ( exp.containsAssignment() && !yesNoQuery(getLocalizationManager().getLocalizedTextString("askExpressionContainsAssignment")) ) //$NON-NLS-1$
          throw new IllegalAccessException("="); //$NON-NLS-1$

        a.setCondition(exp, line);
      }
      else
View Full Code Here

      // We need to separate the front part the 'a.b' in 'a.b.c'
      // of the expression to resolve it into a variable
      // We usually get back a VariableFacade which contains
      // the context id (i.e the variable id) and the member name.
      ValueExp expr = parseExpression(s);
      VariableFacade result = (VariableFacade)(evalExpression(expr).value);

      // extract the 2 pieces and get the raw variable.
      int varId = result.getContext(); // TODO fix this???  -mike
      String memberName = result.getName();
View Full Code Here

      {
        // followed by an expression (i.e. a line we just pull in)
        String s = restOfLine();

        // first parse it, then attempt to evaluate the expression
        ValueExp expr = parseExpression(s);

        // make sure no assignment
        if ( expr.containsAssignment() )
          throw new IllegalAccessException();

        // it worked so create a new DisplayAction and then add it in

        DisplayAction b = new DisplayAction(expr, s);
View Full Code Here

   * line and optionally a conditional to evaluate.'
   */
  boolean shouldBreak(BreakAction a, int fileId, int line)
  {
    boolean should = a.isEnabled();
    ValueExp exp = a.getCondition();
    if (should && exp != null && !m_requestHalt// halt request fires true
    {
      // evaluate it then update our boolean
      try
      {
View Full Code Here

TOP

Related Classes of flash.tools.debugger.expression.ValueExp

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.