org.eclipse.cdt.make.internal.core.makefile
Class NullMakefile

java.lang.Object
  extended by org.eclipse.cdt.make.internal.core.makefile.Directive
      extended by org.eclipse.cdt.make.internal.core.makefile.Parent
          extended by org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile
              extended by org.eclipse.cdt.make.internal.core.makefile.NullMakefile
All Implemented Interfaces:
IDirective, IMakefile, IParent

public class NullMakefile
extends AbstractMakefile

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


Field Summary
static IDirective[] EMPTY_DIRECTIVES
           
 
Constructor Summary
NullMakefile()
           
 
Method Summary
 void addDirective(IDirective directive)
           
 IDirective[] getBuiltins()
          Return all the builtin directives.
 IDirective[] getDirectives()
           
 void parse(java.lang.String name, java.io.Reader makefile)
          Clear the all statements and (re)parse the Makefile
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile
expandString, expandString, getBuiltinInferenceRules, getBuiltinInferenceRules, getBuiltinMacroDefinitions, getBuiltinMacroDefinitions, getInferenceRules, getInferenceRules, getMacroDefinitions, getMacroDefinitions, getRules, getRules, getTargetRules, getTargetRules
 
Methods inherited from class org.eclipse.cdt.make.internal.core.makefile.Parent
addDirective, addDirectives, clearDirectives, getDirectives, getStatements
 
Methods inherited from class org.eclipse.cdt.make.internal.core.makefile.Directive
getEndLine, getFileName, getParent, getStartLine, setEndLine, setFilename, setLines, setParent, setStartLine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.cdt.make.core.makefile.IDirective
getEndLine, getFileName, getParent, getStartLine
 

Field Detail

EMPTY_DIRECTIVES

public static final IDirective[] EMPTY_DIRECTIVES
Constructor Detail

NullMakefile

public NullMakefile()
Method Detail

getDirectives

public IDirective[] getDirectives()
Specified by:
getDirectives in interface IParent
Overrides:
getDirectives in class Parent

getBuiltins

public IDirective[] getBuiltins()
Description copied from interface: IMakefile
Return all the builtin directives.

Specified by:
getBuiltins in interface IMakefile
Specified by:
getBuiltins in class AbstractMakefile
Returns:

addDirective

public void addDirective(IDirective directive)

toString

public java.lang.String toString()
Specified by:
toString in interface IDirective
Overrides:
toString in class Parent

parse

public void parse(java.lang.String name,
                  java.io.Reader makefile)
           throws java.io.IOException
Description copied from interface: IMakefile
Clear the all statements and (re)parse the Makefile

Throws:
java.io.IOException