Class ASTSignatureChangeDeserializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.deser.NullValueProvider, Serializable

    public class ASTSignatureChangeDeserializer
    extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<SignatureChange>
    JSON representation of ASTSignatureChange: public class ASTSignatureChange extends DistillerUtil implements SignatureChange public class ASTConstructBodySignature extends ASTSignature public abstract class ASTSignature extends Node implements Signature SourceCodeChange 1. private ChangeType fChangeType = ChangeType.UNCLASSIFIED_CHANGE; //Structure entity in which the change operation happened, e.g., attribute, class, or method. 2. private StructureEntityVersion fRootEntity; 3. private SourceCodeEntity fChangedEntity; - 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 //Source code entity that becomes the parent entity when the change is applied. 4. private SourceCodeEntity fParentEntity; public class ASTSignatureChange{ private ChangeType changeType; private StructureEntityVersion StructureEntityVersion; private SourceCodeEntity changedEntity; private SourceCodeEntity r } A Source code change has this JSON object format { "changeType" : " ", "StructureEntityVersion" : { "EntityType" : "", "UniqueName" : "", "Modifiers" : "", // might be discarded, int "Version " : "" }, "changedEntity" : { "UniqueName" : "", "EntityType " : "", "Modifiers" : "", // might be discarded, int "SourceRange" : { "start" : "", "end" : "" } } , "parentEntity" : { "UniqueName" : "", "EntityType " : "", "Modifiers" : "", // might be discarded, int "SourceRange" : { "start" : "", "end" : "" } } }
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        com.fasterxml.jackson.databind.JsonDeserializer.None
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer

        _valueClass, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SignatureChange deserialize​(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt)
      • Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer

        _byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, deserializeWithType, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
      • Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        deserialize, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializer
    • Constructor Detail

      • ASTSignatureChangeDeserializer

        public ASTSignatureChangeDeserializer()

        Constructor for ASTSignatureChangeDeserializer.

      • ASTSignatureChangeDeserializer

        public ASTSignatureChangeDeserializer​(Class<SignatureChange> t)

        Constructor for ASTSignatureChangeDeserializer.

        Parameters:
        t - a Class object.
    • Method Detail

      • deserialize

        public SignatureChange deserialize​(com.fasterxml.jackson.core.JsonParser p,
                                           com.fasterxml.jackson.databind.DeserializationContext ctxt)
                                    throws IOException,
                                           com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<SignatureChange>
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException