本文整理了Java中org.yaml.snakeyaml.constructor.Constructor.constructObject()
方法的一些代码示例,展示了Constructor.constructObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Constructor.constructObject()
方法的具体详情如下:
包路径:org.yaml.snakeyaml.constructor.Constructor
类名称:Constructor
方法名:constructObject
暂无
代码示例来源:origin: redisson/redisson
private Object newInstance(TypeDescription memberDescription, String propertyName,
Node node) {
Object newInstance = memberDescription.newInstance(propertyName, node);
if (newInstance != null) {
constructedObjects.put(node, newInstance);
return constructObjectNoCheck(node);
}
return constructObject(node);
}
代码示例来源:origin: org.springframework.boot/spring-boot
@Override
protected Object constructObject(Node node) {
if (node instanceof ScalarNode) {
if (!(node instanceof KeyScalarNode)) {
return constructTrackedObject(node, super.constructObject(node));
}
}
else if (node instanceof MappingNode) {
replaceMappingNodeKeys((MappingNode) node);
}
return super.constructObject(node);
}
代码示例来源:origin: redisson/redisson
argumentList[index++] = constructObject(argumentNode);
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
private Object newInstance(TypeDescription memberDescription, String propertyName,
Node node) {
Object newInstance = memberDescription.newInstance(propertyName, node);
if (newInstance != null) {
constructedObjects.put(node, newInstance);
return constructObjectNoCheck(node);
}
return constructObject(node);
}
代码示例来源:origin: redisson/redisson
String key = (String) constructObject(keyNode);
try {
TypeDescription memberDescription = typeDefinitions.get(beanType);
: constructObject(valueNode);
代码示例来源:origin: com.buschmais.jqassistant.plugin/jqassistant.plugin.yaml
@Override
protected Object constructObject(Node node) {
Tag tag = node.getTag();
if (!SUPPORTED_TAGS.contains(tag)) {
node.setTag(Tag.STR);
}
return super.constructObject(node);
}
代码示例来源:origin: kubernetes-client/java
@Override
protected Object constructObject(Node node) {
if (node.getType() == IntOrString.class) {
return constructIntOrString((ScalarNode) node);
}
if (node.getType() == byte[].class) {
return constructByteArray((ScalarNode) node);
}
if (node.getType() == org.joda.time.DateTime.class) {
return constructDateTime((ScalarNode) node);
}
return super.constructObject(node);
}
代码示例来源:origin: io.kubernetes/client-java
@Override
protected Object constructObject(Node node) {
if (node.getType() == IntOrString.class) {
return constructIntOrString((ScalarNode) node);
}
if (node.getType() == byte[].class) {
return constructByteArray((ScalarNode) node);
}
if (node.getType() == org.joda.time.DateTime.class) {
return constructDateTime((ScalarNode) node);
}
return super.constructObject(node);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
argumentList[index++] = constructObject(argumentNode);
代码示例来源:origin: pl.droidsonroids.yaml/snakeyaml
argumentList[index++] = constructObject(argumentNode);
代码示例来源:origin: harbby/presto-connectors
argumentList[index++] = constructObject(argumentNode);
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
String key = (String) constructObject(keyNode);
try {
TypeDescription memberDescription = typeDefinitions.get(beanType);
: constructObject(valueNode);
代码示例来源:origin: harbby/presto-connectors
String key = (String) constructObject(keyNode);
try {
Property property = getProperty(beanType, key);
Object value = constructObject(valueNode);
代码示例来源:origin: pl.droidsonroids.yaml/snakeyaml
String key = (String) constructObject(keyNode);
try {
Property property = getProperty(beanType, key);
Object value = constructObject(valueNode);
内容来源于网络,如有侵权,请联系作者删除!