lib.dwfl
Class ElfSection

java.lang.Object
  extended by lib.dwfl.ElfSection

public class ElfSection
extends Object

An ElfSection is a descriptor o an Elf file section


Field Summary
private  Elf parent
           
private  long pointer
           
 
Constructor Summary
ElfSection(long ptr, Elf parent)
           
 
Method Summary
 ElfData createNewElfData()
           
protected  int elf_flagscn(int __cmd, int __flags)
           
protected  int elf_flagshdr(int __cmd, int __flags)
           
protected  long elf_getdata()
           
protected  ElfSectionHeader elf_getshdr()
           
protected  long elf_ndxscn()
           
protected  long elf_newdata()
           
protected  long elf_rawdata()
           
protected  int elf_updateshdr(ElfSectionHeader header)
           
 ElfFlags flag(ElfCommand command, ElfFlags flags)
          Flags the section with the provided flags
 ElfFlags flagHeader(ElfCommand command, ElfFlags flags)
          Flags the section header with the provided flags
 ElfData getData()
           
 long getIndex()
           
protected  Elf getParent()
           
 long getPointer()
           
 ElfData getRawData()
           
 ElfSectionHeader getSectionHeader()
           
 int update(ElfSectionHeader header)
          Updates the class data back to the native elf data structures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointer

private long pointer

parent

private Elf parent
Constructor Detail

ElfSection

public ElfSection(long ptr,
                  Elf parent)
Method Detail

getPointer

public long getPointer()

getIndex

public long getIndex()
Returns:
The index of this section.

getSectionHeader

public ElfSectionHeader getSectionHeader()
Returns:
The header for this ElfSection

flag

public ElfFlags flag(ElfCommand command,
                     ElfFlags flags)
Flags the section with the provided flags

Parameters:
command - An ElfCommand
flags - The flag to use
Returns:
The new flag value

flagHeader

public ElfFlags flagHeader(ElfCommand command,
                           ElfFlags flags)
Flags the section header with the provided flags

Parameters:
command - An ElfCommand
flags - The flags to use
Returns:
The new flag value

getData

public ElfData getData()
Returns:
The ElfData contained in this section

getRawData

public ElfData getRawData()
Returns:
The uninterpreted ElfData in this section

createNewElfData

public ElfData createNewElfData()
Returns:
Creates a new ElfData for this section

getParent

protected Elf getParent()

update

public int update(ElfSectionHeader header)
Updates the class data back to the native elf data structures.


elf_updateshdr

protected int elf_updateshdr(ElfSectionHeader header)

elf_ndxscn

protected long elf_ndxscn()

elf_getshdr

protected ElfSectionHeader elf_getshdr()

elf_flagscn

protected int elf_flagscn(int __cmd,
                          int __flags)

elf_flagshdr

protected int elf_flagshdr(int __cmd,
                           int __flags)

elf_getdata

protected long elf_getdata()

elf_rawdata

protected long elf_rawdata()

elf_newdata

protected long elf_newdata()