org.eclipse.cdt.managedbuilder.buildmodel
Interface IBuildResource

All Known Implementing Classes:
BuildResource

public interface IBuildResource

This interface represents the resource used in the build


Method Summary
 IBuildDescription getBuildDescription()
          returns a build description that holds this step
 IBuildIOType[] getDependentIOTypes()
          Returns an array of io types where this resource is used as an input
 IBuildStep[] getDependentSteps()
          Returns an array of steps that use this resource as an input
 org.eclipse.core.runtime.IPath getFullPath()
          In case the resource is a workspace resource, returns the full workspace path for the resource otherwise returns null
 org.eclipse.core.runtime.IPath getLocation()
          Returns the resource location
 IBuildIOType getProducerIOType()
          Returns the output io type of the step that generates this resource.
 IBuildStep getProducerStep()
          Returns the step that generates this resource.
 boolean isProjectResource()
          Returns true if this resource belongs to the project
 boolean isRemoved()
          Returns true if the resource was removed from the build Note: the removed state represents is BUILD state rather than a file system state.
 boolean needsRebuild()
          Returns true if the resource needs rebuild this implies that all build steps dependent on this resource are to be invoked
 

Method Detail

getLocation

org.eclipse.core.runtime.IPath getLocation()
Returns the resource location

Returns:
IPath

getFullPath

org.eclipse.core.runtime.IPath getFullPath()
In case the resource is a workspace resource, returns the full workspace path for the resource otherwise returns null

Returns:
IPath

getProducerIOType

IBuildIOType getProducerIOType()
Returns the output io type of the step that generates this resource. In case the resource is the project source, The returned output io type belongs to the main input step

Returns:
IBuildIOType
See Also:
IBuildRepresentation.getInputStep()

getDependentIOTypes

IBuildIOType[] getDependentIOTypes()
Returns an array of io types where this resource is used as an input

Returns:
IBuildIOType[]

getProducerStep

IBuildStep getProducerStep()
Returns the step that generates this resource. In case the resource is the project source, The main input step is returned

Returns:
IBuildIOType
See Also:
IBuildRepresentation.getInputStep()

getDependentSteps

IBuildStep[] getDependentSteps()
Returns an array of steps that use this resource as an input

Returns:
IBuildIOType[]

needsRebuild

boolean needsRebuild()
Returns true if the resource needs rebuild this implies that all build steps dependent on this resource are to be invoked

Returns:
boolean

isProjectResource

boolean isProjectResource()
Returns true if this resource belongs to the project

Returns:
boolean

isRemoved

boolean isRemoved()
Returns true if the resource was removed from the build Note: the removed state represents is BUILD state rather than a file system state. If the build resouces is marked as removed that does not mean the resource is removed in the file system The removed state specifies that the resource is no longer used in the build process. E.g. the object file could be marked as removed if the source file was deleted in the file system The removed state information is used primarily for calculation of the project part that is to be rebuild

Returns:
boolean

getBuildDescription

IBuildDescription getBuildDescription()
returns a build description that holds this step

Returns:
IBuildDescription