Package rocket.beans.rebind.aop.rethrowdeclaredexception

Examples of rocket.beans.rebind.aop.rethrowdeclaredexception.RethrowDeclaredExceptionTemplatedFile


      }
      catchAndRethrow.add(expected);
    }

    // return the code block.
    final RethrowDeclaredExceptionTemplatedFile rethrow = new RethrowDeclaredExceptionTemplatedFile();

    return new CollectionTemplatedCodeBlock<Type>() {

      @Override
      public InputStream getInputStream() {
        return rethrow.getInputStream();
      }

      @Override
      protected Object getValue0(final String name) {
        return rethrow.getValue0(name);
      }

      @Override
      protected Collection<Type> getCollection() {
        return catchAndRethrow;
      }

      @Override
      protected void prepareToWrite(final Type type ) {
        rethrow.setException( type );
      }

      @Override
      protected void writeBetweenElements(final SourceWriter writer) {
        writer.println();
View Full Code Here

TOP

Related Classes of rocket.beans.rebind.aop.rethrowdeclaredexception.RethrowDeclaredExceptionTemplatedFile

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.