Package ghidra.program.model.data
Interface AnnotationHandler
-
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
DefaultAnnotationHandler
public interface AnnotationHandler extends ExtensionPoint
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.util.classfinder.ExtensionPoint
ExtensionPoint.Exclude, ExtensionPoint.Util
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDescription()
Returns the description of the specific handlerjava.lang.String[]
getFileExtensions()
Returns an array of known extensions for the output file type.java.lang.String
getLanguageName()
Returns the name of the C-like language that this handler supportsjava.lang.String
getPrefix(Composite c, DataTypeComponent dtc)
Returns the prefix for type Compositejava.lang.String
getPrefix(Enum e, java.lang.String member)
Returns the prefix for type Enumjava.lang.String
getSuffix(Composite c, DataTypeComponent dtc)
Returns the suffix for type Compositejava.lang.String
getSuffix(Enum e, java.lang.String member)
Returns the suffix for type Enumjava.lang.String
toString()
Returns a string description of this handler.
-
-
-
Method Detail
-
getPrefix
java.lang.String getPrefix(Enum e, java.lang.String member)
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
java.lang.String getSuffix(Enum e, java.lang.String member)
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
java.lang.String getPrefix(Composite c, DataTypeComponent dtc)
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
java.lang.String getSuffix(Composite c, DataTypeComponent dtc)
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
java.lang.String getDescription()
Returns the description of the specific handler- Returns:
- the description of the specific handler
-
getLanguageName
java.lang.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
java.lang.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
java.lang.String toString()
Returns a string description of this handler.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string description of this handler
-
-