Examples of Throw


Examples of com.google.test.metric.method.op.stack.Throw

    decomposer.label(finallyHandler);
    /*15*/ decomposer.addOp(new Store(15, any));
    /*16*/ decomposer.addOp(new Load(16, new Constant(4, JavaType.INT)));
    /*17*/ decomposer.addOp(new Store(17, b));
    /*18*/ decomposer.addOp(new Load(18, any));
    /*19*/ decomposer.addOp(new Throw(19));
    decomposer.label(l20);
    /*20*/ decomposer.addOp(new Load(20, new Constant(4, JavaType.INT)));
    /*21*/ decomposer.addOp(new Store(21, b));
    decomposer.label(l22);
    /*22*/ decomposer.addOp(new Load(22, new Constant(4, JavaType.INT)));
View Full Code Here

Examples of com.google.test.metric.method.op.stack.Throw

        _return(JavaType.DOUBLE);
        break;
      case Opcodes.ATHROW :
        recorder.add(new Runnable() {
          public void run() {
            block.addOp(new Throw(lineNumber));
          }
        });
        break;
      case Opcodes.RETURN :
        _return(JavaType.VOID);
View Full Code Here

Examples of lombok.ast.Throw

  public Node createReturn(Node value) {
    return posify(new Return().rawValue(value));
  }
 
  public Node createThrow(Node throwable) {
    return posify(new Throw().rawThrowable(throwable));
  }
View Full Code Here

Examples of org.allspice.bytecode.instructions.Throw

      l.add(new ExceptionHandler(start_pc,end_pc,handler,TypeName.THROWABLE)) ;
      l.add(new Nop(handler)) ;
      l.add(new Store(ex)) ;
      l.add(new JumpSub(finallyMark)) ;
      l.add(new Load(ex)) ;
      l.add(new Throw()) ;
    }
    l.add(new Nop(finallyMark)) ;
    l.add(new Store(vret)) ;
    for(Statement s: finallyStatements) {
      newContext.compile(s,l) ;
View Full Code Here

Examples of org.candle.decompiler.intermediate.expression.Throw

  }

 
  public void visitATHROW(ATHROW instruction) {
    Expression expression = context.getExpressions().pop();
    Throw throwException = new Throw(context.getCurrentInstruction(), expression);
   
    StatementIntermediate complete = new StatementIntermediate(context.getCurrentInstruction(), throwException);
    context.pushIntermediateToInstruction(complete);
  }
View Full Code Here

Examples of org.eclipse.bpel.model.Throw

        if (result == null) result = caseWSDLElement(exit);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.THROW: {
        Throw throw_ = (Throw)theEObject;
        Object result = caseThrow(throw_);
        if (result == null) result = caseActivity(throw_);
        if (result == null) result = caseExtensibleElement(throw_);
        if (result == null) result = caseExtensibleElement_1(throw_);
        if (result == null) result = caseWSDLElement(throw_);
View Full Code Here

Examples of org.rascalmpl.interpreter.control_exceptions.Throw

        throw RuntimeExceptionFactory.parseError(values.sourceLocation(e.getLocation(), e.getOffset(), e.getLength(), e.getBeginLine(), e.getEndLine(), e.getBeginColumn(), e.getEndColumn()), null, null);
      throw e;
    }
    catch (StaticError e) {
      if (forRascal) {
        throw new Throw(values.constructor(Exception_StaticError, values.string(e.getMessage()), e.getLocation()), (ISourceLocation) null, ctx.getStackTrace());
      }
      throw e;
    }
    catch (URISyntaxException e) {
      // this should never happen
View Full Code Here

Examples of org.rascalmpl.interpreter.control_exceptions.Throw

    }
    catch (ParseError pe) {
      content.append(parseErrorMessage(command.getValue(), "stdin", pe));
      content.append('\n');
      ISourceLocation sourceLocation = values.sourceLocation(values.sourceLocation(pe.getLocation()), pe.getOffset(), pe.getLength(), pe.getBeginLine(), pe.getEndLine(), pe.getBeginColumn(), pe.getEndColumn());
      throw new Throw(values.constructor(ShellParseError, values.string(content.toString()), sourceLocation), ctx.getCurrentAST(), ctx.getStackTrace());
    }
    catch (QuitException q){
      //
    }
    catch(InterruptException i) {
      content.append(interruptedExceptionMessage(i));
      content.append('\n');
    }
    catch (Ambiguous e) {
      content.append(ambiguousMessage(e));
      content.append('\n');
      throw new Throw(values.constructor(ShellError, values.string(content.toString())), ctx.getCurrentAST(), ctx.getStackTrace());
    }
    catch(StaticError e){
      content.append(staticErrorMessage(e));
      content.append('\n');
      throw new Throw(values.constructor(ShellError, values.string(content.toString())), ctx.getCurrentAST(), ctx.getStackTrace());
    }
    catch(Throw e){
      content.append(throwMessage(e));
      content.append('\n');
      throw new Throw(values.constructor(ShellError, values.string(content.toString())), ctx.getCurrentAST(), ctx.getStackTrace());
    }
    catch(Throwable e){
      content.append(throwableMessage(e, eval != null ? ctx.getStackTrace() : null));
      content.append('\n');
      throw new Throw(values.constructor(ShellError, values.string(content.toString())), ctx.getCurrentAST(), ctx.getStackTrace());
    }
   
    return values.string(content.toString());
  }
View Full Code Here

Examples of org.rascalmpl.interpreter.control_exceptions.Throw

    return vf.datetime(cal.getTimeInMillis());
  }

  @Override
  public IValue visitExternal(Type externalType) {
    throw new Throw(vf.string("Can't handle ExternalType."),
        (ISourceLocation) null, null);
  }
View Full Code Here

Examples of org.rascalmpl.interpreter.control_exceptions.Throw

    return this.generate(rt.getType(maxDepth));
  }

  @Override
  public IValue visitVoid(Type type) {
    throw new Throw(vf.string("void has no values."),
        (ISourceLocation) null, null);
  }
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.