Java 类jdk.nashorn.internal.ir.debug.JSONWriter 实例源码

项目:OpenJSharp    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted(), code, name, includeLoc);
}
项目:openjdk-jdk10    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted(), code, name, includeLoc);
}
项目:openjdk9    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted(), code, name, includeLoc);
}
项目:kaziranga    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted(), code, name, includeLoc);
}
项目:lookaside_java-1.8.0-openjdk    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted(), code, name, includeLoc);
}
项目:jdk8u_nashorn    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted(), code, name, includeLoc);
}
项目:infobip-open-jdk-8    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted(), code, name, includeLoc);
}
项目:OLD-OpenJDK8    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted().getEnv(), code, name, includeLoc);
}
项目:nashorn-backport    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted().getEnv(), code, name, includeLoc);
}
项目:nashorn    文件:ScriptRuntime.java   
/**
 * Returns AST as JSON compatible string. This is used to
 * implement "parse" function in resources/parse.js script.
 *
 * @param code code to be parsed
 * @param name name of the code source (used for location)
 * @param includeLoc tells whether to include location information for nodes or not
 * @return JSON string representation of AST of the supplied code
 */
public static String parse(final String code, final String name, final boolean includeLoc) {
    return JSONWriter.parse(Context.getContextTrusted().getEnv(), code, name, includeLoc);
}