Class FileSystemInfoRec
- java.lang.Object
-
- ghidra.formats.gfilesystem.factory.FileSystemInfoRec
-
public class FileSystemInfoRec extends java.lang.Object
Holds information read from aFileSystemInfo
annotation.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<FileSystemInfoRec>
BY_PRIORITY
A staticComparator
that will orderFileSystemInfoRec
by theirpriority
, with the highest priority elements sorted to the beginning of the list.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileSystemInfoRec
fromClass(java.lang.Class<? extends GFileSystem> fsClazz)
Instantiate a newFileSystemInfoRec
from the information found in theFileSystemInfo
annotation attached to the specified Class.java.lang.String
getDescription()
Filesystem description, ie.GFileSystemFactory<?>
getFactory()
TheGFileSystemFactory
instance that will create new filesystem instances when needed.java.lang.Class<? extends GFileSystem>
getFSClass()
TheClass
of the filesystem implementation.int
getPriority()
Filesystem relative priority.java.lang.String
getType()
Filesystem 'type', ie.
-
-
-
Field Detail
-
BY_PRIORITY
public static final java.util.Comparator<FileSystemInfoRec> BY_PRIORITY
A staticComparator
that will orderFileSystemInfoRec
by theirpriority
, with the highest priority elements sorted to the beginning of the list.
-
-
Method Detail
-
fromClass
public static FileSystemInfoRec fromClass(java.lang.Class<? extends GFileSystem> fsClazz)
Instantiate a newFileSystemInfoRec
from the information found in theFileSystemInfo
annotation attached to the specified Class.- Parameters:
fsClazz
- class to query for file system info.- Returns:
- new
FileSystemInfoRec
, or null if the class doesn't have valid file system meta data.
-
getType
public java.lang.String getType()
Filesystem 'type', ie. "file", or "zip", etc.- Returns:
- type string
-
getDescription
public java.lang.String getDescription()
Filesystem description, ie. "XYZ Vendor Filesystem Type 1"- Returns:
- description string
-
getPriority
public int getPriority()
Filesystem relative priority.- Returns:
- priority int
-
getFSClass
public java.lang.Class<? extends GFileSystem> getFSClass()
TheClass
of the filesystem implementation.- Returns:
GFileSystem
derived class.
-
getFactory
public GFileSystemFactory<?> getFactory()
TheGFileSystemFactory
instance that will create new filesystem instances when needed.- Returns:
GFileSystemFactory
for this filesystem
-
-