Class UnionOfFormatter
- java.lang.Object
-
- net.morimekta.providence.generator.format.java.messages.extras.UnionOfFormatter
-
- All Implemented Interfaces:
MessageMemberFormatter
public class UnionOfFormatter 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 UnionOfFormatter(net.morimekta.util.io.IndentedPrintWriter writer, JHelper helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendMethods(JMessage<?> message)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.morimekta.providence.generator.format.java.shared.MessageMemberFormatter
appendClassAnnotations, appendConstants, appendConstructors, appendExtraProperties, appendFields, getExtraImplements
-
-
-
-
Constructor Detail
-
UnionOfFormatter
public UnionOfFormatter(net.morimekta.util.io.IndentedPrintWriter writer, JHelper helper)
-
-
Method Detail
-
appendMethods
public void appendMethods(JMessage<?> message) throws net.morimekta.providence.generator.GeneratorException
- Specified by:
appendMethodsin interfaceMessageMemberFormatter- Throws:
net.morimekta.providence.generator.GeneratorException
-
-