Class ASTSignatureDeserializer

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<Signature>

    public class ASTSignatureDeserializer
    extends Object
    implements com.google.gson.JsonDeserializer<Signature>
    This class is used to deserialize an AST JSON representation of a construct body object into its corresponding java Signatures object JSON representation of ASTConstructBodySignature: Node: - fLabel : EntityType - fValue : String -- fMatched : boolean -- fOrdered : boolean - fEntity : SourceCodeEntity - fUniqueName : String //same information as fValue above - fType : EntityType //same information ast fLabel above - fModifiers : int // this is always zero (Not sure if i should have it in the json object) - fAssociatedEntities : List<SourceCodeEntity> - SourceRange fRange : SourceRange - end : int - start : int - fAssociatedNodes : List<Node>
    • Constructor Detail

      • ASTSignatureDeserializer

        public ASTSignatureDeserializer()
    • Method Detail

      • deserialize

        public Signature deserialize​(com.google.gson.JsonElement json,
                                     Type typeOfT,
                                     com.google.gson.JsonDeserializationContext context)
                              throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<Signature>
        Throws:
        com.google.gson.JsonParseException