Package org.eclipse.cdt.utils
Class BinaryObjectAdapter
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.cdt.utils.BinaryFile
-
- org.eclipse.cdt.utils.BinaryObjectAdapter
-
- All Implemented Interfaces:
IBinaryParser.IBinaryFile,IBinaryParser.IBinaryObject,org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
ElfBinaryObject,MachOBinaryObject,MachOBinaryObject64,PEBinaryObject,PEBinaryObject64,SOMBinaryObject,XCOFFBinaryObject
public abstract class BinaryObjectAdapter extends BinaryFile implements IBinaryParser.IBinaryObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBinaryObjectAdapter.BinaryObjectInfo
-
Field Summary
Fields Modifier and Type Field Description protected static IBinaryParser.ISymbol[]NO_SYMBOLS-
Fields inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
ARCHIVE, CORE, EXECUTABLE, OBJECT, SHARED
-
-
Constructor Summary
Constructors Constructor Description BinaryObjectAdapter(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract IAddressFactorygetAddressFactory()protected abstract BinaryObjectAdapter.BinaryObjectInfogetBinaryObjectInfo()longgetBSS()StringgetCPU()CPU namelonggetData()StringgetName()The name of the objectString[]getNeededSharedLibs()StringgetSoName()IBinaryParser.ISymbolgetSymbol(IAddress addr)Symbo at this address.abstract IBinaryParser.ISymbol[]getSymbols()Symbols of the objectlonggetText()booleanhasDebug()True if the binary contains debug informationbooleanisLittleEndian()The endianStringtoString()-
Methods inherited from class org.eclipse.cdt.utils.BinaryFile
getBinaryParser, getContents, 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, getContents, getPath, getType
-
-
-
-
Field Detail
-
NO_SYMBOLS
protected static final IBinaryParser.ISymbol[] NO_SYMBOLS
-
-
Constructor Detail
-
BinaryObjectAdapter
public BinaryObjectAdapter(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)
-
-
Method Detail
-
getSymbol
public IBinaryParser.ISymbol getSymbol(IAddress addr)
Description copied from interface:IBinaryParser.IBinaryObjectSymbo at this address.- Specified by:
getSymbolin interfaceIBinaryParser.IBinaryObject- Returns:
- ISymbol
-
getBSS
public long getBSS()
- Specified by:
getBSSin interfaceIBinaryParser.IBinaryObject- See Also:
IBinaryParser.IBinaryObject.getBSS()
-
getCPU
public String getCPU()
Description copied from interface:IBinaryParser.IBinaryObjectCPU name- Specified by:
getCPUin interfaceIBinaryParser.IBinaryObject- Returns:
- String - cpu name
- See Also:
IBinaryParser.IBinaryObject.getCPU()
-
getData
public long getData()
- Specified by:
getDatain interfaceIBinaryParser.IBinaryObject- See Also:
IBinaryParser.IBinaryObject.getData()
-
getText
public long getText()
- Specified by:
getTextin interfaceIBinaryParser.IBinaryObject- See Also:
IBinaryParser.IBinaryObject.getText()
-
hasDebug
public boolean hasDebug()
Description copied from interface:IBinaryParser.IBinaryObjectTrue if the binary contains debug information- Specified by:
hasDebugin interfaceIBinaryParser.IBinaryObject- Returns:
- true if debug information
- See Also:
IBinaryParser.IBinaryObject.hasDebug()
-
isLittleEndian
public boolean isLittleEndian()
Description copied from interface:IBinaryParser.IBinaryObjectThe endian- Specified by:
isLittleEndianin interfaceIBinaryParser.IBinaryObject- Returns:
- boolean - true for little endian
- See Also:
IBinaryParser.IBinaryObject.isLittleEndian()
-
getNeededSharedLibs
public String[] getNeededSharedLibs()
-
getSoName
public String getSoName()
- See Also:
IBinaryParser.IBinaryShared.getSoName()
-
getName
public String getName()
Description copied from interface:IBinaryParser.IBinaryObjectThe name of the object- Specified by:
getNamein interfaceIBinaryParser.IBinaryObject- Returns:
- String
- See Also:
IBinaryParser.IBinaryObject.getName()
-
getSymbols
public abstract IBinaryParser.ISymbol[] getSymbols()
Description copied from interface:IBinaryParser.IBinaryObjectSymbols of the object- Specified by:
getSymbolsin interfaceIBinaryParser.IBinaryObject- Returns:
- ISymbol[] arrays of symbols
- See Also:
IBinaryParser.IBinaryObject.getSymbols()
-
getAddressFactory
public abstract IAddressFactory getAddressFactory()
- Specified by:
getAddressFactoryin interfaceIBinaryParser.IBinaryObject
-
getBinaryObjectInfo
protected abstract BinaryObjectAdapter.BinaryObjectInfo getBinaryObjectInfo()
-
-