Class ASTSignatureDeserializer
- java.lang.Object
-
- org.eclipse.steady.java.sign.gson.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 Summary
Constructors Constructor Description ASTSignatureDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Signaturedeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
-
-
-
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:
deserializein interfacecom.google.gson.JsonDeserializer<Signature>- Throws:
com.google.gson.JsonParseException
-
-