Class MachOBinaryObject
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.cdt.utils.BinaryFile
-
- org.eclipse.cdt.utils.BinaryObjectAdapter
-
- org.eclipse.cdt.utils.macho.parser.MachOBinaryObject
-
- All Implemented Interfaces:
IBinaryParser.IBinaryFile,IBinaryParser.IBinaryObject,org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
MachOBinaryExecutable,MachOBinaryShared
@Deprecated public class MachOBinaryObject extends BinaryObjectAdapter
Deprecated.Deprecated as of CDT 6.1. Use 64 bit versionMachOBinaryObject64. This class is planned for removal in next major release.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
BinaryObjectAdapter.BinaryObjectInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected IAddressFactoryaddressFactoryDeprecated.protected MachO.AttributeattributesDeprecated.protected AR.ARHeaderheaderDeprecated.protected java.lang.String[]neededDeprecated.protected MachOHelper.SizessizesDeprecated.protected java.lang.StringsonameDeprecated.protected IBinaryParser.ISymbol[]symbolsDeprecated.protected longtimeStampDeprecated.-
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 MachOBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)Deprecated.MachOBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.ARHeader header)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidclearCachedValues()Deprecated.<T> TgetAdapter(java.lang.Class<T> adapter)Deprecated.IAddressFactorygetAddressFactory()Deprecated.protected BinaryObjectAdapter.BinaryObjectInfogetBinaryObjectInfo()Deprecated.longgetBSS()Deprecated.java.io.InputStreamgetContents()Deprecated.protected CPPFiltgetCPPFilt()Deprecated.java.lang.StringgetCPU()Deprecated.CPU namelonggetData()Deprecated.protected MachOHelpergetMachOHelper()Deprecated.java.lang.StringgetName()Deprecated.The name of the objectjava.lang.String[]getNeededSharedLibs()Deprecated.java.lang.StringgetSoName()Deprecated.IBinaryParser.ISymbolgetSymbol(IAddress addr)Deprecated.Symbo at this address.IBinaryParser.ISymbol[]getSymbols()Deprecated.Symbols of the objectlonggetText()Deprecated.protected booleanhasChanged()Deprecated.booleanhasDebug()Deprecated.True if the binary contains debug informationprotected MachO.AttributeinternalGetAttributes()Deprecated.protected java.lang.String[]internalGetNeeded()Deprecated.protected MachOHelper.SizesinternalGetSizes()Deprecated.protected java.lang.StringinternalGetSoName()Deprecated.protected IBinaryParser.ISymbol[]internalGetSymbols()Deprecated.booleanisLittleEndian()Deprecated.The endianprotected voidloadBinaryInfo()Deprecated.protected IBinaryParser.ISymbol[]loadSymbols(MachOHelper helper)Deprecated.-
Methods inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
toString
-
Methods inherited from class org.eclipse.cdt.utils.BinaryFile
getBinaryParser, getPath, getType
-
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
-
-
-
-
Field Detail
-
header
protected AR.ARHeader header
Deprecated.
-
addressFactory
protected IAddressFactory addressFactory
Deprecated.
-
attributes
protected MachO.Attribute attributes
Deprecated.
-
sizes
protected MachOHelper.Sizes sizes
Deprecated.
-
symbols
protected IBinaryParser.ISymbol[] symbols
Deprecated.
-
soname
protected java.lang.String soname
Deprecated.
-
needed
protected java.lang.String[] needed
Deprecated.
-
timeStamp
protected long timeStamp
Deprecated.
-
-
Constructor Detail
-
MachOBinaryObject
public MachOBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.ARHeader header)
Deprecated.- Parameters:
parser-path-header-
-
MachOBinaryObject
public MachOBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)
Deprecated.- Parameters:
parser-path-type-
-
-
Method Detail
-
getBinaryObjectInfo
protected BinaryObjectAdapter.BinaryObjectInfo getBinaryObjectInfo()
Deprecated.- Specified by:
getBinaryObjectInfoin classBinaryObjectAdapter
-
getContents
public java.io.InputStream getContents() throws java.io.IOExceptionDeprecated.- Specified by:
getContentsin interfaceIBinaryParser.IBinaryFile- Overrides:
getContentsin classBinaryFile- Returns:
- the binary contents.
- Throws:
java.io.IOException- See Also:
IBinaryParser.IBinaryFile.getContents()
-
getMachOHelper
protected MachOHelper getMachOHelper() throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
Deprecated.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()
-
getAddressFactory
public IAddressFactory getAddressFactory()
Deprecated.- Specified by:
getAddressFactoryin interfaceIBinaryParser.IBinaryObject- Specified by:
getAddressFactoryin classBinaryObjectAdapter
-
clearCachedValues
protected void clearCachedValues()
Deprecated.
-
internalGetAttributes
protected MachO.Attribute internalGetAttributes()
Deprecated.
-
internalGetSizes
protected MachOHelper.Sizes internalGetSizes()
Deprecated.
-
internalGetSymbols
protected IBinaryParser.ISymbol[] internalGetSymbols()
Deprecated.
-
internalGetSoName
protected java.lang.String internalGetSoName()
Deprecated.
-
internalGetNeeded
protected java.lang.String[] internalGetNeeded()
Deprecated.
-
loadBinaryInfo
protected void loadBinaryInfo()
Deprecated.
-
loadSymbols
protected IBinaryParser.ISymbol[] loadSymbols(MachOHelper helper) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getCPPFilt
protected CPPFilt getCPPFilt()
Deprecated.
-
getCPU
public java.lang.String getCPU()
Deprecated.Description copied from interface:IBinaryParser.IBinaryObjectCPU name- Specified by:
getCPUin interfaceIBinaryParser.IBinaryObject- Overrides:
getCPUin classBinaryObjectAdapter- Returns:
- String - cpu name
- See Also:
IBinaryParser.IBinaryObject.getCPU()
-
hasDebug
public boolean hasDebug()
Deprecated.Description copied from interface:IBinaryParser.IBinaryObjectTrue if the binary contains debug information- Specified by:
hasDebugin interfaceIBinaryParser.IBinaryObject- Overrides:
hasDebugin classBinaryObjectAdapter- Returns:
- true if debug information
- See Also:
IBinaryParser.IBinaryObject.hasDebug()
-
isLittleEndian
public boolean isLittleEndian()
Deprecated.Description copied from interface:IBinaryParser.IBinaryObjectThe endian- Specified by:
isLittleEndianin interfaceIBinaryParser.IBinaryObject- Overrides:
isLittleEndianin classBinaryObjectAdapter- Returns:
- boolean - true for little endian
- See Also:
IBinaryParser.IBinaryObject.isLittleEndian()
-
getBSS
public long getBSS()
Deprecated.- Specified by:
getBSSin interfaceIBinaryParser.IBinaryObject- Overrides:
getBSSin classBinaryObjectAdapter- See Also:
IBinaryParser.IBinaryObject.getBSS()
-
getData
public long getData()
Deprecated.- Specified by:
getDatain interfaceIBinaryParser.IBinaryObject- Overrides:
getDatain classBinaryObjectAdapter- See Also:
IBinaryParser.IBinaryObject.getData()
-
getText
public long getText()
Deprecated.- Specified by:
getTextin interfaceIBinaryParser.IBinaryObject- Overrides:
getTextin classBinaryObjectAdapter- See Also:
IBinaryParser.IBinaryObject.getText()
-
getSymbols
public IBinaryParser.ISymbol[] getSymbols()
Deprecated.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()
-
getSymbol
public IBinaryParser.ISymbol getSymbol(IAddress addr)
Deprecated.Description copied from interface:IBinaryParser.IBinaryObjectSymbo at this address.- Specified by:
getSymbolin interfaceIBinaryParser.IBinaryObject- Overrides:
getSymbolin classBinaryObjectAdapter- Returns:
- ISymbol
-
getNeededSharedLibs
public java.lang.String[] getNeededSharedLibs()
Deprecated.- Overrides:
getNeededSharedLibsin classBinaryObjectAdapter- See Also:
IBinaryParser.IBinaryExecutable.getNeededSharedLibs()
-
getSoName
public java.lang.String getSoName()
Deprecated.- Overrides:
getSoNamein classBinaryObjectAdapter- See Also:
IBinaryParser.IBinaryShared.getSoName()
-
hasChanged
protected boolean hasChanged()
Deprecated.- Overrides:
hasChangedin classBinaryFile
-
getAdapter
public <T> T getAdapter(java.lang.Class<T> adapter)
Deprecated.- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classorg.eclipse.core.runtime.PlatformObject
-
-