本文整理了Java中com.thoughtworks.qdox.model.Type.getValue()
方法的一些代码示例,展示了Type.getValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Type.getValue()
方法的具体详情如下:
包路径:com.thoughtworks.qdox.model.Type
类名称:Type
方法名:getValue
[英]The FQN representation of an Object for code usage This implementation ignores generics Some examples how Objects will be translated
Object > java.lang.object
java.util.List > java.util.List
? > ?
T > T
anypackage.Outer.Inner > anypackage.Outer.Inner
[中]用于代码使用的对象的FQN表示此实现忽略泛型一些示例对象将如何翻译
Object > java.lang.object
java.util.List > java.util.List
? > ?
T > T
anypackage.Outer.Inner > anypackage.Outer.Inner
代码示例来源:origin: com.thoughtworks.qdox/qdox
public Object getParameterValue() {
return type.getValue() + ".class";
}
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public String getName() {
return super.getValue();
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public String toString() {
return type.getValue() + ".class";
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public String getValue() {
return (bounds == null || bounds.length == 0 ? "" : bounds[0].getValue());
}
代码示例来源:origin: qdox/qdox
/**
* @see java.lang.Comparable#compareTo(Object)
*/
public int compareTo(Object o) {
if (!(o instanceof Type))
return 0;
return getValue().compareTo(((Type) o).getValue());
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
/**
* @see java.lang.Comparable#compareTo(Object)
*/
public int compareTo(Object o) {
if (!(o instanceof Type))
return 0;
return getValue().compareTo(((Type) o).getValue());
}
代码示例来源:origin: qdox/qdox
/**
* @since 1.6
*/
public boolean isVoid() {
return "void".equals(getValue());
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
/**
* @since 1.6
*/
public boolean isVoid() {
return "void".equals(getValue());
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
/**
* Returns getValue() extended with the array information
*
* @return
*/
public String toString() {
if (dimensions == 0) return getValue();
StringBuffer buff = new StringBuffer(getValue());
for (int i = 0; i < dimensions; i++) buff.append("[]");
String result = buff.toString();
return result;
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public String toString() {
return "(" + type.getValue() + ") " + value.toString();
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public int hashCode() {
return getValue().hashCode();
}
代码示例来源:origin: qdox/qdox
public String toString() {
if (dimensions == 0) return getValue();
StringBuffer buff = new StringBuffer(getValue());
for (int i = 0; i < dimensions; i++) buff.append("[]");
String result = buff.toString();
return result;
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
protected String getResolvedValue(TypeVariable[] typeParameters) {
String result = getValue();
for(int typeIndex=0;typeIndex<typeParameters.length; typeIndex++) {
if(typeParameters[typeIndex].getName().equals(getValue())) {
result = typeParameters[typeIndex].getValue();
break;
}
}
return result;
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public String toString() {
StringBuffer result = new StringBuffer();
result.append('@');
result.append(type.getValue());
result.append('(');
if( !namedParameters.isEmpty() ) {
for(Iterator i = namedParameters.entrySet().iterator(); i.hasNext();) result.append( i.next() + ",");
result.deleteCharAt( result.length()-1 );
}
result.append(')');
return result.toString();
}
}
代码示例来源:origin: qdox/qdox
public boolean equals(Object obj) {
if (obj == null) return false;
Type t = (Type) obj;
return getValue().equals(t.getValue()) && t.getDimensions() == getDimensions();
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public boolean equals(Object obj) {
if (obj == null) return false;
Type t = (Type) obj;
return getValue().equals(t.getValue()) && t.getDimensions() == getDimensions();
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public Object getParameterValue() {
return "(" + type.getValue() + ") " + value.getParameterValue();
}
代码示例来源:origin: org.apache.xbean/xbean-spring
private org.apache.xbean.spring.generator.Type toMappingType(Type type, String nestedType) {
try {
if (type.isArray()) {
return org.apache.xbean.spring.generator.Type.newArrayType(type.getValue(), type.getDimensions());
} else if (type.isA(collectionType)) {
if (nestedType == null) nestedType = "java.lang.Object";
return org.apache.xbean.spring.generator.Type.newCollectionType(type.getValue(),
org.apache.xbean.spring.generator.Type.newSimpleType(nestedType));
}
} catch (Throwable t) {
log.debug("Could not load type mapping", t);
}
return org.apache.xbean.spring.generator.Type.newSimpleType(type.getValue());
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
protected String getResolvedGenericValue(TypeVariable[] typeParameters) {
String result = getGenericValue(typeParameters);
for(int typeIndex=0;typeIndex<typeParameters.length; typeIndex++) {
if(typeParameters[typeIndex].getName().equals(getValue())) {
result = typeParameters[typeIndex].getGenericValue();
break;
}
}
return result;
}
代码示例来源:origin: qdox/qdox
public JavaClass getJavaClass() {
JavaClassParent javaClassParent = getJavaClassParent();
if (javaClassParent == null) {
return null;
}
ClassLibrary classLibrary = javaClassParent.getClassLibrary();
if (classLibrary == null) {
return null;
}
return classLibrary.getClassByName(getValue());
}
内容来源于网络,如有侵权,请联系作者删除!