Examples of disassemble()


Examples of avrora.core.Disassembler.disassemble()

        byte[] buf = new byte[fis.available()];
        int len = fis.read(buf);

        Disassembler da = new Disassembler();
        for ( int index = 0; index < len; ) {
            Instr i = da.disassemble(0, buf, index);
            Terminal.println(StringUtil.addrToString(index)+": "+hb(buf, index)+" "+hb(buf, index+1)+"        "+i.toString());
            index += i.getSize();
        }
    }
View Full Code Here

Examples of com.alexkasko.krakatau.KrakatauLibrary.disassemble()

     */
    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        KrakatauLibrary lib = new KrakatauLibrary();
        if(!outputDir.exists()) outputDir.mkdirs();
        lib.disassemble(Arrays.asList(classFileOrDirs), outputDir);
    }
}
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.util.Disassembler.disassemble()

      buffer.setContents(classFileBuffer.getCharacters());
    } else {
      // Disassemble
      IClassFileReader reader = ToolFactory.createDefaultClassFileReader(this.classFile, IClassFileReader.ALL);
      Disassembler disassembler = new Disassembler();
      String contents = disassembler.disassemble(reader, Util.getLineSeparator("", getJavaProject()), ClassFileBytesDisassembler.WORKING_COPY); //$NON-NLS-1$
      buffer.setContents(contents);
    }
  }

  // add buffer to buffer cache
View Full Code Here

Examples of org.eclipse.jdt.internal.core.util.Disassembler.disassemble()

      buffer.setContents(classFileBuffer.getCharacters());
    } else {
      // Disassemble
      IClassFileReader reader = ToolFactory.createDefaultClassFileReader(this.classFile, IClassFileReader.ALL);
      Disassembler disassembler = new Disassembler();
      String contents = disassembler.disassemble(reader, Util.getLineSeparator("", getJavaProject()), ClassFileBytesDisassembler.WORKING_COPY); //$NON-NLS-1$
      buffer.setContents(contents);
    }
  }

  // add buffer to buffer cache
View Full Code Here

Examples of org.eclipse.jdt.internal.core.util.Disassembler.disassemble()

    buffer.setContents(classFileBuffer.getCharacters());
  } else {
    // Disassemble
    IClassFileReader reader = ToolFactory.createDefaultClassFileReader(this.classFile, IClassFileReader.ALL);
    Disassembler disassembler = new Disassembler();
    String contents = disassembler.disassemble(reader, Util.getLineSeparator("", getJavaProject()), ClassFileBytesDisassembler.WORKING_COPY); //$NON-NLS-1$
    buffer.setContents(contents);
  }

  // add buffer to buffer cache
  BufferManager bufManager = getBufferManager();
View Full Code Here

Examples of org.hibernate.type.Type.disassemble()

    int length = elements.size();
    Serializable[] result = new Serializable[length];
    for ( int i=0; i<length; i++ ) {
      Element elem = (Element) elements.get(i);
      Object object = elementType.fromXMLNode( elem, persister.getFactory() );
      result[i] = elementType.disassemble( object, getSession(), null );
    }
    return result;
  }

  public Object getValue() {
View Full Code Here

Examples of org.hibernate.type.Type.disassemble()

    final int length = elements.size();
    final Serializable[] result = new Serializable[length];
    for ( int i=0; i<length; i++ ) {
      final Element elem = (Element) elements.get( i );
      final Object object = collectionElementType.fromXMLNode( elem, persister.getFactory() );
      result[i] = collectionElementType.disassemble( object, getSession(), null );
    }
    return result;
  }

  @Override
View Full Code Here

Examples of org.hibernate.type.Type.disassemble()

    while ( i < length*2 ) {
      final Element elem = (Element) elements.get( i/2 );
      final Object object = elementType.fromXMLNode( elem, persister.getFactory() );
      final String indexString = getIndex( elem, indexNodeName, i );
      final Object index = ( (XmlRepresentableType) indexType ).fromXMLString( indexString, persister.getFactory() );
      result[i++] = indexType.disassemble( index, getSession(), null );
      result[i++] = elementType.disassemble( object, getSession(), null );
    }
    return result;
  }
}
View Full Code Here

Examples of org.hibernate.type.Type.disassemble()

    final Serializable[] result = new Serializable[length];
    for ( int i=0; i<length; i++ ) {
      final Element elem = (Element) elements.get( i );
      final Object object = elementType.fromXMLNode( elem, persister.getFactory() );
      final Integer index = IntegerType.INSTANCE.fromString( getIndex( elem, indexNodeName, i ) );
      result[index] = elementType.disassemble( object, getSession(), null );
    }
    return result;
  }

View Full Code Here

Examples of org.hibernate.type.Type.disassemble()

    int length = elements.size();
    Serializable[] result = new Serializable[length];
    for ( int i=0; i<length; i++ ) {
      Element elem = (Element) elements.get(i);
      Object object = elementType.fromXMLNode( elem, persister.getFactory() );
      result[i] = elementType.disassemble( object, getSession(), null );
    }
    return result;
  }

  public Object getValue() {
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.