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
-
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationHandler()
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String getPrefix(Enum e, java.lang.String member)
Description copied from interface:AnnotationHandler
Returns the prefix for type Enum- Specified by:
getPrefix
in 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:AnnotationHandler
Returns the suffix for type Enum- Specified by:
getSuffix
in 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:AnnotationHandler
Returns the prefix for type Composite- Specified by:
getPrefix
in 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:AnnotationHandler
Returns the suffix for type Composite- Specified by:
getSuffix
in 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:AnnotationHandler
Returns the description of the specific handler- Specified by:
getDescription
in interfaceAnnotationHandler
- Returns:
- the description of the specific handler
-
getLanguageName
public java.lang.String getLanguageName()
Description copied from interface:AnnotationHandler
Returns the name of the C-like language that this handler supports- Specified by:
getLanguageName
in interfaceAnnotationHandler
- Returns:
- the name of the C-like language that this handler supports
-
getFileExtensions
public java.lang.String[] getFileExtensions()
Description copied from interface:AnnotationHandler
Returns an array of known extensions for the output file type. If no extensions are preferred, the an empty array should be returned.- Specified by:
getFileExtensions
in interfaceAnnotationHandler
- Returns:
- an array of known extensions for the output file type.
-
toString
public java.lang.String toString()
Description copied from interface:AnnotationHandler
Returns a string description of this handler.- Specified by:
toString
in interfaceAnnotationHandler
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string description of this handler
-
-