mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
add javadoc
This commit is contained in:
parent
0bfec5774b
commit
d4dc19649e
1 changed files with 53 additions and 3 deletions
|
@ -20,17 +20,67 @@ import org.eclipse.core.runtime.CoreException;
|
|||
* @author Doug Schaefer
|
||||
*/
|
||||
public interface IString {
|
||||
|
||||
/**
|
||||
* Get the offset of this IString record in the PDOM
|
||||
* @return
|
||||
*/
|
||||
public int getRecord();
|
||||
|
||||
// strcmp equivalents
|
||||
/**
|
||||
* Compare this IString record and the specified IString record
|
||||
* @param chars
|
||||
* @return <ul><li> -1 if this < string
|
||||
* <li> 0 if this == string
|
||||
* <li> 1 if this > string
|
||||
* </ul>
|
||||
* @throws CoreException
|
||||
*/
|
||||
public int compare(IString string) throws CoreException;
|
||||
|
||||
/**
|
||||
* Compare this IString record and the specified String object
|
||||
* @param chars
|
||||
* @return <ul><li> -1 if this < string
|
||||
* <li> 0 if this == string
|
||||
* <li> 1 if this > string
|
||||
* </ul>
|
||||
* @throws CoreException
|
||||
*/
|
||||
public int compare(String string) throws CoreException;
|
||||
|
||||
/**
|
||||
* Compare this IString record and the specified character array
|
||||
* @param chars
|
||||
* @return <ul><li> -1 if this < chars
|
||||
* <li> 0 if this == chars
|
||||
* <li> 1 if this > chars
|
||||
* </ul>
|
||||
* @throws CoreException
|
||||
*/
|
||||
public int compare(char[] chars) throws CoreException;
|
||||
|
||||
// use sparingly, these can be expensive
|
||||
|
||||
/**
|
||||
* Get an equivalent character array to this IString record<p>
|
||||
* <b>N.B. This method can be expensive: compare and equals can be used for
|
||||
* efficient comparisons</b>
|
||||
* @return an equivalent character array to this IString record
|
||||
* @throws CoreException
|
||||
*/
|
||||
public char[] getChars() throws CoreException;
|
||||
|
||||
/**
|
||||
* Get an equivalent String object to this IString record<p>
|
||||
* <b>N.B. This method can be expensive: compare and equals can be used for
|
||||
* efficient comparisons</b>
|
||||
* @return an equivalent String object to this IString record
|
||||
* @throws CoreException
|
||||
*/
|
||||
public String getString() throws CoreException;
|
||||
|
||||
/**
|
||||
* Free the associated record in the PDOM
|
||||
* @throws CoreException
|
||||
*/
|
||||
public void delete() throws CoreException;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue