Class EmptyString
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.db.EmptyString
- All Implemented Interfaces:
IString
Represents an empty string.
-
Method Summary
Modifier and TypeMethodDescriptionintcompare(char[] chars, boolean caseSensitive)Compare this IString record and the specified character arrayintCompare this IString record and the specified String objectintCompare this IString record and the specified IString recordintcompareCompatibleWithIgnoreCase(char[] chars)Compare this IString record and the specified char array in a case sensitive manner such that it is compatible with case insensitive comparison.intcompareCompatibleWithIgnoreCase(IString string)Compare this IString record and the specified IString record in a case sensitive manner such that it is compatible with case insensitive comparison.intcomparePrefix(char[] name, boolean caseSensitive)Compare this IString record and the specified character arraystatic EmptyStringcreate()voiddelete()Free the associated record in the Ndchar[]getChars()Get an equivalent character array to this IString recordlongGet the offset of this IString record in the NdGet an equivalent String object to this IString recordintlength()
-
Method Details
-
create
-
getRecord
public long getRecord()Description copied from interface:IStringGet the offset of this IString record in the Nd -
compare
Description copied from interface:IStringCompare this IString record and the specified IString record -
compare
Description copied from interface:IStringCompare this IString record and the specified String object -
compare
public int compare(char[] chars, boolean caseSensitive)Description copied from interface:IStringCompare this IString record and the specified character array -
compareCompatibleWithIgnoreCase
Description copied from interface:IStringCompare this IString record and the specified IString record in a case sensitive manner such that it is compatible with case insensitive comparison.- Specified by:
compareCompatibleWithIgnoreCasein interfaceIString- Returns:
- -1 if this < string
- 0 if this == string
- 1 if this > string
-
compareCompatibleWithIgnoreCase
public int compareCompatibleWithIgnoreCase(char[] chars)Description copied from interface:IStringCompare this IString record and the specified char array in a case sensitive manner such that it is compatible with case insensitive comparison.- Specified by:
compareCompatibleWithIgnoreCasein interfaceIString- Returns:
- -1 if this < string
- 0 if this == string
- 1 if this > string
-
comparePrefix
public int comparePrefix(char[] name, boolean caseSensitive)Description copied from interface:IStringCompare this IString record and the specified character array- Specified by:
comparePrefixin interfaceIString- Parameters:
name- the name to compare tocaseSensitive- whether to compare in a case-sensitive way- Returns:
- -1 if this < chars
- 0 if this has a prefix chars
- 1 if this > chars and does not have the prefix
-
getChars
public char[] getChars()Description copied from interface:IStringGet an equivalent character array to this IString recordN.B. This method can be expensive: compare and equals can be used for efficient comparisons
-
getString
Description copied from interface:IStringGet an equivalent String object to this IString recordN.B. This method can be expensive: compare and equals can be used for efficient comparisons
-
delete
public void delete()Description copied from interface:IStringFree the associated record in the Nd -
length
public int length()
-