本文整理了Java中com.thoughtworks.qdox.model.Type.<init>()
方法的一些代码示例,展示了Type.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Type.<init>()
方法的具体详情如下:
包路径:com.thoughtworks.qdox.model.Type
类名称:Type
方法名:<init>
暂无
代码示例来源:origin: com.thoughtworks.qdox/qdox
public static Type createUnresolved(TypeDef typeDef, int dimensions, JavaClassParent context) {
return new Type(null, typeDef, dimensions, context);
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public static Type createUnresolved(String name, int dimensions, JavaClassParent context) {
return new Type(null, name, dimensions, context);
}
代码示例来源:origin: qdox/qdox
public static Type createUnresolved(String name, int dimensions, JavaClassParent context) {
return new Type(null, name, dimensions, context);
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public static Type createUnresolved(TypeDef typeDef, JavaClassParent context) {
if(typeDef instanceof WildcardTypeDef) {
return new WildcardType((WildcardTypeDef) typeDef, context);
}
return new Type(null, typeDef, 0, context);
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
public Type asType() {
if (type == null) {
type = new Type(getFullyQualifiedName(), 0, this);
}
return type;
}
代码示例来源:origin: qdox/qdox
public Type asType() {
if (type == null) {
type = new Type(getFullyQualifiedName(), 0, this);
}
return type;
}
代码示例来源:origin: qdox/qdox
/**
* @since 1.3
*/
public boolean isA(String fullClassName) {
Type type = new Type(fullClassName, 0, this);
return asType().isA(type);
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
/**
* @since 1.3
*/
public boolean isA(String fullClassName) {
Type type = new Type(fullClassName, 0, this);
return asType().isA(type);
}
代码示例来源:origin: org.codehaus.mojo.groovy.runtime/groovy-runtime-1.1
private Type makeType(final AST typeNode) {
AST node = typeNode.getFirstChild();
Type type = OBJECT;
if (node != null) {
if (isType(INDEX_OP, node)) {
type = new Type(qualifiedName(node.getFirstChild()), 1);
}
else if (isType(ARRAY_DECLARATOR, node)) {
type = new Type(qualifiedName(node.getFirstChild()), 1);
}
else {
String name = qualifiedName(node);
if (name.equals("void")) {
type = Type.VOID;
}
else {
type = new Type(name);
}
}
}
return type;
}
代码示例来源:origin: org.codehaus.mojo.groovy.runtime/groovy-runtime-1.1
private void throwsList(final AST node, final List list) {
String name;
if (isType(DOT, node)) {
name = qualifiedName(node);
}
else {
name = identifier(node);
}
list.add(new Type(name));
AST next = node.getNextSibling();
if (next != null) {
throwsList(next, list);
}
}
代码示例来源:origin: tarun3kumar/seleniumtestsframework
protected String getJavadocComments(final ITestNGMethod method) {
try {
final Method m = method.getConstructorOrMethod().getMethod();
final String javaClass = m.getDeclaringClass().getName();
final String javaMethod = m.getName();
final JavaClass jc = getJavaDocBuilder(m.getDeclaringClass()).getClassByName(javaClass);
final Class<?>[] types = method.getConstructorOrMethod().getMethod().getParameterTypes();
final Type[] qdoxTypes = new Type[types.length];
for (int i = 0; i < types.length; i++) {
final String type = getType(types[i]);
final int dim = getDim(types[i]);
qdoxTypes[i] = new Type(type, dim);
}
final JavaMethod jm = jc.getMethodBySignature(javaMethod, qdoxTypes);
return jm.getComment();
} catch (final Throwable e) {
logger.error("Exception loading the javadoc comments for : " + method.getMethodName() + e);
return null;
}
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
/**
*
* @param resolve
* @param callingClass
* @return
* @since 1.12
*/
protected Type getReturnType ( boolean resolve, JavaClass callingClass) {
Type result = null;
if (getReturns() != null) {
result = getReturns().resolve( this.getParentClass(), callingClass );
//According to java-specs, if it could be resolved the upper boundary, so Object, should be returned
if ( !resolve && !returns.getFullyQualifiedName().equals( result.getFullyQualifiedName() ) )
{
result = new Type( "java.lang.Object" );
}
}
return result;
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
protected Type[] getParameterTypes ( boolean resolve, JavaClass callingClass) {
Type[] result = new Type[getParameters().length];
for (int paramIndex = 0; paramIndex < getParameters().length; paramIndex++ )
{
Type curType = getParameters()[paramIndex].getType().resolve( this.getParentClass(), callingClass );
//According to java-specs, if it could be resolved the upper boundary, so Object, should be returned
if ( !resolve && returns != null && !returns.getFullyQualifiedName().equals( curType.getFullyQualifiedName() ) )
{
result[paramIndex] = new Type( "java.lang.Object" );
}
else {
result[paramIndex] = curType;
}
}
return result;
}
}
代码示例来源:origin: com.thoughtworks.qdox/qdox
result = new Type( this.fullName, this.name, this.dimensions, this.context );
内容来源于网络,如有侵权,请联系作者删除!