本文整理了Java中org.eclipse.jdt.core.Signature.getTypeParameters()
方法的一些代码示例,展示了Signature.getTypeParameters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Signature.getTypeParameters()
方法的具体详情如下:
包路径:org.eclipse.jdt.core.Signature
类名称:Signature
方法名:getTypeParameters
[英]Extracts the type parameter signatures from the given method or type signature. The method or type signature is expected to be dot-based.
[中]从给定的方法或类型签名中提取类型参数签名。方法或类型签名应基于点。
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
/**
* Extracts the type parameter signatures from the given method or type signature.
* The method or type signature is expected to be dot-based.
*
* @param methodOrTypeSignature the method or type signature
* @return the list of type parameter signatures
* @exception IllegalArgumentException if the signature is syntactically
* incorrect
*
* @since 3.1
*/
public static String[] getTypeParameters(String methodOrTypeSignature) throws IllegalArgumentException {
char[][] params = getTypeParameters(methodOrTypeSignature.toCharArray());
return CharOperation.toStrings(params);
}
/**
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
/**
* Extracts the type parameter signatures from the given method or type signature.
* The method or type signature is expected to be dot-based.
*
* @param methodOrTypeSignature the method or type signature
* @return the list of type parameter signatures
* @exception IllegalArgumentException if the signature is syntactically
* incorrect
*
* @since 3.1
*/
public static String[] getTypeParameters(String methodOrTypeSignature) throws IllegalArgumentException {
char[][] params = getTypeParameters(methodOrTypeSignature.toCharArray());
return CharOperation.toStrings(params);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
/**
* Extracts the type parameter signatures from the given method or type signature.
* The method or type signature is expected to be dot-based.
*
* @param methodOrTypeSignature the method or type signature
* @return the list of type parameter signatures
* @exception IllegalArgumentException if the signature is syntactically
* incorrect
*
* @since 3.1
*/
public static String[] getTypeParameters(String methodOrTypeSignature) throws IllegalArgumentException {
char[][] params = getTypeParameters(methodOrTypeSignature.toCharArray());
return CharOperation.toStrings(params);
}
/**
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
/**
* Extracts the type parameter signatures from the given method or type signature.
* The method or type signature is expected to be dot-based.
*
* @param methodOrTypeSignature the method or type signature
* @return the list of type parameter signatures
* @exception IllegalArgumentException if the signature is syntactically
* incorrect
*
* @since 3.1
*/
public static String[] getTypeParameters(String methodOrTypeSignature) throws IllegalArgumentException {
char[][] params = getTypeParameters(methodOrTypeSignature.toCharArray());
return CharOperation.toStrings(params);
}
/**
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
/**
* Extracts the type parameter signatures from the given method or type signature.
* The method or type signature is expected to be dot-based.
*
* @param methodOrTypeSignature the method or type signature
* @return the list of type parameter signatures
* @exception IllegalArgumentException if the signature is syntactically
* incorrect
*
* @since 3.1
*/
public static String[] getTypeParameters(String methodOrTypeSignature) throws IllegalArgumentException {
char[][] params = getTypeParameters(methodOrTypeSignature.toCharArray());
return CharOperation.toStrings(params);
}
/**
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
/**
* Extracts the type parameter signatures from the given method or type signature.
* The method or type signature is expected to be dot-based.
*
* @param methodOrTypeSignature the method or type signature
* @return the list of type parameter signatures
* @exception IllegalArgumentException if the signature is syntactically
* incorrect
*
* @since 3.1
*/
public static String[] getTypeParameters(String methodOrTypeSignature) throws IllegalArgumentException {
char[][] params = getTypeParameters(methodOrTypeSignature.toCharArray());
return CharOperation.toStrings(params);
}
/**
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools
/**
* Returns the display-able representation of the given signature and
* generic signature
*
* @param signature
* @param genericsignature
* @param qualified
* @return
*/
public static String getTypeSignature(String signature, String genericsignature, boolean qualified) {
StringBuilder buffer = new StringBuilder();
String sig = signature.replace('/', '.');
if (qualified == false) {
sig = dequalifySignature(sig);
}
buffer.append(Signature.toString(sig.replace('$', '.')));
if (genericsignature != null) {
appendTypeParameters(buffer, Signature.getTypeParameters(genericsignature.replace('/', '.')));
}
return buffer.toString();
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
char[][] typeParameterSignatures = Signature.getTypeParameters(signature);
for (int i = 0, typeParameterCount = typeParameterSignatures.length; i < typeParameterCount; i++) {
char[] typeParameterSignature = typeParameterSignatures[i];
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
/**
* @see IType#getTypeParameterSignatures()
* @since 3.0
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryType info = (IBinaryType) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBaseSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBaseSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
/**
* @see IType#getTypeParameterSignatures()
* @since 3.0
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryType info = (IBinaryType) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBaseSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBaseSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
/**
* @see IType#getTypeParameterSignatures()
* @since 3.0
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryType info = (IBinaryType) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBaseSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBaseSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
/**
* @see IType#getTypeParameterSignatures()
* @since 3.0
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryType info = (IBinaryType) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBaseSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBaseSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
/**
* @see IMethod#getTypeParameterSignatures()
* @since 3.0
* @deprecated
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryMethod info = (IBinaryMethod) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBasedSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBasedSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
/**
* @see IType#getTypeParameterSignatures()
* @since 3.0
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryType info = (IBinaryType) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBaseSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBaseSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
/**
* @see IType#getTypeParameterSignatures()
* @since 3.0
*/
@Override
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryType info = (IBinaryType) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBaseSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBaseSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
/**
* @see IMethod#getTypeParameterSignatures()
* @since 3.0
* @deprecated
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryMethod info = (IBinaryMethod) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBasedSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBasedSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
/**
* @see IMethod#getTypeParameterSignatures()
* @since 3.0
* @deprecated
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryMethod info = (IBinaryMethod) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBasedSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBasedSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
/**
* @see IMethod#getTypeParameterSignatures()
* @since 3.0
* @deprecated
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryMethod info = (IBinaryMethod) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBasedSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBasedSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
/**
* @see IMethod#getTypeParameterSignatures()
* @since 3.0
* @deprecated
*/
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryMethod info = (IBinaryMethod) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBasedSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBasedSignature);
return CharOperation.toStrings(typeParams);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
/**
* @see IMethod#getTypeParameterSignatures()
* @since 3.0
* @deprecated
*/
@Override
public String[] getTypeParameterSignatures() throws JavaModelException {
IBinaryMethod info = (IBinaryMethod) getElementInfo();
char[] genericSignature = info.getGenericSignature();
if (genericSignature == null)
return CharOperation.NO_STRINGS;
char[] dotBasedSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
char[][] typeParams = Signature.getTypeParameters(dotBasedSignature);
return CharOperation.toStrings(typeParams);
}
内容来源于网络,如有侵权,请联系作者删除!