Package org.asciidoctor.converter
Annotation Type ConverterFor
-
@Retention(RUNTIME) @Target(TYPE) public @interface ConverterFor
Assigns a default backend name to a converter so that it is not required to define the backend name at registration time.Example:
@ConverterFor("myFormat") public class MyConverter extends AbstractConverter { ... } asciidoctor.javaConverterRegistry().register(MyConverter.class);
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.String
UNDEFINED
-
-
-
-
format
java.lang.String format
This parameter defines the backend name for this converter. Is can be set if also another parameter likesuffix()
is defined to avoid the parameter namedvalue()
.Example:
@ConverterFor(format = "myFormat", suffix = "mine") public class MyConverter extends AbstractConverter { ... }
- Returns:
- The backend name for this converter.
- Default:
- ""
-
-