Class JsonGenerator

    • Constructor Summary

      Constructors 
      Constructor Description
      JsonGenerator()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, com.google.gson.JsonElement value)  
      protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Boolean value)  
      protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Character value)  
      protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Number value)  
      protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Object object)  
      protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.String value)  
      protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Void x)  
      protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.util.Collection<? extends org.eclipse.emf.ecore.EObject> collection)  
      abstract com.google.gson.JsonElement createJsonElement​(org.eclipse.emf.ecore.EObject object)  
      java.lang.String generate​(org.eclipse.emf.ecore.EObject object)
      Generate another representation of the given EObject as a string.
      protected com.google.gson.JsonObject with​(com.google.gson.JsonObject jsonObject, java.lang.String propertyName, java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonGenerator

        public JsonGenerator()
    • Method Detail

      • createJsonElement

        public abstract com.google.gson.JsonElement createJsonElement​(org.eclipse.emf.ecore.EObject object)
      • generate

        public java.lang.String generate​(org.eclipse.emf.ecore.EObject object)
        Description copied from interface: Generator
        Generate another representation of the given EObject as a string.
        Specified by:
        generate in interface Generator
        Parameters:
        object - The EObject which shall serve as a template for the generated string.
        Returns:
        The string representation of the given object.
      • _with

        protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject,
                                                   java.lang.String propertyName,
                                                   com.google.gson.JsonElement value)
      • _with

        protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject,
                                                   java.lang.String propertyName,
                                                   java.lang.String value)
      • _with

        protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject,
                                                   java.lang.String propertyName,
                                                   java.lang.Number value)
      • _with

        protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject,
                                                   java.lang.String propertyName,
                                                   java.lang.Boolean value)
      • _with

        protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject,
                                                   java.lang.String propertyName,
                                                   java.lang.Character value)
      • _with

        protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject,
                                                   java.lang.String propertyName,
                                                   java.util.Collection<? extends org.eclipse.emf.ecore.EObject> collection)
      • _with

        protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject,
                                                   java.lang.String propertyName,
                                                   java.lang.Void x)
      • _with

        protected com.google.gson.JsonObject _with​(com.google.gson.JsonObject jsonObject,
                                                   java.lang.String propertyName,
                                                   java.lang.Object object)
      • with

        protected com.google.gson.JsonObject with​(com.google.gson.JsonObject jsonObject,
                                                  java.lang.String propertyName,
                                                  java.lang.Object value)