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

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.Rule
All Implemented Interfaces:
IDirective, IParent, IRule
Direct Known Subclasses:
InferenceRule, SpecialRule, TargetRule

public abstract class Rule
extends Parent
implements IRule


Constructor Summary
Rule(Directive parent, Target tgt)
           
Rule(Directive parent, Target tgt, Command[] cmds)
           
 
Method Summary
 boolean equals(Rule r)
           
 ICommand[] getCommands()
          Array of command for the rule.
 ITarget getTarget()
          The rule target name.
 void setTarget(Target tgt)
           
 
Methods inherited from class org.eclipse.cdt.make.internal.core.makefile.Parent
addDirective, addDirectives, clearDirectives, getDirectives, getDirectives, getStatements, toString
 
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.IParent
getDirectives
 
Methods inherited from interface org.eclipse.cdt.make.core.makefile.IDirective
getEndLine, getFileName, getParent, getStartLine, toString
 

Constructor Detail

Rule

public Rule(Directive parent,
            Target tgt)

Rule

public Rule(Directive parent,
            Target tgt,
            Command[] cmds)
Method Detail

getCommands

public ICommand[] getCommands()
Description copied from interface: IRule
Array of command for the rule.

Specified by:
getCommands in interface IRule
Returns:

getTarget

public ITarget getTarget()
Description copied from interface: IRule
The rule target name.

Specified by:
getTarget in interface IRule
Returns:

setTarget

public void setTarget(Target tgt)

equals

public boolean equals(Rule r)