Package com.atlassian.confluence.macro
Class NoOpMacro
java.lang.Object
com.atlassian.confluence.macro.NoOpMacro
- All Implemented Interfaces:
Macro
- Direct Known Subclasses:
NoBodyMacro
A class used exclusively for testing.
It simplifies creating a new macro with a certain body type and output type and avoids unwieldly anonymous inner classes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.macro.Macro
Macro.BodyType, Macro.OutputType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe type of body that this macro has, this is used to infer the migration task if no custom one is provided.
-
Constructor Details
-
NoOpMacro
-
-
Method Details
-
execute
-
getBodyType
Description copied from interface:MacroThe type of body that this macro has, this is used to infer the migration task if no custom one is provided.- Specified by:
getBodyTypein interfaceMacro- Returns:
- The type of body this macro has.
-
getOutputType
- Specified by:
getOutputTypein interfaceMacro
-