org.eclipse.cdt.managedbuilder.makegen.gnu
Class ManagedBuildGnuToolInfo

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.makegen.gnu.ManagedBuildGnuToolInfo
All Implemented Interfaces:
IManagedBuildGnuToolInfo

public class ManagedBuildGnuToolInfo
extends java.lang.Object
implements IManagedBuildGnuToolInfo

This class represents information about a Tool's inputs and outputs while a Gnu makefile is being generated.


Field Summary
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.makegen.gnu.IManagedBuildGnuToolInfo
DOT
 
Constructor Summary
ManagedBuildGnuToolInfo(org.eclipse.core.resources.IProject project, ITool tool, boolean targetTool, java.lang.String name, java.lang.String ext)
           
 
Method Summary
 boolean areDependenciesCalculated()
          Returns true if the tool's dependencies have been calculated, else false.
 boolean areInputsCalculated()
          Returns true if the tool's inputs have been calculated, else false.
 boolean areOutputsCalculated()
          Returns true if the tool's outputs have been calculated, else false.
 boolean areOutputVariablesCalculated()
           
 boolean calculateDependencies(GnuMakefileGenerator makeGen, IConfiguration config, java.util.HashSet handledInputExtensions, org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.ToolInfoHolder h, boolean lastChance)
           
 boolean calculateInputs(GnuMakefileGenerator makeGen, IConfiguration config, org.eclipse.core.resources.IResource[] projResources, org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.ToolInfoHolder h, boolean lastChance)
           
 boolean calculateOutputs(GnuMakefileGenerator makeGen, IConfiguration config, java.util.HashSet handledInputExtensions, boolean lastChance)
           
 java.util.Vector getAdditionalTargets()
          Returns the tool's additional targets as determined by the dependency calculator.
 java.util.Vector getCommandDependencies()
          Returns the tool's dependencies in command line format.
 java.util.Vector getCommandInputs()
          Returns the tool's inputs in command line format.
 java.util.Vector getCommandOutputs()
          Returns the tool's outputs in command line format.
 java.util.Vector getEnumeratedInputs()
          Returns the raw list of tool's input file names.
 java.util.Vector getEnumeratedPrimaryOutputs()
          Returns the raw list of tool's primary output file names.
 java.util.Vector getEnumeratedSecondaryOutputs()
          Returns the raw list of tool's secondary output file names.
 java.util.Vector getOutputVariables()
          Returns the raw list of tool's output variable names.
 boolean isTargetTool()
          Returns true if this is the target tool else false.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedBuildGnuToolInfo

public ManagedBuildGnuToolInfo(org.eclipse.core.resources.IProject project,
                               ITool tool,
                               boolean targetTool,
                               java.lang.String name,
                               java.lang.String ext)
Method Detail

areInputsCalculated

public boolean areInputsCalculated()
Description copied from interface: IManagedBuildGnuToolInfo
Returns true if the tool's inputs have been calculated, else false.

Specified by:
areInputsCalculated in interface IManagedBuildGnuToolInfo
Returns:
boolean

getCommandInputs

public java.util.Vector getCommandInputs()
Description copied from interface: IManagedBuildGnuToolInfo
Returns the tool's inputs in command line format. This will use variables rather than actual file names as appropriate.

Specified by:
getCommandInputs in interface IManagedBuildGnuToolInfo
Returns:
Vector

getEnumeratedInputs

public java.util.Vector getEnumeratedInputs()
Description copied from interface: IManagedBuildGnuToolInfo
Returns the raw list of tool's input file names.

Specified by:
getEnumeratedInputs in interface IManagedBuildGnuToolInfo
Returns:
Vector

areOutputsCalculated

public boolean areOutputsCalculated()
Description copied from interface: IManagedBuildGnuToolInfo
Returns true if the tool's outputs have been calculated, else false.

Specified by:
areOutputsCalculated in interface IManagedBuildGnuToolInfo
Returns:
boolean

getCommandOutputs

public java.util.Vector getCommandOutputs()
Description copied from interface: IManagedBuildGnuToolInfo
Returns the tool's outputs in command line format. This will use variables rather than actual file names as appropriate.

Specified by:
getCommandOutputs in interface IManagedBuildGnuToolInfo
Returns:
Vector

getEnumeratedPrimaryOutputs

public java.util.Vector getEnumeratedPrimaryOutputs()
Description copied from interface: IManagedBuildGnuToolInfo
Returns the raw list of tool's primary output file names.

Specified by:
getEnumeratedPrimaryOutputs in interface IManagedBuildGnuToolInfo
Returns:
Vector

getEnumeratedSecondaryOutputs

public java.util.Vector getEnumeratedSecondaryOutputs()
Description copied from interface: IManagedBuildGnuToolInfo
Returns the raw list of tool's secondary output file names.

Specified by:
getEnumeratedSecondaryOutputs in interface IManagedBuildGnuToolInfo
Returns:
Vector

getOutputVariables

public java.util.Vector getOutputVariables()
Description copied from interface: IManagedBuildGnuToolInfo
Returns the raw list of tool's output variable names.

Specified by:
getOutputVariables in interface IManagedBuildGnuToolInfo
Returns:
Vector

areOutputVariablesCalculated

public boolean areOutputVariablesCalculated()

areDependenciesCalculated

public boolean areDependenciesCalculated()
Description copied from interface: IManagedBuildGnuToolInfo
Returns true if the tool's dependencies have been calculated, else false.

Specified by:
areDependenciesCalculated in interface IManagedBuildGnuToolInfo
Returns:
boolean

getCommandDependencies

public java.util.Vector getCommandDependencies()
Description copied from interface: IManagedBuildGnuToolInfo
Returns the tool's dependencies in command line format. This will use variables rather than actual file names as appropriate. Dependencies are top build directory relative.

Specified by:
getCommandDependencies in interface IManagedBuildGnuToolInfo
Returns:
Vector

getAdditionalTargets

public java.util.Vector getAdditionalTargets()
Description copied from interface: IManagedBuildGnuToolInfo
Returns the tool's additional targets as determined by the dependency calculator. Additional targets are top build directory relative

Specified by:
getAdditionalTargets in interface IManagedBuildGnuToolInfo
Returns:
Vector

isTargetTool

public boolean isTargetTool()
Description copied from interface: IManagedBuildGnuToolInfo
Returns true if this is the target tool else false.

Specified by:
isTargetTool in interface IManagedBuildGnuToolInfo
Returns:
boolean

calculateInputs

public boolean calculateInputs(GnuMakefileGenerator makeGen,
                               IConfiguration config,
                               org.eclipse.core.resources.IResource[] projResources,
                               org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.ToolInfoHolder h,
                               boolean lastChance)

calculateOutputs

public boolean calculateOutputs(GnuMakefileGenerator makeGen,
                                IConfiguration config,
                                java.util.HashSet handledInputExtensions,
                                boolean lastChance)

calculateDependencies

public boolean calculateDependencies(GnuMakefileGenerator makeGen,
                                     IConfiguration config,
                                     java.util.HashSet handledInputExtensions,
                                     org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.ToolInfoHolder h,
                                     boolean lastChance)