Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Linker.ELF
Class Section.StrTabSection  view Section.StrTabSection download Section.StrTabSection.java

java.lang.Object
  extended byLinker.ELF.Section
      extended byLinker.ELF.Section.StrTabSection
All Implemented Interfaces:
ELFConstants
Enclosing class:
Section

public static class Section.StrTabSection
extends Section


Nested Class Summary
 
Nested classes inherited from class Linker.ELF.Section
Section.AbsSection, Section.DynamicSection, Section.DynSymSection, Section.FakeSection, Section.HashSection, Section.NoBitsSection, Section.NoteSection, Section.NullSection, Section.ProgBitsSection, Section.ProgBitsSectionImpl, Section.RelASection, Section.RelSection, Section.StrTabSection, Section.SymTabSection, Section.UnloadedSection
 
Field Summary
protected  java.util.Map string_map
           
protected  byte[] table
           
 
Fields inherited from class Linker.ELF.Section
addr, DEFAULT_ENCODING, flags, index, name
 
Fields inherited from interface Linker.ELF.ELFConstants
ELFCLASS32, ELFCLASS64, ELFCLASSNONE, ELFDATA2LSB, ELFDATA2MSB, ELFDATANONE, ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3, EM_386, EM_68K, EM_860, EM_88K, EM_M32, EM_MIPS, EM_MIPS_RS4_BE, EM_SPARC, ET_CORE, ET_DYN, ET_EXEC, ET_HIPROC, ET_LOPROC, ET_NONE, ET_REL, EV_CURRENT, EV_NONE, PT_DYNAMIC, PT_HIPROC, PT_INTERP, PT_LOAD, PT_LOPROC, PT_NOTE, PT_NULL, PT_PHDR, PT_SHLIB, R_386_32, R_386_NONE, R_386_PC32, SHF_ALLOC, SHF_EXECINSTR, SHF_MASKPROC, SHF_WRITE, SHN_ABS, SHN_COMMON, SHN_HIPROC, SHN_HIRESERVE, SHN_INVALID, SHN_LOPROC, SHN_LORESERVE, SHN_UNDEF, SHT_DYNAMIC, SHT_DYNSYM, SHT_HASH, SHT_HIPROC, SHT_HIUSER, SHT_LOPROC, SHT_LOUSER, SHT_NOBITS, SHT_NOTE, SHT_NULL, SHT_PROGBITS, SHT_REL, SHT_RELA, SHT_SHLIB, SHT_STRTAB, SHT_SYMTAB, STB_GLOBAL, STB_HIPROC, STB_LOCAL, STB_LOPROC, STB_WEAK, STT_FILE, STT_FUNC, STT_HIPROC, STT_LOPROC, STT_NOTYPE, STT_OBJECT, STT_SECTION
 
Constructor Summary
protected Section.StrTabSection(int flags, int addr)
           
  Section.StrTabSection(java.lang.String name, int flags, int addr)
           
 
Method Summary
 void addString(java.lang.String s)
           
static Section.StrTabSection empty(int flags, int addr)
           
 int getAddrAlign()
           
 int getEntSize()
           
 int getInfo()
           
 int getLink()
           
 int getNumberOfEntries()
           
 int getSize()
           
 java.lang.String getString(int i)
           
 int getStringIndex(java.lang.String s)
           
 int getType()
           
 void load(Section.UnloadedSection s, ELF file)
           
 void pack()
           
 void super_pack()
           
 void writeData(ELF file)
           
 
Methods inherited from class Linker.ELF.Section
clearAlloc, clearExecInstr, clearWrite, getAddr, getFlags, getHeaderSize, getIndex, getName, setAddr, setAlloc, setExecInstr, setIndex, setName, setWrite, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

string_map

protected java.util.Map string_map

table

protected byte[] table
Constructor Detail

Section.StrTabSection

public Section.StrTabSection(java.lang.String name,
                             int flags,
                             int addr)

Section.StrTabSection

protected Section.StrTabSection(int flags,
                                int addr)
Method Detail

getType

public final int getType()
Specified by:
getType in class Section

getLink

public final int getLink()
Specified by:
getLink in class Section

getInfo

public final int getInfo()
Specified by:
getInfo in class Section

getEntSize

public final int getEntSize()
Specified by:
getEntSize in class Section

getNumberOfEntries

public final int getNumberOfEntries()

addString

public void addString(java.lang.String s)

super_pack

public void super_pack()

pack

public void pack()

getStringIndex

public int getStringIndex(java.lang.String s)

getString

public java.lang.String getString(int i)

getSize

public int getSize()
Specified by:
getSize in class Section

getAddrAlign

public int getAddrAlign()
Specified by:
getAddrAlign in class Section

writeData

public void writeData(ELF file)
               throws java.io.IOException
Specified by:
writeData in class Section

empty

public static Section.StrTabSection empty(int flags,
                                          int addr)

load

public void load(Section.UnloadedSection s,
                 ELF file)
          throws java.io.IOException
Specified by:
load in class Section