Package org.eclipse.cdt.utils.elf.parser
Class ElfParser
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.cdt.core.AbstractCExtension
-
- org.eclipse.cdt.utils.elf.parser.ElfParser
-
- All Implemented Interfaces:
IBinaryParser,ICExtension,org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
GNUElfParser
public class ElfParser extends AbstractCExtension implements IBinaryParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.IBinaryParser
IBinaryParser.IBinaryArchive, IBinaryParser.IBinaryExecutable, IBinaryParser.IBinaryFile, IBinaryParser.IBinaryObject, IBinaryParser.IBinaryShared, IBinaryParser.ISymbol
-
-
Constructor Summary
Constructors Constructor Description ElfParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IBinaryParser.IBinaryArchivecreateBinaryArchive(org.eclipse.core.runtime.IPath path)protected IBinaryParser.IBinaryObjectcreateBinaryCore(org.eclipse.core.runtime.IPath path)protected IBinaryParser.IBinaryExecutablecreateBinaryExecutable(org.eclipse.core.runtime.IPath path)protected IBinaryParser.IBinaryObjectcreateBinaryObject(org.eclipse.core.runtime.IPath path)protected IBinaryParser.IBinarySharedcreateBinaryShared(org.eclipse.core.runtime.IPath path)IBinaryParser.IBinaryFilegetBinary(byte[] hints, org.eclipse.core.runtime.IPath path)Creates an IBinaryFile.IBinaryParser.IBinaryFilegetBinary(org.eclipse.core.runtime.IPath path)Creates an IBinaryFile.StringgetFormat()Returns the name of the Format.intgetHintBufferSize()Get a hint of the needed buffer size to recognize the file.booleanisBinary(byte[] array, org.eclipse.core.runtime.IPath path)True if the resource is a binary.-
Methods inherited from class org.eclipse.cdt.core.AbstractCExtension
getConfigExtensionReference, getExtensionReference, getProject, setExtensionReference, setExtensionReference, setProject
-
-
-
-
Method Detail
-
getBinary
public IBinaryParser.IBinaryFile getBinary(org.eclipse.core.runtime.IPath path) throws IOException
Description copied from interface:IBinaryParserCreates an IBinaryFile.- Specified by:
getBinaryin interfaceIBinaryParser- Throws:
IOException
-
getBinary
public IBinaryParser.IBinaryFile getBinary(byte[] hints, org.eclipse.core.runtime.IPath path) throws IOException
Description copied from interface:IBinaryParserCreates an IBinaryFile.- Specified by:
getBinaryin interfaceIBinaryParser- Parameters:
hints- - array byte that can be use to recognise the file. Can be null or empty array when no hints are passed.- Throws:
IOException
-
getFormat
public String getFormat()
Description copied from interface:IBinaryParserReturns the name of the Format.- Specified by:
getFormatin interfaceIBinaryParser
-
isBinary
public boolean isBinary(byte[] array, org.eclipse.core.runtime.IPath path)Description copied from interface:IBinaryParserTrue if the resource is a binary.- Specified by:
isBinaryin interfaceIBinaryParser
-
getHintBufferSize
public int getHintBufferSize()
Description copied from interface:IBinaryParserGet a hint of the needed buffer size to recognize the file.- Specified by:
getHintBufferSizein interfaceIBinaryParser
-
createBinaryArchive
protected IBinaryParser.IBinaryArchive createBinaryArchive(org.eclipse.core.runtime.IPath path) throws IOException
- Throws:
IOException
-
createBinaryObject
protected IBinaryParser.IBinaryObject createBinaryObject(org.eclipse.core.runtime.IPath path) throws IOException
- Throws:
IOException
-
createBinaryExecutable
protected IBinaryParser.IBinaryExecutable createBinaryExecutable(org.eclipse.core.runtime.IPath path) throws IOException
- Throws:
IOException
-
createBinaryShared
protected IBinaryParser.IBinaryShared createBinaryShared(org.eclipse.core.runtime.IPath path) throws IOException
- Throws:
IOException
-
createBinaryCore
protected IBinaryParser.IBinaryObject createBinaryCore(org.eclipse.core.runtime.IPath path) throws IOException
- Throws:
IOException
-
-