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

java.lang.Object
  extended by org.eclipse.cdt.make.internal.core.makefile.Directive
      extended by org.eclipse.cdt.make.internal.core.makefile.MacroDefinition
All Implemented Interfaces:
IDirective, IMacroDefinition
Direct Known Subclasses:
VariableDefinition

public class MacroDefinition
extends Directive
implements IMacroDefinition


Constructor Summary
MacroDefinition(Directive parent, java.lang.String n, java.lang.StringBuffer v)
           
 
Method Summary
 boolean equals(MacroDefinition v)
           
 java.lang.String getName()
          Returns the name of the macro
 java.lang.StringBuffer getValue()
          Returns the value of the macro
 boolean isFromCommand()
          The macro was pass from an option to make.
 boolean isFromDefault()
          The macro is a built-in
 boolean isFromEnviroment()
          The macro came from the environment.
 boolean isFromEnvironmentOverride()
          The macro came from the make command option -e
 boolean isFromMakefile()
          The macro was found in a Makefile.
 void setFromCommand(boolean from)
           
 void setFromDefault(boolean from)
           
 void setFromEnviroment(boolean from)
           
 void setFromEnviromentOverride(boolean from)
           
 void setFromMakefile(boolean from)
           
 void setName(java.lang.String n)
           
 java.lang.String 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.IDirective
getEndLine, getFileName, getParent, getStartLine
 

Constructor Detail

MacroDefinition

public MacroDefinition(Directive parent,
                       java.lang.String n,
                       java.lang.StringBuffer v)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: IMacroDefinition
Returns the name of the macro

Specified by:
getName in interface IMacroDefinition
Returns:

setName

public void setName(java.lang.String n)

getValue

public java.lang.StringBuffer getValue()
Description copied from interface: IMacroDefinition
Returns the value of the macro

Specified by:
getValue in interface IMacroDefinition
Returns:

toString

public java.lang.String toString()
Specified by:
toString in interface IDirective
Specified by:
toString in class Directive
See Also:
Object.toString()

equals

public boolean equals(MacroDefinition v)

setFromCommand

public void setFromCommand(boolean from)

setFromDefault

public void setFromDefault(boolean from)

setFromEnviroment

public void setFromEnviroment(boolean from)

setFromEnviromentOverride

public void setFromEnviromentOverride(boolean from)

setFromMakefile

public void setFromMakefile(boolean from)

isFromCommand

public boolean isFromCommand()
Description copied from interface: IMacroDefinition
The macro was pass from an option to make.

Specified by:
isFromCommand in interface IMacroDefinition
Returns:

isFromDefault

public boolean isFromDefault()
Description copied from interface: IMacroDefinition
The macro is a built-in

Specified by:
isFromDefault in interface IMacroDefinition
Returns:

isFromEnviroment

public boolean isFromEnviroment()
Description copied from interface: IMacroDefinition
The macro came from the environment.

Specified by:
isFromEnviroment in interface IMacroDefinition
Returns:

isFromEnvironmentOverride

public boolean isFromEnvironmentOverride()
Description copied from interface: IMacroDefinition
The macro came from the make command option -e

Specified by:
isFromEnvironmentOverride in interface IMacroDefinition
Returns:

isFromMakefile

public boolean isFromMakefile()
Description copied from interface: IMacroDefinition
The macro was found in a Makefile.

Specified by:
isFromMakefile in interface IMacroDefinition
Returns: