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

All Known Subinterfaces:
ICommand, IComment, IConditional, IDefaultRule, IDeleteOnErrorRule, IEmptyLine, IExportAllVariablesRule, IGNUMakefile, IIgnoreRule, IInclude, IInferenceRule, IIntermediateRule, ILowResolutionTimeRule, IMacroDefinition, IMakefile, INotParallelRule, IParent, IPhonyRule, IPosixRule, IPreciousRule, IRule, ISccsGetRule, ISecondaryRule, ISilentRule, ISpecialRule, ISuffixesRule, ITargetRule, ITerminal, IUnExport, IVariableDefinition, IVPath
All Known Implementing Classes:
AbstractMakefile, BadDirective, Command, Comment, Conditional, DefaultRule, DefineVariable, DeleteOnErrorRule, Directive, Else, EmptyLine, Endef, Endif, ExportAllVariablesRule, ExportVariable, GNUMakefile, GNUTargetRule, Ifdef, Ifeq, Ifndef, Ifneq, IgnoreRule, Include, InferenceRule, IntermediateRule, LowResolutionTimeRule, MacroDefinition, NotParallelRule, NullMakefile, OverrideDefine, OverrideVariable, Parent, PhonyRule, PosixMakefile, PosixRule, PreciousRule, Rule, SccsGetRule, SecondaryRule, SilentRule, SpecialRule, StaticTargetRule, SuffixesRule, TargetRule, TargetVariable, Terminal, UnExport, VariableDefinition, VPath

public interface IDirective

A Makefile can contain rules, macro definitons and comments. They are call directives.


Method Summary
 int getEndLine()
          The ending line number of this directive.
 java.lang.String getFileName()
          Returns the filename where the directive was found.
 IDirective getParent()
          Returns the parent of this directive, null if none.
 int getStartLine()
          The starting line number of this directive.
 java.lang.String toString()
           
 

Method Detail

getParent

IDirective getParent()
Returns the parent of this directive, null if none.

Returns:

getStartLine

int getStartLine()
The starting line number of this directive. The numbering starts at 1 .i.e the first line is not 0

Returns:

getEndLine

int getEndLine()
The ending line number of this directive. The numbering starts at 1 .i.e the first line is not 0

Returns:

getFileName

java.lang.String getFileName()
Returns the filename where the directive was found.

Returns:
String - filename

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object