public class MachOBinaryObject64 extends BinaryObjectAdapter
BinaryObjectAdapter.BinaryObjectInfo
Modifier and Type | Field and Description |
---|---|
protected IAddressFactory |
addressFactory |
protected MachO64.Attribute |
attributes |
protected AR.ARHeader |
header |
protected boolean |
is64 |
protected String[] |
needed |
protected MachOHelper64.Sizes |
sizes |
protected String |
soname |
protected IBinaryParser.ISymbol[] |
symbols |
protected long |
timeStamp |
NO_SYMBOLS
ARCHIVE, CORE, EXECUTABLE, OBJECT, SHARED
Constructor and Description |
---|
MachOBinaryObject64(IBinaryParser parser,
org.eclipse.core.runtime.IPath path,
AR.ARHeader header) |
MachOBinaryObject64(IBinaryParser parser,
org.eclipse.core.runtime.IPath path,
int type) |
toString
getBinaryParser, getPath, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBinaryParser, getPath, getType
protected AR.ARHeader header
protected IAddressFactory addressFactory
protected MachO64.Attribute attributes
protected MachOHelper64.Sizes sizes
protected IBinaryParser.ISymbol[] symbols
protected String soname
protected String[] needed
protected long timeStamp
protected boolean is64
public MachOBinaryObject64(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.ARHeader header)
parser
- path
- header
- public MachOBinaryObject64(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)
parser
- path
- type
- protected BinaryObjectAdapter.BinaryObjectInfo getBinaryObjectInfo()
getBinaryObjectInfo
in class BinaryObjectAdapter
public InputStream getContents() throws IOException
getContents
in interface IBinaryParser.IBinaryFile
getContents
in class BinaryFile
IOException
IBinaryParser.IBinaryFile.getContents()
protected MachOHelper64 getMachOHelper() throws IOException
IOException
public String getName()
IBinaryParser.IBinaryObject
getName
in interface IBinaryParser.IBinaryObject
getName
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.getName()
public IAddressFactory getAddressFactory()
getAddressFactory
in interface IBinaryParser.IBinaryObject
getAddressFactory
in class BinaryObjectAdapter
protected void clearCachedValues()
protected MachO64.Attribute internalGetAttributes()
protected MachOHelper64.Sizes internalGetSizes()
protected IBinaryParser.ISymbol[] internalGetSymbols()
protected String internalGetSoName()
protected String[] internalGetNeeded()
protected void loadBinaryInfo()
protected IBinaryParser.ISymbol[] loadSymbols(MachOHelper64 helper) throws IOException
IOException
protected CPPFilt getCPPFilt()
public String getCPU()
IBinaryParser.IBinaryObject
getCPU
in interface IBinaryParser.IBinaryObject
getCPU
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.getCPU()
public boolean hasDebug()
IBinaryParser.IBinaryObject
hasDebug
in interface IBinaryParser.IBinaryObject
hasDebug
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.hasDebug()
public boolean isLittleEndian()
IBinaryParser.IBinaryObject
isLittleEndian
in interface IBinaryParser.IBinaryObject
isLittleEndian
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.isLittleEndian()
public long getBSS()
getBSS
in interface IBinaryParser.IBinaryObject
getBSS
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.getBSS()
public long getData()
getData
in interface IBinaryParser.IBinaryObject
getData
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.getData()
public long getText()
getText
in interface IBinaryParser.IBinaryObject
getText
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.getText()
public IBinaryParser.ISymbol[] getSymbols()
IBinaryParser.IBinaryObject
getSymbols
in interface IBinaryParser.IBinaryObject
getSymbols
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.getSymbols()
public IBinaryParser.ISymbol getSymbol(IAddress addr)
IBinaryParser.IBinaryObject
getSymbol
in interface IBinaryParser.IBinaryObject
getSymbol
in class BinaryObjectAdapter
public String[] getNeededSharedLibs()
getNeededSharedLibs
in class BinaryObjectAdapter
IBinaryParser.IBinaryExecutable.getNeededSharedLibs()
public String getSoName()
getSoName
in class BinaryObjectAdapter
IBinaryParser.IBinaryShared.getSoName()
protected boolean hasChanged()
hasChanged
in class BinaryFile
public <T> T getAdapter(Class<T> adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.core.runtime.PlatformObject
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.