Package org.eclipse.cdt.utils.som.parser
Class SOMParser
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.cdt.core.AbstractCExtension
-
- org.eclipse.cdt.utils.som.parser.SOMParser
-
- All Implemented Interfaces:
IBinaryParser
,ICExtension
,org.eclipse.core.runtime.IAdaptable
public class SOMParser extends AbstractCExtension implements IBinaryParser
HP-UX SOM binary parser
-
-
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 SOMParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultGnuToolFactory
createGNUToolFactory()
<T> T
getAdapter(Class<T> adapter)
IBinaryParser.IBinaryFile
getBinary(byte[] hints, org.eclipse.core.runtime.IPath path)
Creates an IBinaryFile.IBinaryParser.IBinaryFile
getBinary(org.eclipse.core.runtime.IPath path)
Creates an IBinaryFile.String
getFormat()
Returns the name of the Format.int
getHintBufferSize()
Get a hint of the needed buffer size to recognize the file.boolean
isBinary(byte[] hints, 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(byte[] hints, org.eclipse.core.runtime.IPath path) throws IOException
Description copied from interface:IBinaryParser
Creates an IBinaryFile.- Specified by:
getBinary
in 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
-
getBinary
public IBinaryParser.IBinaryFile getBinary(org.eclipse.core.runtime.IPath path) throws IOException
Description copied from interface:IBinaryParser
Creates an IBinaryFile.- Specified by:
getBinary
in interfaceIBinaryParser
- Throws:
IOException
-
getFormat
public String getFormat()
Description copied from interface:IBinaryParser
Returns the name of the Format.- Specified by:
getFormat
in interfaceIBinaryParser
-
isBinary
public boolean isBinary(byte[] hints, org.eclipse.core.runtime.IPath path)
Description copied from interface:IBinaryParser
True if the resource is a binary.- Specified by:
isBinary
in interfaceIBinaryParser
-
getHintBufferSize
public int getHintBufferSize()
Description copied from interface:IBinaryParser
Get a hint of the needed buffer size to recognize the file.- Specified by:
getHintBufferSize
in interfaceIBinaryParser
-
createGNUToolFactory
protected DefaultGnuToolFactory createGNUToolFactory()
-
getAdapter
public <T> T getAdapter(Class<T> adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classorg.eclipse.core.runtime.PlatformObject
-
-