com.thoughtworks.qdox.model.Type.isResolved()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中com.thoughtworks.qdox.model.Type.isResolved()方法的一些代码示例,展示了Type.isResolved()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Type.isResolved()方法的具体详情如下:
包路径:com.thoughtworks.qdox.model.Type
类名称:Type
方法名:isResolved

Type.isResolved介绍

[英]Checks if the FQN of this Type is resolved
[中]检查此类型的FQN是否已解析

代码示例

代码示例来源:origin: qdox/qdox

public String getValue() {
  return isResolved() ? fullName : name;
}

代码示例来源:origin: com.thoughtworks.qdox/qdox

/**
 * Returns the FQN of an Object or the handler of a Type
 * If the name of the can't be resolved based on the imports and the classes on the classpath the name will be returned
 * InnerClasses will use the $ sign
 * 
 * Some examples how names will be translated 
 * <pre>
 * Object > java.lang.Object
 * java.util.List > java.util.List
 * ?  > ?
 * T  > T
 * anypackage.Outer.Inner > anypackage.Outer$Inner
 * </pre>
 * 
 * @return
 */
public String getFullyQualifiedName() {
  
  return isResolved() ? fullName : name;
}

相关文章