Examples of ValueExp


Examples of com.sun.msv.grammar.ValueExp

            try {
                // TODO: handle ValueExp nicely
                texp.getType().checkValid( srt.literal, srt.context );
               
                if(texp instanceof ValueExp) {
                    ValueExp vexp = (ValueExp)texp;
                   
                    if(!vexp.dt.sameValue(vexp.value,
                            vexp.dt.createValue(srt.literal,srt.context))) {
                        // incorrect value
                        return docDecl.localizeMessage(
View Full Code Here

Examples of com.sun.msv.grammar.ValueExp

        def.mDatatypes.add(new PuzzlePiece(data_exp));
      }

      MSVExpressionIterator valueFinder = new MSVExpressionIterator(def.getExpression(), ValueExp.class, MSVExpressionIterator.DIRECT_CHILDREN_ONLY);
      while (valueFinder.hasNext()) {
        ValueExp value_exp = (ValueExp) valueFinder.next();
        if (value_exp.getName().localName.equals("token")) {
          def.mValues.add(new PuzzlePiece(value_exp));
        }
      }

    }
View Full Code Here

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

Examples of flash.tools.debugger.expression.ValueExp

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

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

Examples of flash.tools.debugger.expression.ValueExp

            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

Examples of flash.tools.debugger.expression.ValueExp

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

Examples of flash.tools.debugger.expression.ValueExp

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

Examples of flash.tools.debugger.expression.ValueExp

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

Examples of flash.tools.debugger.expression.ValueExp

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