Package flash.tools.debugger.expression

Examples of flash.tools.debugger.expression.ValueExp


  {
    /* wait a bit if we are not halted */
//    waitTilHalted();
    try
    {
      ValueExp exp = null;

      if (!hasMoreTokens())
        err(getLocalizationManager().getLocalizedTextString("setCommand")); //$NON-NLS-1$
      else
      {
        // pull the expression
        String s = restOfLine();

        // parse and eval which causes the assignment to occur...
        if ( (exp = parseExpression(s)) == null )
          // failed parse

        // make sure contains assignment

        else if ( !exp.containsAssignment() )
          throw new IllegalAccessException("="); //$NON-NLS-1$

        else
          evalExpression(exp);
      }
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;
        isLookupMembers = expr.isLookupMembers();
      }

      /* it worked, add it to the list */
      int which = m_exprCache.add(result);

View Full Code Here

  }

  /* 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

    void doSet() throws NotConnectedException {
    /* wait a bit if we are not halted */
//    waitTilHalted();
        try {
            ValueExp exp = null;

            if (!hasMoreTokens())
                err(getLocalizationManager().getLocalizedTextString("setCommand")); //$NON-NLS-1$
            else {
                // pull the expression
                String s = restOfLine();

                // parse and eval which causes the assignment to occur...
                if ((exp = parseExpression(s)) == null)
                    // failed parse

                    // make sure contains assignment

                else if (!exp.containsAssignment())
                    throw new IllegalAccessException("="); //$NON-NLS-1$

                else
                    evalExpression(exp, m_activeIsolate);
            }
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.