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

cleanup: JavaDoc warnings a bunch

This commit is contained in:
Andrew Gvozdev 2010-02-17 17:28:29 +00:00
parent ac2be6bb2b
commit e59e5d549d

View file

@ -39,14 +39,14 @@ public interface IOption extends IBuildObject {
/** /**
* String list of library search paths <br/> * String list of library search paths <br/>
* This option type is persisted / referenced by the name * This option type is persisted / referenced by the name
* {@link IOption #TYPE_LIB_PATHS} * {@link IOption#TYPE_LIB_PATHS}
*/ */
public static final int LIBRARY_PATHS = 9; public static final int LIBRARY_PATHS = 9;
/** /**
* String list of absolute path to libraries. * String list of absolute path to libraries.
* Not currently used by the GNU integration <br/> * Not currently used by the GNU integration <br/>
* This option type is persisted / referenced by the name 'libFiles' * This option type is persisted / referenced by the name 'libFiles'
* {@link IOption #TYPE_LIB_FILES} * {@link IOption#TYPE_LIB_FILES}
*/ */
public static final int LIBRARY_FILES = 10; public static final int LIBRARY_FILES = 10;
public static final int MACRO_FILES = 11; public static final int MACRO_FILES = 11;
@ -117,61 +117,51 @@ public interface IOption extends IBuildObject {
public static final String LIST_ITEM_BUILTIN = "builtIn"; //$NON-NLS-1$ public static final String LIST_ITEM_BUILTIN = "builtIn"; //$NON-NLS-1$
/** /**
* Returns the parent of this option. This is an object implementing ITool * @return the parent of this option. This is an object implementing ITool
* or IToolChain. * or IToolChain.
* *
* @return IBuildObject
* @since 3.0 - changed return type from ITool to IBuildObject. The method returns * @since 3.0 - changed return type from ITool to IBuildObject. The method returns
* the same object as getOptionHolder(). It is included as a convenience for clients. * the same object as getOptionHolder(). It is included as a convenience for clients.
*/ */
public IBuildObject getParent(); public IBuildObject getParent();
/** /**
* Returns the holder (parent) of this option. This may be an object * @return the holder (parent) of this option. This may be an object
* implenting ITool or IToolChain, which both extend IHoldsOptions * implementing ITool or IToolChain, which both extend IHoldsOptions
* *
* @return IHoldsOptions
* @since 3.0 * @since 3.0
*/ */
public IHoldsOptions getOptionHolder(); public IHoldsOptions getOptionHolder();
/** /**
* Returns the <code>IOption</code> that is the superclass of this * @return the <code>IOption</code> that is the superclass of this
* option, or <code>null</code> if the attribute was not specified. * option, or <code>null</code> if the attribute was not specified.
*
* @return IOption
*/ */
public IOption getSuperClass(); public IOption getSuperClass();
/** /**
* If this option is defined as an enumeration, this function returns * @return If this option is defined as an enumeration, this function returns
* the list of possible values for that enum. * the list of possible values for that enum.
* *
* If this option is not defined as an enumeration, it returns <code>null</code>. * If this option is not defined as an enumeration, it returns <code>null</code>.
*
* @return String []
*/ */
public String [] getApplicableValues(); public String [] getApplicableValues();
/** /**
* Answers the value for a boolean option. * @return the value for a boolean option.
*
* @return boolean
* @throws BuildException * @throws BuildException
*/ */
public boolean getBooleanValue() throws BuildException; public boolean getBooleanValue() throws BuildException;
/** /**
* Returns the setting of the browseType attribute * @return the setting of the browseType attribute
*
* @return int
*/ */
public int getBrowseType(); public int getBrowseType();
/** /**
* Sets the browseType attribute. * Sets the browseType attribute.
* *
* @param int * @param type - browseType attribute
*/ */
public void setBrowseType(int type); public void setBrowseType(int type);
@ -190,16 +180,14 @@ public interface IOption extends IBuildObject {
public void setBrowseFilterExtensions(String[] extensions); public void setBrowseFilterExtensions(String[] extensions);
/** /**
* Returns the setting of the resourceFilter attribute * @return the setting of the resourceFilter attribute
*
* @return int
*/ */
public int getResourceFilter(); public int getResourceFilter();
/** /**
* Sets the resourceFilter attribute. * Sets the resourceFilter attribute.
* *
* @param int * @param filter - resourceFilter attribute
*/ */
public void setResourceFilter(int filter); public void setResourceFilter(int filter);
@ -210,34 +198,27 @@ public interface IOption extends IBuildObject {
public IOptionApplicability getApplicabilityCalculator(); public IOptionApplicability getApplicabilityCalculator();
/** /**
* Answers an array of strings containing the built-in values * @return an array of strings containing the built-in values
* defined for a stringList, includePaths, definedSymbols, or libs * defined for a stringList, includePaths, definedSymbols, or libs
* option. If none have been defined, the array will be empty but * option. If none have been defined, the array will be empty but
* never <code>null</code>. * never <code>null</code>.
*
* @return String[]
*/ */
public String[] getBuiltIns(); public String[] getBuiltIns();
/** /**
* Returns the category for this option. * @return the category for this option.
*
* @return IOptionCategory
*/ */
public IOptionCategory getCategory(); public IOptionCategory getCategory();
/** /**
* Sets the category for this option. * Sets the category for this option.
* * @param category
* @param IOptionCategory
*/ */
public void setCategory(IOptionCategory category); public void setCategory(IOptionCategory category);
/** /**
* Answers a <code>String</code> containing the actual command line * @return a <code>String</code> containing the actual command line
* option associated with the option * option associated with the option
*
* @return String
*/ */
public String getCommand(); public String getCommand();
@ -245,101 +226,96 @@ public interface IOption extends IBuildObject {
* Sets a <code>String</code> containing the actual command line * Sets a <code>String</code> containing the actual command line
* option associated with the option * option associated with the option
* *
* @param String * @param command - the actual command line option
*/ */
public void setCommand(String command); public void setCommand(String command);
/** /**
* Answers a <code>String</code> containing the actual command line * @return {@code String} containing the actual command line
* option associated with a Boolean option when the value is False * option associated with a Boolean option when the value is {@code false}
* @return String
*/ */
public String getCommandFalse(); public String getCommandFalse();
/** /**
* Sets a <code>String</code> containing the actual command line * Sets a <code>String</code> containing the actual command line
* option associated with a Boolean option when the value is False * option associated with a Boolean option when the value is {@code false}
* *
* @param String * @param commandFalse - the actual command line option associated
* with a Boolean option when the value is {@code false}
*/ */
public void setCommandFalse(String commandFalse); public void setCommandFalse(String commandFalse);
/** /**
* Answers a <code>String</code> containing the tooltip * @return a <code>String</code> containing the tooltip
* associated with the option * associated with the option
* @return String
*/ */
public String getToolTip(); public String getToolTip();
/** /**
* Sets a <code>String</code> containing the tooltip * Sets a <code>String</code> containing the tooltip associated with the option
* associated with the option
* *
* @param String * @param tooltip - the tooltip associated with the option
*/ */
public void setToolTip(String tooltip); public void setToolTip(String tooltip);
/** /**
* Answers a <code>String</code> containing the contextId * @return a <code>String</code> containing the contextId
* associated with the option * associated with the option
* @return String
*/ */
public String getContextId(); public String getContextId();
/** /**
* Sets a <code>String</code> containing the contextId * Sets a <code>String</code> containing the contextId associated with the option
* associated with the option
* *
* @param String * @param id - the contextId associated with the option
*/ */
public void setContextId(String id); public void setContextId(String id);
/** /**
* Answers the user-defined preprocessor symbols. * @return the user-defined preprocessor symbols.
*
* @return String[]
* @throws BuildException * @throws BuildException
*/ */
public String[] getDefinedSymbols() throws BuildException; public String[] getDefinedSymbols() throws BuildException;
/** /**
* Answers the command associated with the enumeration id. For *
* @param id - enumeration id
* @return the command associated with the enumeration id. For
* example, if the enumeration id was <code>gnu.debug.level.default</code> * example, if the enumeration id was <code>gnu.debug.level.default</code>
* for the debug level option of the Gnu compiler, and the plugin * for the debug level option of the Gnu compiler, and the plugin
* manifest defined that as -g, then the return value would be the * manifest defined that as -g, then the return value would be the
* String "-g" * String "-g"
* *
* @return * @throws BuildException
*/ */
public String getEnumCommand (String id) throws BuildException; public String getEnumCommand (String id) throws BuildException;
/** /**
* Answers the "name" associated with the enumeration id. * @param id - enumeration id
* * @return the "name" associated with the enumeration id.
* @return *
* @throws BuildException
*/ */
public String getEnumName (String id) throws BuildException; public String getEnumName (String id) throws BuildException;
/** /**
* @param name * @param name - a "name" associated with enumeration id
* @return * @return enumeration id
*
* @throws BuildException
*/ */
public String getEnumeratedId(String name) throws BuildException; public String getEnumeratedId(String name) throws BuildException;
/** /**
* Answers an array of <code>String</code> containing the includes paths * @return an array of <code>String</code> containing the includes paths
* defined in the build model. * defined in the build model.
*
* @return String[]
* @throws BuildException * @throws BuildException
*/ */
public String[] getIncludePaths() throws BuildException; public String[] getIncludePaths() throws BuildException;
/** /**
* Answers an array or <code>String</code>s containing the libraries * @return an array or <code>String</code>s containing the libraries
* that must be linked into the project. * that must be linked into the project.
*
* @return String[]
* @throws BuildException * @throws BuildException
*/ */
public String[] getLibraries() throws BuildException ; public String[] getLibraries() throws BuildException ;
@ -354,62 +330,52 @@ public interface IOption extends IBuildObject {
public String[] getLibraryFiles() throws BuildException ; public String[] getLibraryFiles() throws BuildException ;
/** /**
* Answers a <code>String</code> containing the unique ID of the selected * @return a <code>String</code> containing the unique ID of the selected
* enumeration in an enumerated option. For an option that has not been * enumeration in an enumerated option. For an option that has not been
* changed by the user, the receiver will answer with the default defined * changed by the user, the receiver will answer with the default defined
* in the plugin manifest. If the user has modified the selection, the * in the plugin manifest. If the user has modified the selection, the
* receiver will answer with the overridden selection. * receiver will answer with the overridden selection.
* *
* @return String
* @throws BuildException if the option type is not an enumeration * @throws BuildException if the option type is not an enumeration
*/ */
public String getSelectedEnum () throws BuildException; public String getSelectedEnum () throws BuildException;
/** /**
* Returns the current value for this option if it is a List of Strings. * @return the current value for this option if it is a List of Strings.
*
* @return String []
* @throws BuildException * @throws BuildException
*/ */
public String [] getStringListValue() throws BuildException; public String [] getStringListValue() throws BuildException;
/** /**
* Returns the current value for this option if it is a String * @return the current value for this option if it is a String
*
* @return String
* @throws BuildException * @throws BuildException
*/ */
public String getStringValue() throws BuildException; public String getStringValue() throws BuildException;
/** /**
* Answers all of the user-defined object files that must be linked with * @return all of the user-defined object files that must be linked with
* the final build target. * the final build target.
* *
* @return
* @throws BuildException * @throws BuildException
*/ */
public String [] getUserObjects() throws BuildException; public String [] getUserObjects() throws BuildException;
/** /**
* Returns the raw value of this option. * @return the raw value of this option which is the Object that contains the raw value of the option.
* * The type of Object is specific to the option type.
* @return Object The Object that contains the raw value of the option. The type
* of Object is specific to the option type.
*/ */
public Object getValue(); public Object getValue();
/** /**
* Returns the raw default value of this option. * @return the raw default value of this option which is the Object that contains the raw default value of the option.
* * The type of Object is specific to the option type.
* @return Object The Object that contains the raw default value of the option. The type
* of Object is specific to the option type.
*/ */
public Object getDefaultValue(); public Object getDefaultValue();
/** /**
* Get the type for the value of the option. * @return the type for the value of the option.
* *
* @return int * @throws BuildException
*/ */
public int getValueType() throws BuildException; public int getValueType() throws BuildException;
@ -463,15 +429,13 @@ public interface IOption extends IBuildObject {
public void setValueType(int type); public void setValueType(int type);
/** /**
* Returns the value handler specified for this tool. * @return the value handler specified for this tool.
* @return IManagedOptionValueHandler
* @since 3.0 * @since 3.0
*/ */
public IManagedOptionValueHandler getValueHandler(); public IManagedOptionValueHandler getValueHandler();
/** /**
* Returns the value handlers extra argument specified for this tool * @return the value handlers extra argument specified for this tool
* @return String
* @since 3.0 * @since 3.0
*/ */
public String getValueHandlerExtraArgument(); public String getValueHandlerExtraArgument();
@ -484,27 +448,24 @@ public interface IOption extends IBuildObject {
public void setValueHandlerExtraArgument(String extraArgument); public void setValueHandlerExtraArgument(String extraArgument);
/** /**
* Returns <code>true</code> if this option was loaded from a manifest file, * @return <code>true</code> if this option was loaded from a manifest file,
* and <code>false</code> if it was loaded from a project (.cdtbuild) file. * and <code>false</code> if it was loaded from a project (.cdtbuild) file.
*
* @return boolean
*/ */
public boolean isExtensionElement(); public boolean isExtensionElement();
/** /**
* Returns <code>true</code> if this option only oveerides the value attribute * @return <code>true</code> if this option only overrides the value attribute
* of its superclass and <code>false</code> if it overrides other attributes. * of its superclass and <code>false</code> if it overrides other attributes.
* *
* @return boolean * @deprecated as of 3.0.1
* @deprecated
*/ */
@Deprecated
public boolean overridesOnlyValue(); public boolean overridesOnlyValue();
/** /**
* Returns <code>true</code> if this option is valid and <code>false</code> * @return <code>true</code> if this option is valid and <code>false</code>
* if the option cannot be safely used due to an error in the MBS grammar. * if the option cannot be safely used due to an error in the MBS grammar.
* *
* @return boolean
* @since 3.0 * @since 3.0
* *
* @pre Can only be used after Ids in MBS grammar have been resolved by pointers. * @pre Can only be used after Ids in MBS grammar have been resolved by pointers.
@ -512,26 +473,28 @@ public interface IOption extends IBuildObject {
public boolean isValid(); public boolean isValid();
/** /**
* Returns the type of the option value, i.e. whether it is string, boolean, * @return the type of the option value, i.e. whether it is string, boolean,
* string list or enumenration. As opposed to the getValueType() method, * string list or enumeration. As opposed to the getValueType() method,
* the returned type does not specifies the "sense" of the value, e.g. whether it represents the list of includes or not. * the returned type does not specifies the "sense" of the value, e.g. whether it represents the list of includes or not.
* *
* possible return values: * <br/> Possible return values:
* IOption.BOOLEAN * <li/>{@link IOption#BOOLEAN}
* IOption.STRING * <li/>{@link IOption#STRING}
* IOption.ENUMERATED * <li/>{@link IOption#ENUMERATED}
* IOption.STRING_LIST * <li/>{@link IOption#STRING_LIST} - corresponds to
* * {@link IOption#INCLUDE_PATH}, {@link IOption#PREPROCESSOR_SYMBOLS}, {@link IOption#LIBRARIES},
* the STRING_LIST basic value type corresponds to the following option value types: * {@link IOption#OBJECTS}, {@link IOption#INCLUDE_FILES}, {@link IOption#LIBRARY_PATHS},
* INCLUDE_PATH, PREPROCESSOR_SYMBOLS, LIBRARIES, OBJECTS, INCLUDE_FILES, LIBRARY_PATHS, LIBRARY_FILES, MACRO_FILES * {@link IOption#LIBRARY_FILES}, {@link IOption#MACRO_FILES}
* *
* @throws BuildException
*/ */
int getBasicValueType() throws BuildException ; int getBasicValueType() throws BuildException ;
/** /**
* in case the option basic value type is STRING_LIST, returns the String list value, * @return in case the option basic value type is STRING_LIST, returns the String list value,
* throws BuildException otherwise * throws BuildException otherwise
* @return *
* @throws BuildException
*/ */
String[] getBasicStringListValue() throws BuildException; String[] getBasicStringListValue() throws BuildException;