Interface ISymbolDeSer<S extends ISymbol,J>
- Type Parameters:
S- The kind of the symbol to serializeJ- The language-specific Symbols2Json Class for traversing the Symbol table
- All Known Implementing Classes:
SymbolWithScopeOfUnknownKindDeSer
public interface ISymbolDeSer<S extends ISymbol,J>
Interface that all symbol DeSers implement to provide uniform serialize and
deserialize methods. This is required to handle DeSers in the global scopes.
A DeSer class realizes the serialization strategy for a specific type T.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Sdeserialize(IScope enclosingScope, JsonObject serialized) Deserialize a passed Json Object to an instance of the type T with the specified enclosing scopedefault Sdeserialize(IScope enclosingScope, String serialized) Deserialize a passed String to an instance of the type T with the specified enclosing scopedeserialize(JsonObject serialized) Deserialize a passed Json Object to an instance of the type Tdefault Sdeserialize(String serialized) Deserialize a passed String to an instance of the type Tserialize a passed object to a String that is returned.
-
Method Details
-
serialize
serialize a passed object to a String that is returned.- Parameters:
toSerialize-symbol2json-- Returns:
-
deserialize
Deserialize a passed String to an instance of the type T with the specified enclosing scope- Parameters:
serialized-- Returns:
-
deserialize
Deserialize a passed String to an instance of the type T- Parameters:
serialized-- Returns:
-
deserialize
Deserialize a passed Json Object to an instance of the type T with the specified enclosing scope- Parameters:
enclosingScope-serialized-- Returns:
-
deserialize
Deserialize a passed Json Object to an instance of the type T- Parameters:
serialized-- Returns:
-
getSerializedKind
String getSerializedKind()
-