Package org.qbicc.machine.object
Interface ObjectFileProvider
public interface ObjectFileProvider
An object file format provider.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ObjectFileProvider>findProvider(ObjectType objectType, ClassLoader searchLoader) Find a provider for the given object type.Get the object file format.openObjectFile(Path path) Open an object file on the filesystem for introspection.
-
Method Details
-
openObjectFile
Open an object file on the filesystem for introspection.- Parameters:
path- the path to the object file (must not benull)- Returns:
- the object file handle
- Throws:
IOException- if the file open failed for some reason
-
getObjectType
ObjectType getObjectType()Get the object file format.- Returns:
- the object file format
-
findProvider
Find a provider for the given object type.- Parameters:
objectType- the object file type (must not benull)searchLoader- the search class loader (must not benull)- Returns:
- the provider, if any
-