Package ghidra.program.model.data
Interface AnnotationHandler
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
DefaultAnnotationHandler
NOTE: ALL AnnotationHandler CLASSES MUST END IN "AnnotationHandler". If not,
the ClassSearcher will not find them.
AnnotationHandlers provide prefix/suffix information for various datatypes
for specific C-like languages.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the specific handlerString[]
Returns an array of known extensions for the output file type.Returns the name of the C-like language that this handler supportsgetPrefix
(Composite c, DataTypeComponent dtc) Returns the prefix for type CompositeReturns the prefix for type EnumgetSuffix
(Composite c, DataTypeComponent dtc) Returns the suffix for type CompositeReturns the suffix for type EnumtoString()
Returns a string description of this handler.
-
Method Details
-
getPrefix
Returns the prefix for type Enum- Parameters:
e
- the Enum datatypemember
- the name of the member of the Enum- Returns:
- the prefix for type Enum
-
getSuffix
Returns the suffix for type Enum- Parameters:
e
- the Enum datatypemember
- the name of the member of the Enum- Returns:
- the suffix for type Enum
-
getPrefix
Returns the prefix for type Composite- Parameters:
c
- the Composite datatypedtc
- the name of the member of the Composite- Returns:
- the prefix for type Composite
-
getSuffix
Returns the suffix for type Composite- Parameters:
c
- the Composite datatypedtc
- the name of the member of the Composite- Returns:
- the suffix for type Composite
-
getDescription
String getDescription()Returns the description of the specific handler- Returns:
- the description of the specific handler
-
getLanguageName
String getLanguageName()Returns the name of the C-like language that this handler supports- Returns:
- the name of the C-like language that this handler supports
-
getFileExtensions
String[] getFileExtensions()Returns an array of known extensions for the output file type. If no extensions are preferred, the an empty array should be returned.- Returns:
- an array of known extensions for the output file type.
-
toString
String toString()Returns a string description of this handler.
-