Java Code Examples for com.sun.javadoc.Type#dimension()
The following examples show how to use
com.sun.javadoc.Type#dimension() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RemoteClass.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Computes the string representation of this method * appropriate for the construction of a * java.rmi.server.Operation object. **/ private String computeOperationString() { /* * To be consistent with previous implementations, we use * the deprecated style of placing the "[]" for the return * type (if any) after the parameter list. */ Type returnType = methodDoc.returnType(); String op = returnType.qualifiedTypeName() + " " + methodDoc.name() + "("; Parameter[] parameters = methodDoc.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { op += ", "; } op += parameters[i].type().toString(); } op += ")" + returnType.dimension(); return op; }
Example 2
Source File: RemoteClass.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Computes the string representation of this method * appropriate for the construction of a * java.rmi.server.Operation object. **/ private String computeOperationString() { /* * To be consistent with previous implementations, we use * the deprecated style of placing the "[]" for the return * type (if any) after the parameter list. */ Type returnType = methodDoc.returnType(); String op = returnType.qualifiedTypeName() + " " + methodDoc.name() + "("; Parameter[] parameters = methodDoc.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { op += ", "; } op += parameters[i].type().toString(); } op += ")" + returnType.dimension(); return op; }
Example 3
Source File: RemoteClass.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Computes the string representation of this method * appropriate for the construction of a * java.rmi.server.Operation object. **/ private String computeOperationString() { /* * To be consistent with previous implementations, we use * the deprecated style of placing the "[]" for the return * type (if any) after the parameter list. */ Type returnType = methodDoc.returnType(); String op = returnType.qualifiedTypeName() + " " + methodDoc.name() + "("; Parameter[] parameters = methodDoc.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { op += ", "; } op += parameters[i].type().toString(); } op += ")" + returnType.dimension(); return op; }
Example 4
Source File: RemoteClass.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Computes the string representation of this method * appropriate for the construction of a * java.rmi.server.Operation object. **/ private String computeOperationString() { /* * To be consistent with previous implementations, we use * the deprecated style of placing the "[]" for the return * type (if any) after the parameter list. */ Type returnType = methodDoc.returnType(); String op = returnType.qualifiedTypeName() + " " + methodDoc.name() + "("; Parameter[] parameters = methodDoc.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { op += ", "; } op += parameters[i].type().toString(); } op += ")" + returnType.dimension(); return op; }
Example 5
Source File: RemoteClass.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Computes the string representation of this method * appropriate for the construction of a * java.rmi.server.Operation object. **/ private String computeOperationString() { /* * To be consistent with previous implementations, we use * the deprecated style of placing the "[]" for the return * type (if any) after the parameter list. */ Type returnType = methodDoc.returnType(); String op = returnType.qualifiedTypeName() + " " + methodDoc.name() + "("; Parameter[] parameters = methodDoc.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { op += ", "; } op += parameters[i].type().toString(); } op += ")" + returnType.dimension(); return op; }
Example 6
Source File: Parser.java From xml-doclet with Apache License 2.0 | 6 votes |
protected TypeInfo parseTypeInfo(Type type) { TypeInfo typeInfoNode = objectFactory.createTypeInfo(); typeInfoNode.setQualified(type.qualifiedTypeName()); String dimension = type.dimension(); if (dimension.length() > 0) { typeInfoNode.setDimension(dimension); } WildcardType wildcard = type.asWildcardType(); if (wildcard != null) { typeInfoNode.setWildcard(parseWildcard(wildcard)); } ParameterizedType parameterized = type.asParameterizedType(); if (parameterized != null) { for (Type typeArgument : parameterized.typeArguments()) { typeInfoNode.getGeneric().add(parseTypeInfo(typeArgument)); } } return typeInfoNode; }
Example 7
Source File: RemoteClass.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Computes the string representation of this method * appropriate for the construction of a * java.rmi.server.Operation object. **/ private String computeOperationString() { /* * To be consistent with previous implementations, we use * the deprecated style of placing the "[]" for the return * type (if any) after the parameter list. */ Type returnType = methodDoc.returnType(); String op = returnType.qualifiedTypeName() + " " + methodDoc.name() + "("; Parameter[] parameters = methodDoc.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { op += ", "; } op += parameters[i].type().toString(); } op += ")" + returnType.dimension(); return op; }
Example 8
Source File: Util.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 9
Source File: Util.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 10
Source File: Util.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 11
Source File: Util.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 12
Source File: Util.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 13
Source File: Util.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 14
Source File: Util.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 15
Source File: Util.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 16
Source File: Util.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 17
Source File: Util.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 18
Source File: Util.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 19
Source File: Util.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }
Example 20
Source File: Util.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns a reader-friendly string representation of the * specified method's signature. Names of reference types are not * package-qualified. **/ static String getFriendlyUnqualifiedSignature(MethodDoc method) { String sig = method.name() + "("; Parameter[] parameters = method.parameters(); for (int i = 0; i < parameters.length; i++) { if (i > 0) { sig += ", "; } Type paramType = parameters[i].type(); sig += paramType.typeName() + paramType.dimension(); } sig += ")"; return sig; }