Package flash.tools.debugger.expression

Examples of flash.tools.debugger.expression.ValueExp


            } else {
                // 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, m_activeIsolate).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) {
            // bad operation code
            err(getLocalizationManager().getLocalizedTextString("expressionCouldNotBeParsed") + " " + pe.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

                        printPath = true;
                }
            }

            // first parse it, then attempt to evaluate the expression
            ValueExp expr = parseExpression(var);
            result = evalExpression(expr, m_activeIsolate).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, m_activeIsolate).value;

      /* dump the output */
 
View Full Code Here

            if (hasMoreTokens()) {
                // 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 {
                a.clearCondition();   // clear it
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, m_activeIsolate).value);

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

            else {
                // 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, m_activeIsolate);
View Full Code Here

     * Determines if the given BreakAction requests a halt given the file
     * line and optionally a conditional to evaluate.'
     */
    boolean shouldBreak(BreakAction a, int fileId, int line, int isolateId) {
        boolean should = a.isEnabled();
        ValueExp exp = a.getCondition();
        if (should && exp != null && !getRequestHalt(isolateId))  // halt request fires true
        {
            // evaluate it then update our boolean
            try {
                EvaluationResult result = evalExpression(exp, false, isolateId);
View Full Code Here

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

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.