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
,MachOBinaryObject64
,PEBinaryObject64
,SOMBinaryObject
,XCOFFBinaryObject
-
Nested Class Summary
-
Field Summary
Fields inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
ARCHIVE, CORE, EXECUTABLE, OBJECT, SHARED
-
Constructor Summary
ConstructorDescriptionBinaryObjectAdapter
(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type) -
Method Summary
Modifier and TypeMethodDescriptionabstract IAddressFactory
protected abstract BinaryObjectAdapter.BinaryObjectInfo
long
getBSS()
getCPU()
CPU namelong
getData()
getName()
The name of the objectString[]
Symbo at this address.abstract IBinaryParser.ISymbol[]
Symbols of the objectlong
getText()
boolean
hasDebug()
True if the binary contains debug informationboolean
The endiantoString()
Methods inherited from class org.eclipse.cdt.utils.BinaryFile
getBinaryParser, getContents, getPath, getType, hasChanged
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
getBinaryParser, getContents, getPath, getType
-
Field Details
-
NO_SYMBOLS
-
-
Constructor Details
-
BinaryObjectAdapter
-
-
Method Details
-
getSymbol
Description copied from interface:IBinaryParser.IBinaryObject
Symbo at this address.- Specified by:
getSymbol
in interfaceIBinaryParser.IBinaryObject
- Parameters:
addr
-- Returns:
- ISymbol
-
getBSS
public long getBSS()- Specified by:
getBSS
in interfaceIBinaryParser.IBinaryObject
- See Also:
-
getCPU
Description copied from interface:IBinaryParser.IBinaryObject
CPU name- Specified by:
getCPU
in interfaceIBinaryParser.IBinaryObject
- Returns:
- String - cpu name
- See Also:
-
getData
public long getData()- Specified by:
getData
in interfaceIBinaryParser.IBinaryObject
- See Also:
-
getText
public long getText()- Specified by:
getText
in interfaceIBinaryParser.IBinaryObject
- See Also:
-
hasDebug
public boolean hasDebug()Description copied from interface:IBinaryParser.IBinaryObject
True if the binary contains debug information- Specified by:
hasDebug
in interfaceIBinaryParser.IBinaryObject
- Returns:
- true if debug information
- See Also:
-
isLittleEndian
public boolean isLittleEndian()Description copied from interface:IBinaryParser.IBinaryObject
The endian- Specified by:
isLittleEndian
in interfaceIBinaryParser.IBinaryObject
- Returns:
- boolean - true for little endian
- See Also:
-
getSoName
- See Also:
-
getName
Description copied from interface:IBinaryParser.IBinaryObject
The name of the object- Specified by:
getName
in interfaceIBinaryParser.IBinaryObject
- Returns:
- String
- See Also:
-
toString
-
getSymbols
Description copied from interface:IBinaryParser.IBinaryObject
Symbols of the object- Specified by:
getSymbols
in interfaceIBinaryParser.IBinaryObject
- Returns:
- ISymbol[] arrays of symbols
- See Also:
-
getAddressFactory
- Specified by:
getAddressFactory
in interfaceIBinaryParser.IBinaryObject
-
getBinaryObjectInfo
-