org.eclipse.xtext.smap
Class SDEInstaller

java.lang.Object
  extended by org.eclipse.xtext.smap.SDEInstaller

public class SDEInstaller
extends java.lang.Object


Constructor Summary
SDEInstaller(byte[] original, byte[] sdeAttr)
           
 
Method Summary
protected  void addSDE()
           
protected  void copy(int count)
           
protected  boolean copyAttrs(int attrCount)
           
protected  int copyConstantPool(int constantPoolCount)
           
protected  void copyMembers()
           
 byte[] getUpdatedByteCode()
           
protected  void randomAccessWriteU2(int pos, int val)
           
protected  byte[] readBytes(int count)
           
protected  int readU1()
           
protected  int readU2()
           
protected  int readU4()
           
protected  void writeAttrForSDE(int index)
           
protected  void writeBytes(byte[] bytes)
           
protected  void writeU1(int val)
           
protected  void writeU2(int val)
           
protected  void writeU4(int val)
           
protected  void writeUtf8ForSDE()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDEInstaller

public SDEInstaller(byte[] original,
                    byte[] sdeAttr)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getUpdatedByteCode

public byte[] getUpdatedByteCode()

addSDE

protected void addSDE()
               throws java.io.UnsupportedEncodingException,
                      java.io.IOException
Throws:
java.io.UnsupportedEncodingException
java.io.IOException

copyMembers

protected void copyMembers()

copyAttrs

protected boolean copyAttrs(int attrCount)

writeAttrForSDE

protected void writeAttrForSDE(int index)

randomAccessWriteU2

protected void randomAccessWriteU2(int pos,
                                   int val)

readU1

protected int readU1()

readU2

protected int readU2()

readU4

protected int readU4()

writeU1

protected void writeU1(int val)

writeU2

protected void writeU2(int val)

writeU4

protected void writeU4(int val)

copy

protected void copy(int count)

readBytes

protected byte[] readBytes(int count)

writeBytes

protected void writeBytes(byte[] bytes)

copyConstantPool

protected int copyConstantPool(int constantPoolCount)
                        throws java.io.UnsupportedEncodingException,
                               java.io.IOException
Throws:
java.io.UnsupportedEncodingException
java.io.IOException

writeUtf8ForSDE

protected void writeUtf8ForSDE()