public class BLangFragmentParser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ERROR |
static String |
SYNTAX_ERRORS |
Constructor and Description |
---|
BLangFragmentParser() |
Modifier and Type | Method and Description |
---|---|
protected static String |
getFromTemplate(String template,
String source) |
protected static com.google.gson.JsonElement |
getJsonModel(String source) |
protected static com.google.gson.JsonObject |
getJsonNodeForFragment(com.google.gson.JsonObject jsonModel,
BLangSourceFragment fragment) |
protected static String |
getParsableString(BLangSourceFragment sourceFragment) |
static String |
parseFragment(BLangSourceFragment sourceFragment) |
public static final String SYNTAX_ERRORS
public static final String ERROR
public static String parseFragment(BLangSourceFragment sourceFragment)
protected static com.google.gson.JsonObject getJsonNodeForFragment(com.google.gson.JsonObject jsonModel, BLangSourceFragment fragment)
protected static com.google.gson.JsonElement getJsonModel(String source) throws IOException
IOException
protected static String getParsableString(BLangSourceFragment sourceFragment)
Copyright © 2018 WSO2. All rights reserved.