1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

add javadoc

This commit is contained in:
Andrew Ferguson 2006-11-23 16:36:01 +00:00
parent 0bfec5774b
commit d4dc19649e

View file

@ -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 &lt; string
* <li> 0 if this == string
* <li> 1 if this &gt; 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 &lt; string
* <li> 0 if this == string
* <li> 1 if this &gt; 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 &lt; chars
* <li> 0 if this == chars
* <li> 1 if this &gt; 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;
}