当前位置: 首页>>代码示例>>Java>>正文


Java Composer.getSingleNode方法代码示例

本文整理汇总了Java中org.yaml.snakeyaml.composer.Composer.getSingleNode方法的典型用法代码示例。如果您正苦于以下问题:Java Composer.getSingleNode方法的具体用法?Java Composer.getSingleNode怎么用?Java Composer.getSingleNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.yaml.snakeyaml.composer.Composer的用法示例。


在下文中一共展示了Composer.getSingleNode方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: compose

import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
public Node compose(StreamReader yaml) {
    Composer composer = new Composer(new ParserImpl(yaml), resolver);
    constructor.setComposer(composer);
    return composer.getSingleNode();
}
 
开发者ID:wtetzner,项目名称:kurgan,代码行数:6,代码来源:YamlUtils.java

示例2: compose

import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
/**
 * Parse the first YAML document in a stream and produce the corresponding
 * representation tree. (This is the opposite of the represent() method)
 *
 * @param yaml
 *         YAML document
 *
 * @return parsed root Node for the specified YAML document
 *
 * @see <a href="http://yaml.org/spec/1.1/#id859333">Figure 3.1. Processing Overview</a>
 */
public Node compose(Reader yaml)
{
    Composer composer = new Composer(new ParserImpl(new StreamReader(yaml)), this.resolver);
    this.constructor.setComposer(composer);
    return composer.getSingleNode();
}
 
开发者ID:GotoFinal,项目名称:diorite-configs-java8,代码行数:18,代码来源:Yaml.java

示例3: compose

import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
/**
 * Parse the first YAML document in a stream and produce the corresponding
 * representation tree. (This is the opposite of the represent() method)
 * 
 * @see <a href="http://yaml.org/spec/1.1/#id859333">Figure 3.1. Processing
 *      Overview</a>
 * @param yaml
 *            YAML document
 * @return parsed root Node for the specified YAML document
 */
public Node compose(Reader yaml) {
    Composer composer = new Composer(new ParserImpl(new StreamReader(yaml)), resolver);
    constructor.setComposer(composer);
    return composer.getSingleNode();
}
 
开发者ID:imkiva,项目名称:AndroidApktool,代码行数:16,代码来源:Yaml.java

示例4: compose

import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
/**
 * Parse the first YAML document in a stream and produce the corresponding
 * representation tree. (This is the opposite of the represent() method)
 *
 * @see <a href="http://yaml.org/spec/1.1/#id859333">Figure 3.1. Processing
 *      Overview</a>
 * @param yaml
 *            YAML document
 * @return parsed root Node for the specified YAML document
 */
public Node compose(Reader yaml) {
    Composer composer = new Composer(new ParserImpl(new StreamReader(yaml)), resolver);
    constructor.setComposer(composer);
    return composer.getSingleNode();
}
 
开发者ID:RoccoDev,项目名称:5zig-TIMV-Plugin,代码行数:16,代码来源:Yaml.java

示例5: compose

import org.yaml.snakeyaml.composer.Composer; //导入方法依赖的package包/类
/**
 * Parse the first YAML document in a stream and produce the corresponding representation tree. (This is the opposite of the represent()
 * method)
 * 
 * @see <a href="http://yaml.org/spec/1.1/#id859333">Figure 3.1. Processing Overview</a>
 * @param yaml
 *            YAML document
 * @return parsed root Node for the specified YAML document
 */
public Node compose(final Reader yaml) {
	Composer composer = new Composer(new ParserImpl(new StreamReader(yaml)), resolver);
	constructor.setComposer(composer);
	return composer.getSingleNode();
}
 
开发者ID:OpenNTF,项目名称:org.openntf.domino,代码行数:15,代码来源:Yaml.java


注:本文中的org.yaml.snakeyaml.composer.Composer.getSingleNode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。