public class Parser extends Object
| Constructor and Description |
|---|
Parser() |
| Modifier and Type | Method and Description |
|---|---|
Ast |
parse(byte[] serialized)
Parse from a byte array (containing utf-8 encoded string with the Python literal expression in it)
|
Ast |
parse(String expression)
Parse from a string with the Python literal expression
|
INode |
parseSingle(SeekableStringReader sr) |
static byte[] |
toBytes(Object obj)
Utility function to convert obj back to actual bytes if it is a serpent-encoded bytes dictionary
(a IDictionary with base-64 encoded 'data' in it and 'encoding'='base64').
|
public Ast parse(byte[] serialized) throws ParseException
ParseExceptionpublic INode parseSingle(SeekableStringReader sr)
public static byte[] toBytes(Object obj)
Copyright © 2017. All Rights Reserved.