public class ElfBinaryObject extends BinaryObjectAdapter
BinaryObjectAdapter.BinaryObjectInfoNO_SYMBOLSARCHIVE, CORE, EXECUTABLE, OBJECT, SHARED| Constructor and Description |
|---|
ElfBinaryObject(IBinaryParser parser,
org.eclipse.core.runtime.IPath p,
AR.ARHeader h) |
ElfBinaryObject(IBinaryParser parser,
org.eclipse.core.runtime.IPath p,
int type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSymbols(Elf.Symbol[] array,
int type,
List<Symbol> list) |
<T> T |
getAdapter(Class<T> adapter) |
IAddressFactory |
getAddressFactory() |
protected BinaryObjectAdapter.BinaryObjectInfo |
getBinaryObjectInfo() |
InputStream |
getContents() |
String |
getCPU()
CPU name
|
protected ElfHelper |
getElfHelper() |
String |
getName()
The name of the object
|
IBinaryParser.ISymbol[] |
getSymbols()
Symbols of the object
|
boolean |
isLittleEndian()
The endian
|
protected void |
loadAll() |
protected void |
loadInfo() |
protected void |
loadInfo(ElfHelper helper) |
protected void |
loadSymbols(ElfHelper helper) |
getBSS, getData, getNeededSharedLibs, getSoName, getSymbol, getText, hasDebug, toStringgetBinaryParser, getPath, getType, hasChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBinaryParser, getPath, getTypepublic ElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath p, AR.ARHeader h)
public ElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath p, int type)
public String getName()
IBinaryParser.IBinaryObjectgetName in interface IBinaryParser.IBinaryObjectgetName in class BinaryObjectAdapterIBinaryParser.IBinaryObject.getName()public InputStream getContents() throws IOException
getContents in interface IBinaryParser.IBinaryFilegetContents in class BinaryFileIOExceptionIBinaryParser.IBinaryFile.getContents()public IBinaryParser.ISymbol[] getSymbols()
IBinaryParser.IBinaryObjectgetSymbols in interface IBinaryParser.IBinaryObjectgetSymbols in class BinaryObjectAdapterIBinaryParser.IBinaryObject.getSymbols()protected BinaryObjectAdapter.BinaryObjectInfo getBinaryObjectInfo()
getBinaryObjectInfo in class BinaryObjectAdapterprotected ElfHelper getElfHelper() throws IOException
IOExceptionprotected void loadAll()
throws IOException
IOExceptionprotected void loadInfo()
throws IOException
IOExceptionprotected void loadInfo(ElfHelper helper) throws IOException
IOExceptionprotected void loadSymbols(ElfHelper helper) throws IOException
IOExceptionprotected void addSymbols(Elf.Symbol[] array, int type, List<Symbol> list)
public <T> T getAdapter(Class<T> adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.core.runtime.PlatformObjectpublic IAddressFactory getAddressFactory()
getAddressFactory in interface IBinaryParser.IBinaryObjectgetAddressFactory in class BinaryObjectAdapterpublic boolean isLittleEndian()
IBinaryParser.IBinaryObjectisLittleEndian in interface IBinaryParser.IBinaryObjectisLittleEndian in class BinaryObjectAdapterIBinaryParser.IBinaryObject.isLittleEndian()public String getCPU()
IBinaryParser.IBinaryObjectgetCPU in interface IBinaryParser.IBinaryObjectgetCPU in class BinaryObjectAdapterIBinaryParser.IBinaryObject.getCPU()Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.