org.eclipse.cdt.managedbuilder.internal.macros
Class MbsMacroSupplier

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.internal.macros.BuildCdtVariablesSupplierBase
      extended by org.eclipse.cdt.managedbuilder.internal.macros.MbsMacroSupplier
All Implemented Interfaces:
IBuildMacroSupplier, org.eclipse.cdt.utils.cdtvariables.ICdtVariableSupplier

public class MbsMacroSupplier
extends BuildCdtVariablesSupplierBase

This supplier is used to suply MBS-predefined macros

Since:
3.0

Nested Class Summary
 class MbsMacroSupplier.FileContextMacro
           
 class MbsMacroSupplier.OptionMacro
           
 
Field Summary
static java.lang.String DOT
           
static java.lang.String EMPTY_STRING
           
 
Method Summary
static MbsMacroSupplier getInstance()
           
 IBuildMacro getMacro(java.lang.String macroName)
           
 IBuildMacro getMacro(java.lang.String macroName, IBuilder builder, IConfiguration cfg)
           
 IBuildMacro getMacro(java.lang.String macroName, IManagedProject mngProj)
           
 IBuildMacro getMacro(java.lang.String macroName, int contextType, java.lang.Object contextData)
           
 IBuildMacro getMacro(java.lang.String macroName, IOptionContextData optionContext)
           
 IBuildMacro getMacro(java.lang.String macroName, ITool tool)
           
 IBuildMacro getMacro(java.lang.String macroName, org.eclipse.core.resources.IWorkspace wsp)
           
 java.lang.String[] getMacroNames(int contextType)
           
 IBuildMacro[] getMacros(int contextType, java.lang.Object contextData)
           
 IOption getOption(ITool tool, java.lang.String optionId)
           
 
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.macros.BuildCdtVariablesSupplierBase
getVariable, getVariable, getVariables, getVariables
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOT

public static final java.lang.String DOT
See Also:
Constant Field Values

EMPTY_STRING

public static final java.lang.String EMPTY_STRING
See Also:
Constant Field Values
Method Detail

getMacroNames

public java.lang.String[] getMacroNames(int contextType)

getInstance

public static MbsMacroSupplier getInstance()

getMacro

public IBuildMacro getMacro(java.lang.String macroName,
                            int contextType,
                            java.lang.Object contextData)
Specified by:
getMacro in interface IBuildMacroSupplier
Specified by:
getMacro in class BuildCdtVariablesSupplierBase
Parameters:
macroName - macro name
contextType - context type
contextData - context data
Returns:
IBuildMacro

getMacro

public IBuildMacro getMacro(java.lang.String macroName,
                            IOptionContextData optionContext)

getMacro

public IBuildMacro getMacro(java.lang.String macroName,
                            ITool tool)

getMacro

public IBuildMacro getMacro(java.lang.String macroName,
                            IBuilder builder,
                            IConfiguration cfg)

getMacro

public IBuildMacro getMacro(java.lang.String macroName,
                            IManagedProject mngProj)

getMacro

public IBuildMacro getMacro(java.lang.String macroName,
                            org.eclipse.core.resources.IWorkspace wsp)

getMacro

public IBuildMacro getMacro(java.lang.String macroName)

getMacros

public IBuildMacro[] getMacros(int contextType,
                               java.lang.Object contextData)
Specified by:
getMacros in interface IBuildMacroSupplier
Specified by:
getMacros in class BuildCdtVariablesSupplierBase
Parameters:
contextType - context type
contextData - context data
Returns:
IBuildMacro[]

getOption

public IOption getOption(ITool tool,
                         java.lang.String optionId)