Class PEBinaryObject64
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.cdt.utils.BinaryFile
-
- org.eclipse.cdt.utils.BinaryObjectAdapter
-
- org.eclipse.cdt.utils.coff.parser.PEBinaryObject64
-
- All Implemented Interfaces:
IBinaryParser.IBinaryFile,IBinaryParser.IBinaryObject,org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
CygwinPEBinaryObject64,PEBinaryExecutable64,PEBinaryShared64
public class PEBinaryObject64 extends BinaryObjectAdapter
- Since:
- 6.9
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
BinaryObjectAdapter.BinaryObjectInfo
-
-
Field Summary
-
Fields inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
NO_SYMBOLS
-
Fields inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
ARCHIVE, CORE, EXECUTABLE, OBJECT, SHARED
-
-
Constructor Summary
Constructors Constructor Description PEBinaryObject64(IBinaryParser parser, org.eclipse.core.runtime.IPath p, int type)PEBinaryObject64(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.ARHeader header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSymbols(Coff64.Symbol[] peSyms, byte[] table, List<Symbol> list)<T> TgetAdapter(Class<T> adapter)IAddressFactorygetAddressFactory()protected BinaryObjectAdapter.BinaryObjectInfogetBinaryObjectInfo()InputStreamgetContents()StringgetName()The name of the objectprotected PE64getPE()IBinaryParser.ISymbol[]getSymbols()Symbols of the objectprotected voidloadAll()protected voidloadInfo()protected voidloadInfo(PE64 pe)protected voidloadSymbols(PE64 pe)protected voidloadSymbols(PE64 pe, List<Symbol> list)-
Methods inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
getBSS, getCPU, getData, getNeededSharedLibs, getSoName, getSymbol, getText, hasDebug, isLittleEndian, toString
-
Methods inherited from class org.eclipse.cdt.utils.BinaryFile
getBinaryParser, getPath, getType, hasChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
getBinaryParser, getPath, getType
-
-
-
-
Constructor Detail
-
PEBinaryObject64
public PEBinaryObject64(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.ARHeader header)
-
PEBinaryObject64
public PEBinaryObject64(IBinaryParser parser, org.eclipse.core.runtime.IPath p, int type)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IBinaryParser.IBinaryObjectThe name of the object- Specified by:
getNamein interfaceIBinaryParser.IBinaryObject- Overrides:
getNamein classBinaryObjectAdapter- Returns:
- String
- See Also:
IBinaryParser.IBinaryObject.getName()
-
getContents
public InputStream getContents() throws IOException
- Specified by:
getContentsin interfaceIBinaryParser.IBinaryFile- Overrides:
getContentsin classBinaryFile- Returns:
- the binary contents.
- Throws:
IOException- See Also:
IBinaryParser.IBinaryFile.getContents()
-
getSymbols
public IBinaryParser.ISymbol[] getSymbols()
Description copied from interface:IBinaryParser.IBinaryObjectSymbols of the object- Specified by:
getSymbolsin interfaceIBinaryParser.IBinaryObject- Specified by:
getSymbolsin classBinaryObjectAdapter- Returns:
- ISymbol[] arrays of symbols
- See Also:
IBinaryParser.IBinaryObject.getSymbols()
-
getBinaryObjectInfo
protected BinaryObjectAdapter.BinaryObjectInfo getBinaryObjectInfo()
- Specified by:
getBinaryObjectInfoin classBinaryObjectAdapter
-
getAdapter
public <T> T getAdapter(Class<T> adapter)
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classorg.eclipse.core.runtime.PlatformObject
-
getPE
protected PE64 getPE() throws IOException
- Throws:
IOException
-
loadAll
protected void loadAll() throws IOException- Throws:
IOException
-
loadInfo
protected void loadInfo() throws IOException- Throws:
IOException
-
loadInfo
protected void loadInfo(PE64 pe) throws IOException
- Throws:
IOException
-
loadSymbols
protected void loadSymbols(PE64 pe) throws IOException
- Throws:
IOException
-
loadSymbols
protected void loadSymbols(PE64 pe, List<Symbol> list) throws IOException
- Throws:
IOException
-
addSymbols
protected void addSymbols(Coff64.Symbol[] peSyms, byte[] table, List<Symbol> list)
-
getAddressFactory
public IAddressFactory getAddressFactory()
- Specified by:
getAddressFactoryin interfaceIBinaryParser.IBinaryObject- Specified by:
getAddressFactoryin classBinaryObjectAdapter
-
-