本文整理了Java中com.thoughtworks.qdox.model.Type.getJavaClass()
方法的一些代码示例,展示了Type.getJavaClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Type.getJavaClass()
方法的具体详情如下:
包路径:com.thoughtworks.qdox.model.Type
类名称:Type
方法名:getJavaClass
暂无
代码示例来源:origin: qdox/qdox
/**
* @since 1.3
*/
public JavaClass[] getImplementedInterfaces() {
Type[] type = getImplements();
JavaClass[] result = new JavaClass[type.length];
for (int i = 0; i < result.length; i++) {
result[i] = type[i].getJavaClass();
}
return result;
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public Object visitAnnotationTypeRef( AnnotationTypeRef typeRef ) {
JavaClass javaClass = typeRef.getType().getJavaClass();
return javaClass;
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
/**
* @since 1.3
*/
public JavaClass[] getImplementedInterfaces() {
Type[] type = getImplements();
JavaClass[] result = new JavaClass[type.length];
for (int i = 0; i < result.length; i++) {
result[i] = type[i].getJavaClass();
}
return result;
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
/**
* Shorthand for getSuperClass().getJavaClass() with null checking.
*/
public JavaClass getSuperJavaClass() {
if (getSuperClass() != null) {
return getSuperClass().getJavaClass();
} else {
return null;
}
}
代码示例来源:origin: qdox/qdox
/**
* Shorthand for getSuperClass().getJavaClass() with null checking.
*/
public JavaClass getSuperJavaClass() {
if (getSuperClass() != null) {
return getSuperClass().getJavaClass();
} else {
return null;
}
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public Object visitAnnotationCast( AnnotationCast annotationCast ) {
Object value = annotationCast.getValue().accept( this );
String type = annotationCast.getType().getJavaClass().getFullyQualifiedName();
Object result;
代码示例来源:origin: com.thoughtworks.qdox/qdox
protected JavaField resolveField( JavaClass javaClass, int start, int end ) {
JavaField field = null;
for( int i = start; i < end; ++i ) {
field = javaClass.getFieldByName( getNamePart( i ) );
if( field == null ) {
break;
}
javaClass = field.getType().getJavaClass();
}
return field;
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
/**
* @since 1.3
*/
public boolean isA(Type type) {
if (this.equals(type)) {
return true;
} else {
JavaClass javaClass = getJavaClass();
if (javaClass != null) {
// ask our interfaces
Type[] implementz = javaClass.getImplements();
for (int i = 0; i < implementz.length; i++) {
if (implementz[i].isA(type)) {
return true;
}
}
// ask our superclass
Type supertype = javaClass.getSuperClass();
if (supertype != null) {
if (supertype.isA(type)) {
return true;
}
}
}
}
// We'we walked up the hierarchy and found nothing.
return false;
}
代码示例来源:origin: qdox/qdox
/**
* @since 1.3
*/
public boolean isA(Type type) {
if (this.equals(type)) {
return true;
} else {
JavaClass javaClass = getJavaClass();
if (javaClass != null) {
// ask our interfaces
Type[] implementz = javaClass.getImplements();
for (int i = 0; i < implementz.length; i++) {
if (implementz[i].isA(type)) {
return true;
}
}
// ask our superclass
Type supertype = javaClass.getSuperClass();
if (supertype != null) {
if (supertype.isA(type)) {
return true;
}
}
}
}
// We'we walked up the hierarchy and found nothing.
return false;
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
JavaClass javaClass = type.getJavaClass();
代码示例来源:origin: apache/fop
JavaParameter p = params[j];
Class<?> type;
JavaClass pClass = p.getType().getJavaClass();
if (p.getType().isPrimitive()) {
type = PRIMITIVE_MAP.get(pClass.getName());
if (exceptions != null && exceptions.length > 0) {
JavaClass cl = exceptions[0].getJavaClass();
methodMeta.setExceptionClass(cl.getFullyQualifiedName());
代码示例来源:origin: plexus/plexus-cdc
String requirementClass = field.getType().getJavaClass().getFullyQualifiedName();
内容来源于网络,如有侵权,请联系作者删除!