Package ghidra.program.model.data
Class DefaultAnnotationHandler
- java.lang.Object
-
- ghidra.program.model.data.DefaultAnnotationHandler
-
- All Implemented Interfaces:
AnnotationHandler,ExtensionPoint
public class DefaultAnnotationHandler extends java.lang.Object implements AnnotationHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.util.classfinder.ExtensionPoint
ExtensionPoint.Exclude, ExtensionPoint.Util
-
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns the description of the specific handlerjava.lang.String[]getFileExtensions()Returns an array of known extensions for the output file type.java.lang.StringgetLanguageName()Returns the name of the C-like language that this handler supportsjava.lang.StringgetPrefix(Composite c, DataTypeComponent dtc)Returns the prefix for type Compositejava.lang.StringgetPrefix(Enum e, java.lang.String member)Returns the prefix for type Enumjava.lang.StringgetSuffix(Composite c, DataTypeComponent dtc)Returns the suffix for type Compositejava.lang.StringgetSuffix(Enum e, java.lang.String member)Returns the suffix for type Enumjava.lang.StringtoString()Returns a string description of this handler.
-
-
-
Method Detail
-
getPrefix
public java.lang.String getPrefix(Enum e, java.lang.String member)
Description copied from interface:AnnotationHandlerReturns the prefix for type Enum- Specified by:
getPrefixin interfaceAnnotationHandler- Parameters:
e- the Enum datatypemember- the name of the member of the Enum- Returns:
- the prefix for type Enum
-
getSuffix
public java.lang.String getSuffix(Enum e, java.lang.String member)
Description copied from interface:AnnotationHandlerReturns the suffix for type Enum- Specified by:
getSuffixin interfaceAnnotationHandler- Parameters:
e- the Enum datatypemember- the name of the member of the Enum- Returns:
- the suffix for type Enum
-
getPrefix
public java.lang.String getPrefix(Composite c, DataTypeComponent dtc)
Description copied from interface:AnnotationHandlerReturns the prefix for type Composite- Specified by:
getPrefixin interfaceAnnotationHandler- Parameters:
c- the Composite datatypedtc- the name of the member of the Composite- Returns:
- the prefix for type Composite
-
getSuffix
public java.lang.String getSuffix(Composite c, DataTypeComponent dtc)
Description copied from interface:AnnotationHandlerReturns the suffix for type Composite- Specified by:
getSuffixin interfaceAnnotationHandler- Parameters:
c- the Composite datatypedtc- the name of the member of the Composite- Returns:
- the suffix for type Composite
-
getDescription
public java.lang.String getDescription()
Description copied from interface:AnnotationHandlerReturns the description of the specific handler- Specified by:
getDescriptionin interfaceAnnotationHandler- Returns:
- the description of the specific handler
-
getLanguageName
public java.lang.String getLanguageName()
Description copied from interface:AnnotationHandlerReturns the name of the C-like language that this handler supports- Specified by:
getLanguageNamein interfaceAnnotationHandler- Returns:
- the name of the C-like language that this handler supports
-
getFileExtensions
public java.lang.String[] getFileExtensions()
Description copied from interface:AnnotationHandlerReturns an array of known extensions for the output file type. If no extensions are preferred, the an empty array should be returned.- Specified by:
getFileExtensionsin interfaceAnnotationHandler- Returns:
- an array of known extensions for the output file type.
-
toString
public java.lang.String toString()
Description copied from interface:AnnotationHandlerReturns a string description of this handler.- Specified by:
toStringin interfaceAnnotationHandler- Overrides:
toStringin classjava.lang.Object- Returns:
- a string description of this handler
-
-