Example #1
0
  private void extend(HClass hc) {
    HField[] hFields = hc.getDeclaredFields();
    for (int i = 0; i < hFields.length; i++) {
      if (hFields[i].isStatic())
        m_currentStaticFieldOffset = m_memberMap.map(hFields[i], m_currentStaticFieldOffset);
      else m_currentFieldOffset = m_memberMap.map(hFields[i], m_currentFieldOffset);
    }

    HMethod[] hMethods = hc.getDeclaredMethods();
    for (int i = 0; i < hMethods.length; i++) {
      m_currentMethodOffset = m_memberMap.map(hMethods[i], m_currentMethodOffset);
    }
  }
Example #2
0
 public String toString() {
   return m_memberMap.toString();
 }
Example #3
0
 int getOffset(HMember hm) {
   return m_memberMap.get(hm);
 }