Class AnyMessageFormatter
- java.lang.Object
-
- net.morimekta.providence.generator.format.java.messages.extras.AnyMessageFormatter
-
- All Implemented Interfaces:
MessageMemberFormatter
public class AnyMessageFormatter extends java.lang.Object implements MessageMemberFormatter
This class annotates specifically the providence.Any type with two utility methods: - Message unwrapMessage(descriptor); - static Any wrapMessage(message);
-
-
Constructor Summary
Constructors Constructor Description AnyMessageFormatter(net.morimekta.util.io.IndentedPrintWriter writer, JHelper helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendExtraProperties(JMessage<?> message)
void
appendMethods(JMessage<?> message)
-
Methods inherited from interface net.morimekta.providence.generator.format.java.shared.MessageMemberFormatter
appendClassAnnotations, appendConstants, appendConstructors, appendFields, getExtraImplements
-
-
-
-
Constructor Detail
-
AnyMessageFormatter
public AnyMessageFormatter(net.morimekta.util.io.IndentedPrintWriter writer, JHelper helper)
-
-
Method Detail
-
appendMethods
public void appendMethods(JMessage<?> message) throws net.morimekta.providence.generator.GeneratorException
- Specified by:
appendMethods
in interfaceMessageMemberFormatter
- Throws:
net.morimekta.providence.generator.GeneratorException
-
appendExtraProperties
public void appendExtraProperties(JMessage<?> message) throws net.morimekta.providence.generator.GeneratorException
- Specified by:
appendExtraProperties
in interfaceMessageMemberFormatter
- Throws:
net.morimekta.providence.generator.GeneratorException
-
-