本文整理了Java中org.eclipse.jdt.core.Signature.createIntersectionTypeSignature()
方法的一些代码示例,展示了Signature.createIntersectionTypeSignature()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Signature.createIntersectionTypeSignature()
方法的具体详情如下:
包路径:org.eclipse.jdt.core.Signature
类名称:Signature
方法名:createIntersectionTypeSignature
[英]Creates a new intersection type signature from the given type signatures.
The encoded type signature is dot-based.
[中]根据给定的类型签名创建新的交叉点类型签名。
编码的类型签名是基于点的。
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
/**
* Creates a new intersection type signature from the given type signatures.
*
* <p>The encoded type signature is dot-based.</p>
*
* @param typeSignatures the given type signatures
* @return the encoded type signature
* @since 3.7.1
*/
public static String createIntersectionTypeSignature(String[] typeSignatures) {
int typeSignaturesLenth = typeSignatures.length;
char[][] signatures = new char[typeSignaturesLenth][];
for (int i = 0; i < typeSignaturesLenth; i++) {
signatures[i] = typeSignatures[i].toCharArray();
}
return createIntersectionTypeSignature(signatures);
}
/**
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
/**
* Creates a new intersection type signature from the given type signatures.
*
* <p>The encoded type signature is dot-based.</p>
*
* @param typeSignatures the given type signatures
* @return the encoded type signature
* @since 3.7.1
*/
public static String createIntersectionTypeSignature(String[] typeSignatures) {
int typeSignaturesLenth = typeSignatures.length;
char[][] signatures = new char[typeSignaturesLenth][];
for (int i = 0; i < typeSignaturesLenth; i++) {
signatures[i] = typeSignatures[i].toCharArray();
}
return createIntersectionTypeSignature(signatures);
}
/**
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
/**
* Creates a new intersection type signature from the given type signatures.
*
* <p>The encoded type signature is dot-based.</p>
*
* @param typeSignatures the given type signatures
* @return the encoded type signature
* @since 3.7.1
*/
public static String createIntersectionTypeSignature(String[] typeSignatures) {
int typeSignaturesLenth = typeSignatures.length;
char[][] signatures = new char[typeSignaturesLenth][];
for (int i = 0; i < typeSignaturesLenth; i++) {
signatures[i] = typeSignatures[i].toCharArray();
}
return createIntersectionTypeSignature(signatures);
}
/**
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
/**
* Creates a new intersection type signature from the given type signatures.
*
* <p>The encoded type signature is dot-based.</p>
*
* @param typeSignatures the given type signatures
* @return the encoded type signature
* @since 3.7.1
*/
public static String createIntersectionTypeSignature(String[] typeSignatures) {
int typeSignaturesLenth = typeSignatures.length;
char[][] signatures = new char[typeSignaturesLenth][];
for (int i = 0; i < typeSignaturesLenth; i++) {
signatures[i] = typeSignatures[i].toCharArray();
}
return createIntersectionTypeSignature(signatures);
}
/**
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
/**
* Creates a new intersection type signature from the given type signatures.
*
* <p>The encoded type signature is dot-based.</p>
*
* @param typeSignatures the given type signatures
* @return the encoded type signature
* @since 3.7.1
*/
public static String createIntersectionTypeSignature(String[] typeSignatures) {
int typeSignaturesLenth = typeSignatures.length;
char[][] signatures = new char[typeSignaturesLenth][];
for (int i = 0; i < typeSignaturesLenth; i++) {
signatures[i] = typeSignatures[i].toCharArray();
}
return createIntersectionTypeSignature(signatures);
}
/**
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
public static String typeSignature(TypeReference type) {
String signature = null;
if ((type.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.IsUnionType) != 0) {
// special treatment for union type reference
UnionTypeReference unionTypeReference = (UnionTypeReference) type;
TypeReference[] typeReferences = unionTypeReference.typeReferences;
int length = typeReferences.length;
String[] typeSignatures = new String[length];
for(int i = 0; i < length; i++) {
char[][] compoundName = typeReferences[i].getParameterizedTypeName();
char[] typeName = CharOperation.concatWith(compoundName, '.');
typeSignatures[i] = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
signature = Signature.createIntersectionTypeSignature(typeSignatures);
} else {
char[][] compoundName = type.getParameterizedTypeName();
char[] typeName =CharOperation.concatWith(compoundName, '.');
signature = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
return signature;
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
public static String typeSignature(TypeReference type) {
String signature = null;
if ((type.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.IsUnionType) != 0) {
// special treatment for union type reference
UnionTypeReference unionTypeReference = (UnionTypeReference) type;
TypeReference[] typeReferences = unionTypeReference.typeReferences;
int length = typeReferences.length;
String[] typeSignatures = new String[length];
for(int i = 0; i < length; i++) {
char[][] compoundName = typeReferences[i].getParameterizedTypeName();
char[] typeName = CharOperation.concatWith(compoundName, '.');
typeSignatures[i] = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
signature = Signature.createIntersectionTypeSignature(typeSignatures);
} else {
char[][] compoundName = type.getParameterizedTypeName();
char[] typeName =CharOperation.concatWith(compoundName, '.');
signature = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
return signature;
}
代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps
public static String typeSignature(TypeReference type) {
String signature = null;
if ((type.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.IsUnionType) != 0) {
// special treatment for union type reference
UnionTypeReference unionTypeReference = (UnionTypeReference) type;
TypeReference[] typeReferences = unionTypeReference.typeReferences;
int length = typeReferences.length;
String[] typeSignatures = new String[length];
for(int i = 0; i < length; i++) {
char[][] compoundName = typeReferences[i].getParameterizedTypeName();
char[] typeName = CharOperation.concatWith(compoundName, '.');
typeSignatures[i] = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
signature = Signature.createIntersectionTypeSignature(typeSignatures);
} else {
char[][] compoundName = type.getParameterizedTypeName();
char[] typeName =CharOperation.concatWith(compoundName, '.');
signature = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
return signature;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public static String typeSignature(TypeReference type) {
String signature = null;
if ((type.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.IsUnionType) != 0) {
// special treatment for union type reference
UnionTypeReference unionTypeReference = (UnionTypeReference) type;
TypeReference[] typeReferences = unionTypeReference.typeReferences;
String[] typeSignatures = typeSignatures(typeReferences);
signature = Signature.createIntersectionTypeSignature(typeSignatures);
} else if (type instanceof IntersectionCastTypeReference) {
IntersectionCastTypeReference intersection = (IntersectionCastTypeReference) type;
TypeReference[] typeReferences = intersection.typeReferences;
String[] typeSignatures = typeSignatures(typeReferences);
signature = Signature.createUnionTypeSignature(typeSignatures);
} else {
char[][] compoundName = type.getParameterizedTypeName();
char[] typeName =CharOperation.concatWith(compoundName, '.');
signature = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
return signature;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
public static String typeSignature(TypeReference type) {
String signature = null;
if ((type.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.IsUnionType) != 0) {
// special treatment for union type reference
UnionTypeReference unionTypeReference = (UnionTypeReference) type;
TypeReference[] typeReferences = unionTypeReference.typeReferences;
int length = typeReferences.length;
String[] typeSignatures = new String[length];
for(int i = 0; i < length; i++) {
char[][] compoundName = typeReferences[i].getParameterizedTypeName();
char[] typeName = CharOperation.concatWith(compoundName, '.');
typeSignatures[i] = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
signature = Signature.createIntersectionTypeSignature(typeSignatures);
} else {
char[][] compoundName = type.getParameterizedTypeName();
char[] typeName =CharOperation.concatWith(compoundName, '.');
signature = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
return signature;
}
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
public static String typeSignature(TypeReference type) {
String signature = null;
if ((type.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.IsUnionType) != 0) {
// special treatment for union type reference
UnionTypeReference unionTypeReference = (UnionTypeReference) type;
TypeReference[] typeReferences = unionTypeReference.typeReferences;
int length = typeReferences.length;
String[] typeSignatures = new String[length];
for(int i = 0; i < length; i++) {
char[][] compoundName = typeReferences[i].getParameterizedTypeName();
char[] typeName = CharOperation.concatWith(compoundName, '.');
typeSignatures[i] = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
signature = Signature.createIntersectionTypeSignature(typeSignatures);
} else {
char[][] compoundName = type.getParameterizedTypeName();
char[] typeName =CharOperation.concatWith(compoundName, '.');
signature = Signature.createTypeSignature(typeName, false/*don't resolve*/);
}
return signature;
}
内容来源于网络,如有侵权,请联系作者删除!