Class FileSystemInfoRec
- java.lang.Object
-
- ghidra.formats.gfilesystem.factory.FileSystemInfoRec
-
public class FileSystemInfoRec extends java.lang.ObjectHolds information read from aFileSystemInfoannotation.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<FileSystemInfoRec>BY_PRIORITYA staticComparatorthat will orderFileSystemInfoRecby 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 FileSystemInfoRecfromClass(java.lang.Class<? extends GFileSystem> fsClazz)Instantiate a newFileSystemInfoRecfrom the information found in theFileSystemInfoannotation attached to the specified Class.java.lang.StringgetDescription()Filesystem description, ie.GFileSystemFactory<?>getFactory()TheGFileSystemFactoryinstance that will create new filesystem instances when needed.java.lang.Class<? extends GFileSystem>getFSClass()TheClassof the filesystem implementation.intgetPriority()Filesystem relative priority.java.lang.StringgetType()Filesystem 'type', ie.
-
-
-
Field Detail
-
BY_PRIORITY
public static final java.util.Comparator<FileSystemInfoRec> BY_PRIORITY
A staticComparatorthat will orderFileSystemInfoRecby 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 newFileSystemInfoRecfrom the information found in theFileSystemInfoannotation 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()
TheClassof the filesystem implementation.- Returns:
GFileSystemderived class.
-
getFactory
public GFileSystemFactory<?> getFactory()
TheGFileSystemFactoryinstance that will create new filesystem instances when needed.- Returns:
GFileSystemFactoryfor this filesystem
-
-