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


Constructor Summary
ElfSection(long ptr, Elf parent)
           
 
Method Summary
 ElfData createNewElfData()
           
 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()
           
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

update

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