org.eclipse.cdt.make.internal.core.makefile
Class NullMakefile
java.lang.Object
org.eclipse.cdt.make.internal.core.makefile.Directive
org.eclipse.cdt.make.internal.core.makefile.Parent
org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile
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 : "$<" | "$*" | "$@" | "$?" | "$%"
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EMPTY_DIRECTIVES
public static final IDirective[] EMPTY_DIRECTIVES
NullMakefile
public NullMakefile()
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