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

java.lang.Object
  extended by org.eclipse.cdt.make.internal.core.makefile.Directive
All Implemented Interfaces:
IDirective
Direct Known Subclasses:
BadDirective, Command, Comment, EmptyLine, MacroDefinition, Parent, Terminal, UnExport, VPath

public abstract class Directive
extends java.lang.Object
implements IDirective


Constructor Summary
Directive(Directive owner)
           
Directive(int start, int end)
           
 
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.
 void setEndLine(int lineno)
           
 void setFilename(java.lang.String name)
           
 void setLines(int start, int end)
           
 void setParent(Directive owner)
           
 void setStartLine(int lineno)
           
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Directive

public Directive(Directive owner)

Directive

public Directive(int start,
                 int end)
Method Detail

toString

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

getEndLine

public int getEndLine()
Description copied from interface: IDirective
The ending line number of this directive. The numbering starts at 1 .i.e the first line is not 0

Specified by:
getEndLine in interface IDirective
Returns:

getStartLine

public int getStartLine()
Description copied from interface: IDirective
The starting line number of this directive. The numbering starts at 1 .i.e the first line is not 0

Specified by:
getStartLine in interface IDirective
Returns:

getParent

public IDirective getParent()
Description copied from interface: IDirective
Returns the parent of this directive, null if none.

Specified by:
getParent in interface IDirective
Returns:

getFileName

public java.lang.String getFileName()
Description copied from interface: IDirective
Returns the filename where the directive was found.

Specified by:
getFileName in interface IDirective
Returns:
String - filename

setParent

public void setParent(Directive owner)

setStartLine

public void setStartLine(int lineno)

setEndLine

public void setEndLine(int lineno)

setLines

public void setLines(int start,
                     int end)

setFilename

public void setFilename(java.lang.String name)