public class Util
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Util.BindingsToNodesMap |
static interface |
Util.Comparable |
static interface |
Util.Comparer |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
arrayConcat(java.lang.String[] first,
java.lang.String second)
Returns a new array adding the second array at the end of first array.
|
static int |
combineHashCodes(int hashCode1,
int hashCode2)
Combines two hash codes to make a new one.
|
static int |
compare(byte[] a,
byte[] b)
Compares two byte arrays.
|
static int |
compare(char[] str1,
char[] str2)
Compares two strings lexicographically.
|
static char[] |
concatCompoundNameToCharArray(java.lang.String[] compoundName)
Concatenate a String[] compound name to a continuous char[].
|
static java.lang.String |
concatenateName(java.lang.String name1,
java.lang.String name2,
char separator) |
static java.lang.String |
concatWith(java.lang.String[] array,
char separator)
Returns the concatenation of the given array parts using the given separator between each part.
|
static java.lang.String |
concatWith(java.lang.String[] array,
java.lang.String name,
char separator)
Returns the concatenation of the given array parts using the given separator between each
part and appending the given name at the end.
|
static java.lang.String |
convertTypeSignature(char[] sig,
int start,
int length)
Converts a type signature from the IBinaryType representation to the DC representation.
|
static java.lang.String |
defaultJavaExtension() |
static java.lang.String |
editedString(java.lang.String original,
TextEdit edit)
Apply the given edit on the given string and return the updated string.
|
static boolean |
endsWithIgnoreCase(java.lang.String str,
java.lang.String end)
Returns true iff str.toLowerCase().endsWith(end.toLowerCase())
implementation is not creating extra strings.
|
static boolean |
equalArrays(java.lang.Object[] a,
java.lang.Object[] b,
int len)
Compares two arrays using equals() on the elements.
|
static boolean |
equalArraysOrNull(int[] a,
int[] b)
Compares two arrays using equals() on the elements.
|
static boolean |
equalArraysOrNull(java.lang.Object[] a,
java.lang.Object[] b)
Compares two arrays using equals() on the elements.
|
static boolean |
equalArraysOrNullSortFirst(java.lang.String[] a,
java.lang.String[] b)
Compares two String arrays using equals() on the elements.
|
static boolean |
equalArraysOrNullSortFirst(Util.Comparable[] a,
Util.Comparable[] b)
Compares two arrays using equals() on the elements.
|
static boolean |
equalOrNull(java.lang.Object a,
java.lang.Object b)
Compares two objects using equals().
|
static boolean |
equalsIgnoreJavaLikeExtension(java.lang.String fileName,
java.lang.String string) |
static java.lang.String |
extractLastName(java.lang.String qualifiedName)
Given a qualified name, extract the last component.
|
static java.lang.String[] |
extractParameterTypes(char[] sig)
Extracts the parameter types from a method signature.
|
static java.lang.String |
extractReturnType(java.lang.String sig)
Extracts the return type from a method signature.
|
static java.lang.String |
findLineSeparator(char[] text)
Finds the first line separator used by the given text.
|
static IMethod |
findMethod(IType type,
char[] selector,
java.lang.String[] paramTypeSignatures,
boolean isConstructor)
Finds the IMethod element corresponding to the given selector,
without creating a new dummy instance of a binary method.
|
static void |
fixTaskTags(java.util.Map defaultOptionsMap) |
static char[][][] |
getAllTypeArguments(char[][] typeSignatures)
Get all type arguments from an array of signatures.
|
static IAnnotation |
getAnnotation(JavaElement parent,
IBinaryAnnotation binaryAnnotation,
java.lang.String memberValuePairName) |
static java.lang.Object |
getAnnotationMemberValue(JavaElement parent,
MemberValuePair memberValuePair,
java.lang.Object binaryValue) |
static java.lang.Object |
getAnnotationMemberValue(MemberValuePair memberValuePair,
Constant constant) |
static IClassFileAttribute |
getAttribute(IClassFileReader classFileReader,
char[] attributeName) |
static IClassFileAttribute |
getAttribute(ICodeAttribute codeAttribute,
char[] attributeName) |
static IClassFileAttribute |
getAttribute(IComponentInfo componentInfo,
char[] attributeName) |
static IClassFileAttribute |
getAttribute(IFieldInfo fieldInfo,
char[] attributeName) |
static IClassFileAttribute |
getAttribute(IMethodInfo methodInfo,
char[] attributeName) |
static java.lang.String |
getDeclaringTypeSignature(java.lang.String key) |
static char[][] |
getJavaLikeExtensions()
Returns the registered Java like extensions.
|
static long |
getJdkLevel(java.lang.Object targetLibrary)
Get the jdk level of this root.
|
static java.lang.String |
getLineSeparator(java.lang.String text,
IJavaProject project)
Returns the line separator found in the given text.
|
static java.lang.String |
getNameWithoutJavaLikeExtension(java.lang.String fileName)
Returns the substring of the given file name, ending at the start of a
Java like extension.
|
static java.lang.Object |
getNegativeAnnotationMemberValue(MemberValuePair memberValuePair,
Constant constant) |
static IPackageFragment |
getPackageFragment(char[] fileName,
int pkgEnd,
int jarSeparator) |
static int |
getParameterCount(char[] sig)
Returns the number of parameter types in a method signature.
|
static java.lang.String |
getProblemArgumentsForMarker(java.lang.String[] arguments)
Put all the arguments in one String.
|
static java.lang.String[] |
getProblemArgumentsFromMarker(java.lang.String argumentsString)
Separate all the arguments of a String made by getProblemArgumentsForMarker
|
static byte[] |
getResourceContentsAsByteArray(IFile file)
Returns the given file's contents as a byte array.
|
static char[] |
getResourceContentsAsCharArray(IFile file)
Returns the given file's contents as a character array.
|
static char[] |
getResourceContentsAsCharArray(IFile file,
java.lang.String encoding) |
static java.lang.String |
getSignature(Type type) |
static java.lang.String |
getSourceAttachmentProperty(IPath path) |
static java.lang.String[] |
getTrimmedSimpleNames(java.lang.String name)
Returns a trimmed version the simples names returned by Signature.
|
static JavaElement |
getUnresolvedJavaElement(FieldBinding binding,
WorkingCopyOwner workingCopyOwner,
Util.BindingsToNodesMap bindingsToNodes)
Return the java element corresponding to the given compiler binding.
|
static JavaElement |
getUnresolvedJavaElement(int localSourceStart,
int localSourceEnd,
JavaElement type)
Returns the IInitializer that contains the given local variable in the given type
|
static JavaElement |
getUnresolvedJavaElement(MethodBinding methodBinding,
WorkingCopyOwner workingCopyOwner,
Util.BindingsToNodesMap bindingsToNodes)
Return the java element corresponding to the given compiler binding.
|
static JavaElement |
getUnresolvedJavaElement(TypeBinding typeBinding,
WorkingCopyOwner workingCopyOwner,
Util.BindingsToNodesMap bindingsToNodes)
Return the java element corresponding to the given compiler binding.
|
static int |
indexOfEnclosingPath(IPath checkedPath,
IPath[] paths,
int pathCount) |
static int |
indexOfJavaLikeExtension(java.lang.String fileName) |
static int |
indexOfMatchingPath(IPath checkedPath,
IPath[] paths,
int pathCount) |
static int |
indexOfNestedPath(IPath checkedPath,
IPath[] paths,
int pathCount) |
protected static boolean |
isAttributeSupported(int attribute)
Returns whether the local file system supports accessing and modifying
the given attribute.
|
static boolean |
isExcluded(IJavaElement element) |
static boolean |
isExcluded(IPath resourcePath,
char[][] inclusionPatterns,
char[][] exclusionPatterns,
boolean isFolderPath) |
static boolean |
isExcluded(IResource resource,
char[][] inclusionPatterns,
char[][] exclusionPatterns) |
static boolean |
isJavaLikeFileName(char[] fileName)
Returns true if the given name ends with one of the known java like extension.
|
static boolean |
isJavaLikeFileName(java.lang.String name)
Returns true if the given name ends with one of the known java like extension.
|
static boolean |
isReadOnly(IResource resource)
Returns whether the given resource is read-only or not.
|
static boolean |
isReadOnlySupported()
Returns whether the local file system supports accessing and modifying
the read only flag.
|
static boolean |
isValidClassFileName(java.lang.String name,
java.lang.String sourceLevel,
java.lang.String complianceLevel)
Validate the given .class file name.
|
static boolean |
isValidCompilationUnitName(java.lang.String name,
java.lang.String sourceLevel,
java.lang.String complianceLevel)
Validate the given compilation unit name.
|
static boolean |
isValidFolderNameForPackage(java.lang.String folderName,
java.lang.String sourceLevel,
java.lang.String complianceLevel)
Returns true if the given folder name is valid for a package,
false if it is not.
|
static boolean |
isValidMethodSignature(java.lang.String sig)
Returns true if the given method signature is valid,
false if it is not.
|
static boolean |
isValidTypeSignature(java.lang.String sig,
boolean allowVoid)
Returns true if the given type signature is valid,
false if it is not.
|
static java.lang.String |
localTypeName(java.lang.String binaryTypeName,
int lastDollar,
int end) |
static void |
log(int statusErrorID,
java.lang.String message) |
static void |
log(IStatus status) |
static void |
log(java.lang.Throwable e,
java.lang.String message) |
static void |
logRepeatedMessage(java.lang.String key,
java.lang.Exception e)
Log a message that is potentially repeated in the same session.
|
static void |
logRepeatedMessage(java.lang.String key,
int statusErrorID,
java.lang.String message) |
static ClassFileReader |
newClassFileReader(IResource resource) |
static char[] |
normalizeCRs(char[] text,
char[] buffer)
Normalizes the cariage returns in the given text.
|
static java.lang.String |
normalizeCRs(java.lang.String text,
java.lang.String buffer)
Normalizes the carriage returns in the given text.
|
static java.lang.String |
packageName(IPath pkgPath,
java.lang.String sourceLevel,
java.lang.String complianceLevel)
Converts the given relative path into a package name.
|
static int |
prefixLength(char[] s1,
char[] s2)
Returns the length of the common prefix between s1 and s2.
|
static int |
prefixLength(java.lang.String s1,
java.lang.String s2)
Returns the length of the common prefix between s1 and s2.
|
static java.lang.String |
relativePath(IPath fullPath,
int skipSegmentCount)
Returns the toString() of the given full path minus the first given number of segments.
|
static void |
resetJavaLikeExtensions() |
static int |
scanTypeSignature(char[] string,
int start)
Scans the given string for a type signature starting at the given index
and returns the index of the last character.
|
static void |
setReadOnly(IResource resource,
boolean readOnly)
Sets or unsets the given resource as read-only in the file system.
|
static void |
setSourceAttachmentProperty(IPath path,
java.lang.String property) |
static void |
sort(char[][] list) |
static void |
sort(int[] list) |
static void |
sort(java.lang.Object[] objects,
Util.Comparer comparer)
Sorts an array of objects in place.
|
static void |
sort(java.lang.String[] strings)
Sorts an array of strings in place using quicksort.
|
static void |
sort(Util.Comparable[] objects)
Sorts an array of Comparable objects in place.
|
static IJavaElement[] |
sortCopy(IJavaElement[] elements)
Sorts an array of Java elements based on their toStringWithAncestors(),
returning a new array with the sorted items.
|
static java.lang.Object[] |
sortCopy(java.lang.Object[] objects,
Util.Comparer comparer)
Sorts an array of Strings, returning a new array
with the sorted items.
|
static java.lang.String[] |
sortCopy(java.lang.String[] objects)
Sorts an array of Strings, returning a new array
with the sorted items.
|
static Util.Comparable[] |
sortCopy(Util.Comparable[] objects)
Sorts an array of Comparable objects, returning a new array
with the sorted items.
|
static java.lang.String[] |
splitOn(char divider,
java.lang.String string,
int start,
int end)
Return a new array which is the split of the given string using the given divider.
|
static char[][] |
splitTypeLevelsSignature(java.lang.String typeSignature)
Split signatures of all levels from a type unique key.
|
static boolean |
startsWithIgnoreCase(java.lang.String[] compoundName,
java.lang.String[] prefix,
boolean partialMatch) |
static char[] |
toAnchor(int startingIndex,
char[] methodSignature,
char[] methodName,
boolean isVargArgs) |
static java.lang.String |
toAnchor(int startingIndex,
char[] methodSignature,
java.lang.String methodName,
boolean isVarArgs) |
static char[][] |
toCharArrays(java.lang.String[] a)
Converts a String[] to char[][].
|
static char[][] |
toCompoundChars(java.lang.String s)
Converts a String to char[][], where segments are separate by '.'.
|
static java.io.File |
toLocalFile(java.net.URI uri,
IProgressMonitor monitor) |
static java.lang.String |
toString(char[][] c)
Converts a char[][] to String, where segments are separated by '.'.
|
static java.lang.String |
toString(char[][] c,
char[] d)
Converts a char[][] and a char[] to String, where segments are separated by '.'.
|
static java.lang.String |
toString(char[] declaringClass,
char[] methodName,
char[] methodSignature,
boolean includeReturnType,
boolean compact) |
static java.lang.String[] |
toStrings(char[][] a) |
static java.lang.String[] |
typeParameterSignatures(AbstractMethodDeclaration method) |
static java.lang.String |
typeSignature(TypeReference type) |
static void |
validateMethodSignature(java.lang.String sig)
Asserts that the given method signature is valid.
|
static void |
validateTypeSignature(java.lang.String sig,
boolean allowVoid)
Asserts that the given type signature is valid.
|
static void |
verbose(java.lang.String log) |
static void |
verbose(java.lang.String log,
java.io.PrintStream printStream) |
public static final java.lang.String[] arrayConcat(java.lang.String[] first,
java.lang.String second)
first = null
second = "a"
=> result = {"a"}
first = {"a"}
second = null
=> result = {"a"}
first = {"a"}
second = {"b"}
=> result = {"a", "b"}
first - the first array to concatenatesecond - the array to add at the end of the first arraypublic static int combineHashCodes(int hashCode1,
int hashCode2)
public static int compare(byte[] a,
byte[] b)
public static int compare(char[] str1,
char[] str2)
0 if the str1 is equal to str2;
a value less than 0 if str1
is lexicographically less than str2;
and a value greater than 0 if str1 is
lexicographically greater than str2.public static char[] concatCompoundNameToCharArray(java.lang.String[] compoundName)
public static java.lang.String concatenateName(java.lang.String name1,
java.lang.String name2,
char separator)
public static final java.lang.String concatWith(java.lang.String[] array,
char separator)
array = {"a", "b"}
separator = '.'
=> result = "a.b"
array = {}
separator = '.'
=> result = ""
array - the given arrayseparator - the given separatorpublic static final java.lang.String concatWith(java.lang.String[] array,
java.lang.String name,
char separator)
name = "c"
array = { "a", "b" }
separator = '.'
=> result = "a.b.c"
name = null
array = { "a", "b" }
separator = '.'
=> result = "a.b"
name = " c"
array = null
separator = '.'
=> result = "c"
array - the given arrayname - the given nameseparator - the given separatorpublic static java.lang.String convertTypeSignature(char[] sig,
int start,
int length)
public static java.lang.String defaultJavaExtension()
public static final java.lang.String editedString(java.lang.String original,
TextEdit edit)
original - the given stringedit - the given editpublic static final boolean endsWithIgnoreCase(java.lang.String str,
java.lang.String end)
public static boolean equalArrays(java.lang.Object[] a,
java.lang.Object[] b,
int len)
public static boolean equalArraysOrNull(int[] a,
int[] b)
public static boolean equalArraysOrNull(java.lang.Object[] a,
java.lang.Object[] b)
public static boolean equalArraysOrNullSortFirst(Util.Comparable[] a, Util.Comparable[] b)
public static boolean equalArraysOrNullSortFirst(java.lang.String[] a,
java.lang.String[] b)
public static boolean equalOrNull(java.lang.Object a,
java.lang.Object b)
public static boolean equalsIgnoreJavaLikeExtension(java.lang.String fileName,
java.lang.String string)
public static java.lang.String extractLastName(java.lang.String qualifiedName)
public static java.lang.String[] extractParameterTypes(char[] sig)
public static java.lang.String extractReturnType(java.lang.String sig)
public static java.lang.String findLineSeparator(char[] text)
null if none foundpublic static IClassFileAttribute getAttribute(IClassFileReader classFileReader, char[] attributeName)
public static IClassFileAttribute getAttribute(ICodeAttribute codeAttribute, char[] attributeName)
public static IClassFileAttribute getAttribute(IFieldInfo fieldInfo, char[] attributeName)
public static IClassFileAttribute getAttribute(IComponentInfo componentInfo, char[] attributeName)
public static IClassFileAttribute getAttribute(IMethodInfo methodInfo, char[] attributeName)
public static char[][] getJavaLikeExtensions()
public static long getJdkLevel(java.lang.Object targetLibrary)
0 if the root is a source package fragment root or if a Java model exception occuredpublic static java.lang.String getNameWithoutJavaLikeExtension(java.lang.String fileName)
public static java.lang.String getLineSeparator(java.lang.String text,
IJavaProject project)
public static IPackageFragment getPackageFragment(char[] fileName, int pkgEnd, int jarSeparator)
public static int getParameterCount(char[] sig)
public static java.lang.String getProblemArgumentsForMarker(java.lang.String[] arguments)
public static java.lang.String[] getProblemArgumentsFromMarker(java.lang.String argumentsString)
public static byte[] getResourceContentsAsByteArray(IFile file)
throws JavaModelException
JavaModelExceptionpublic static char[] getResourceContentsAsCharArray(IFile file)
throws JavaModelException
JavaModelExceptionpublic static char[] getResourceContentsAsCharArray(IFile file,
java.lang.String encoding)
throws JavaModelException
JavaModelExceptionpublic static java.lang.String getSignature(Type type)
public static java.lang.String getSourceAttachmentProperty(IPath path)
throws JavaModelException
JavaModelExceptionpublic static void setSourceAttachmentProperty(IPath path,
java.lang.String property)
public static java.lang.String getDeclaringTypeSignature(java.lang.String key)
public static java.lang.String[] getTrimmedSimpleNames(java.lang.String name)
public static JavaElement getUnresolvedJavaElement(FieldBinding binding, WorkingCopyOwner workingCopyOwner, Util.BindingsToNodesMap bindingsToNodes)
public static JavaElement getUnresolvedJavaElement(int localSourceStart, int localSourceEnd, JavaElement type)
public static JavaElement getUnresolvedJavaElement(MethodBinding methodBinding, WorkingCopyOwner workingCopyOwner, Util.BindingsToNodesMap bindingsToNodes)
public static JavaElement getUnresolvedJavaElement(TypeBinding typeBinding, WorkingCopyOwner workingCopyOwner, Util.BindingsToNodesMap bindingsToNodes)
public static int indexOfEnclosingPath(IPath checkedPath,
IPath[] paths,
int pathCount)
public static int indexOfJavaLikeExtension(java.lang.String fileName)
public static int indexOfMatchingPath(IPath checkedPath,
IPath[] paths,
int pathCount)
public static int indexOfNestedPath(IPath checkedPath,
IPath[] paths,
int pathCount)
protected static boolean isAttributeSupported(int attribute)
public static boolean isReadOnly(IResource resource)
resource - true if the resource is read-only, false if it is not or
if the file system does not support the read-only attribute.public static boolean isReadOnlySupported()
public static final boolean isExcluded(IJavaElement element)
public static final boolean isExcluded(IPath resourcePath,
char[][] inclusionPatterns,
char[][] exclusionPatterns,
boolean isFolderPath)
public static final boolean isExcluded(IResource resource,
char[][] inclusionPatterns,
char[][] exclusionPatterns)
public static boolean isValidClassFileName(java.lang.String name,
java.lang.String sourceLevel,
java.lang.String complianceLevel)
".class" suffix
name - the name of a .class filesourceLevel - the source levelcomplianceLevel - the compliance levelIStatus.OK if
the given name is valid as a .class file name, otherwise a status
object indicating what is wrong with the namepublic static boolean isValidCompilationUnitName(java.lang.String name,
java.lang.String sourceLevel,
java.lang.String complianceLevel)
".java" suffix
name - the name of a compilation unitsourceLevel - the source levelcomplianceLevel - the compliance levelIStatus.OK if
the given name is valid as a compilation unit name, otherwise a status
object indicating what is wrong with the namepublic static boolean isValidFolderNameForPackage(java.lang.String folderName,
java.lang.String sourceLevel,
java.lang.String complianceLevel)
folderName - the name of the foldersourceLevel - the source levelcomplianceLevel - the compliance levelpublic static boolean isValidMethodSignature(java.lang.String sig)
public static boolean isValidTypeSignature(java.lang.String sig,
boolean allowVoid)
public static java.lang.String localTypeName(java.lang.String binaryTypeName,
int lastDollar,
int end)
public static void log(java.lang.Throwable e,
java.lang.String message)
public static void logRepeatedMessage(java.lang.String key,
java.lang.Exception e)
Only intended for use in debug statements.
key - the given keye - the given exceptionjava.lang.IllegalArgumentException - if the given key is nullpublic static void logRepeatedMessage(java.lang.String key,
int statusErrorID,
java.lang.String message)
public static void log(int statusErrorID,
java.lang.String message)
public static void log(IStatus status)
public static ClassFileReader newClassFileReader(IResource resource) throws CoreException, ClassFormatException, java.io.IOException
CoreExceptionClassFormatExceptionjava.io.IOExceptionpublic static char[] normalizeCRs(char[] text,
char[] buffer)
public static java.lang.String normalizeCRs(java.lang.String text,
java.lang.String buffer)
public static java.lang.String packageName(IPath pkgPath,
java.lang.String sourceLevel,
java.lang.String complianceLevel)
pkgPath - the package pathsourceLevel - the source levelcomplianceLevel - the compliance levelpublic static int prefixLength(char[] s1,
char[] s2)
public static int prefixLength(java.lang.String s1,
java.lang.String s2)
public static java.lang.String relativePath(IPath fullPath,
int skipSegmentCount)
public static void resetJavaLikeExtensions()
public static int scanTypeSignature(char[] string,
int start)
TypeSignature: | BaseTypeSignature | ArrayTypeSignature | ClassTypeSignature | TypeVariableSignature
string - the signature stringstart - the 0-based character index of the first characterjava.lang.IllegalArgumentException - if this is not a type signaturepublic static final java.lang.String[] splitOn(char divider,
java.lang.String string,
int start,
int end)
divider = 'b'
string = "abbaba"
start = 2
end = 5
result => { "", "a", "" }
divider - the given dividerstring - the given stringstart - the given starting indexend - the given ending indexjava.lang.ArrayIndexOutOfBoundsException - if start is lower than 0 or end is greater than the array lengthpublic static void setReadOnly(IResource resource,
boolean readOnly)
resource - The resource to set as read-onlyreadOnly - true to set it to read-only,
false to unsetpublic static void sort(char[][] list)
public static void sort(Util.Comparable[] objects)
public static void sort(int[] list)
public static void sort(java.lang.Object[] objects,
Util.Comparer comparer)
public static void sort(java.lang.String[] strings)
public static Util.Comparable[] sortCopy(Util.Comparable[] objects)
public static IJavaElement[] sortCopy(IJavaElement[] elements)
public static java.lang.Object[] sortCopy(java.lang.Object[] objects,
Util.Comparer comparer)
public static java.lang.String[] sortCopy(java.lang.String[] objects)
public static boolean startsWithIgnoreCase(java.lang.String[] compoundName,
java.lang.String[] prefix,
boolean partialMatch)
public static char[][] toCharArrays(java.lang.String[] a)
public static char[][] toCompoundChars(java.lang.String s)
public static java.io.File toLocalFile(java.net.URI uri,
IProgressMonitor monitor)
throws CoreException
CoreExceptionpublic static java.lang.String toString(char[][] c)
public static java.lang.String toString(char[][] c,
char[] d)
public static java.lang.String[] toStrings(char[][] a)
public static java.lang.String toString(char[] declaringClass,
char[] methodName,
char[] methodSignature,
boolean includeReturnType,
boolean compact)
public static java.lang.String[] typeParameterSignatures(AbstractMethodDeclaration method)
public static java.lang.String typeSignature(TypeReference type)
public static void validateMethodSignature(java.lang.String sig)
public static void validateTypeSignature(java.lang.String sig,
boolean allowVoid)
public static void verbose(java.lang.String log)
public static void verbose(java.lang.String log,
java.io.PrintStream printStream)
public static final boolean isJavaLikeFileName(java.lang.String name)
public static final boolean isJavaLikeFileName(char[] fileName)
public static final char[][][] getAllTypeArguments(char[][] typeSignatures)
typeSignatures - Array of signatures (one per each type levels)java.lang.IllegalArgumentException - If one of provided signature is malformedThen, this method returns:
[
[
['L','Y','<','L','Z',';'>',';'],
['L','V','<','L','W',';'>',';'],
['L','U',';']
],
[
['L','B',';']
]
]public static IAnnotation getAnnotation(JavaElement parent, IBinaryAnnotation binaryAnnotation, java.lang.String memberValuePairName)
public static java.lang.Object getAnnotationMemberValue(JavaElement parent, MemberValuePair memberValuePair, java.lang.Object binaryValue)
public static java.lang.Object getAnnotationMemberValue(MemberValuePair memberValuePair, Constant constant)
public static java.lang.Object getNegativeAnnotationMemberValue(MemberValuePair memberValuePair, Constant constant)
public static final char[][] splitTypeLevelsSignature(java.lang.String typeSignature)
typeSignature - ParameterizedSourceType type signaturepublic static java.lang.String toAnchor(int startingIndex,
char[] methodSignature,
java.lang.String methodName,
boolean isVarArgs)
public static char[] toAnchor(int startingIndex,
char[] methodSignature,
char[] methodName,
boolean isVargArgs)
public static void fixTaskTags(java.util.Map defaultOptionsMap)
public static IMethod findMethod(IType type, char[] selector, java.lang.String[] paramTypeSignatures, boolean isConstructor) throws JavaModelException
type - the type in which the method is declaredselector - the method nameparamTypeSignatures - the type signatures of the method argumentsisConstructor - whether we're looking for a constructorJavaModelException