org.eclipse.cdt.make.core.makefile
Interface IMakefile

All Superinterfaces:
IDirective, IParent
All Known Subinterfaces:
IGNUMakefile
All Known Implementing Classes:
AbstractMakefile, GNUMakefile, NullMakefile, PosixMakefile

public interface IMakefile
extends IParent

IMakefile: Makefile : ( directive ) * directive : rule | macro_definition | comments | empty rule : inference_rule | target_rule | special_rule inference_rule : target ':' [ ';' command ] [ ( command ) * ] target_rule : [ ( target ) + ] ':' [ ( prerequisite ) * ] [ ';' command ] [ ( command ) * ] macro_definition : string '=' ( string )* comments : ('#' ( string ) ) * empty : command : prefix_command string target : string prefix_command : '-' | '@' | '+' internal_macro : "$<" | "$*" | "$@" | "$?" | "$%"


Method Summary
 java.lang.String expandString(java.lang.String line)
          Returning after expanding any macros.
 java.lang.String expandString(java.lang.String line, boolean recursive)
          Returning after expanding any macros.
 IMacroDefinition[] getBuiltinMacroDefinitions()
          Return all the buil-in MacroDefintions
 IMacroDefinition[] getBuiltinMacroDefinitions(java.lang.String name)
          Returns the Builtin macro definition for name.
 IDirective[] getBuiltins()
          Return all the builtin directives.
 IInferenceRule[] getInferenceRules()
          Returns IInferenceRule
 IInferenceRule[] getInferenceRules(java.lang.String target)
          Returns the IInferenceRules for target.
 IMacroDefinition[] getMacroDefinitions()
          Return IMacroDefinition
 IMacroDefinition[] getMacroDefinitions(java.lang.String name)
          Returns the IMacroDefinitions for name.
 IRule[] getRules()
          ITargetRule | IInferenceRule | ISpecialRule
 IRule[] getRules(java.lang.String target)
          Returns the IRule for target.
 ITargetRule[] getTargetRules()
          Returns ITargetRule
 ITargetRule[] getTargetRules(java.lang.String target)
          Returns the ITargetRules for name.
 void parse(java.lang.String name, java.io.Reader makefile)
          Clear the all statements and (re)parse the Makefile
 
Methods inherited from interface org.eclipse.cdt.make.core.makefile.IParent
getDirectives
 
Methods inherited from interface org.eclipse.cdt.make.core.makefile.IDirective
getEndLine, getFileName, getParent, getStartLine, toString
 

Method Detail

getRules

IRule[] getRules()
ITargetRule | IInferenceRule | ISpecialRule

Returns:

getRules

IRule[] getRules(java.lang.String target)
Returns the IRule for target.

Parameters:
target -
Returns:

getInferenceRules

IInferenceRule[] getInferenceRules()
Returns IInferenceRule

Returns:

getInferenceRules

IInferenceRule[] getInferenceRules(java.lang.String target)
Returns the IInferenceRules for target.

Parameters:
target -
Returns:

getTargetRules

ITargetRule[] getTargetRules()
Returns ITargetRule

Returns:

getTargetRules

ITargetRule[] getTargetRules(java.lang.String target)
Returns the ITargetRules for name.

Parameters:
target -
Returns:

getMacroDefinitions

IMacroDefinition[] getMacroDefinitions()
Return IMacroDefinition

Returns:

getMacroDefinitions

IMacroDefinition[] getMacroDefinitions(java.lang.String name)
Returns the IMacroDefinitions for name.

Parameters:
name -
Returns:

getBuiltins

IDirective[] getBuiltins()
Return all the builtin directives.

Returns:

getBuiltinMacroDefinitions

IMacroDefinition[] getBuiltinMacroDefinitions()
Return all the buil-in MacroDefintions

Returns:

getBuiltinMacroDefinitions

IMacroDefinition[] getBuiltinMacroDefinitions(java.lang.String name)
Returns the Builtin macro definition for name.

Parameters:
name -
Returns:

expandString

java.lang.String expandString(java.lang.String line)
Returning after expanding any macros.

Returns:
String - expanded line

expandString

java.lang.String expandString(java.lang.String line,
                              boolean recursive)
Returning after expanding any macros.

Parameters:
String - - line to expand
boolean - - if true recursively expand.
Returns:
String - expanded line

parse

void parse(java.lang.String name,
           java.io.Reader makefile)
           throws java.io.IOException
Clear the all statements and (re)parse the Makefile

Parameters:
name -
makefile -
Throws:
java.io.IOException