org.eclipse.cdt.managedbuilder.internal.buildmodel
Class BuildResource

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.internal.buildmodel.BuildResource
All Implemented Interfaces:
IBuildResource

public class BuildResource
extends java.lang.Object
implements IBuildResource


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
 void setRebuildState(boolean rebuild)
           
 void setRemoved(boolean removed)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocation

public org.eclipse.core.runtime.IPath getLocation()
Description copied from interface: IBuildResource
Returns the resource location

Specified by:
getLocation in interface IBuildResource
Returns:
IPath

getFullPath

public org.eclipse.core.runtime.IPath getFullPath()
Description copied from interface: IBuildResource
In case the resource is a workspace resource, returns the full workspace path for the resource otherwise returns null

Specified by:
getFullPath in interface IBuildResource
Returns:
IPath

getProducerIOType

public IBuildIOType getProducerIOType()
Description copied from interface: IBuildResource
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

Specified by:
getProducerIOType in interface IBuildResource
Returns:
IBuildIOType
See Also:
IBuildRepresentation.getInputStep()

getDependentIOTypes

public IBuildIOType[] getDependentIOTypes()
Description copied from interface: IBuildResource
Returns an array of io types where this resource is used as an input

Specified by:
getDependentIOTypes in interface IBuildResource
Returns:
IBuildIOType[]

needsRebuild

public boolean needsRebuild()
Description copied from interface: IBuildResource
Returns true if the resource needs rebuild this implies that all build steps dependent on this resource are to be invoked

Specified by:
needsRebuild in interface IBuildResource
Returns:
boolean

isRemoved

public boolean isRemoved()
Description copied from interface: IBuildResource
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

Specified by:
isRemoved in interface IBuildResource
Returns:
boolean

setRemoved

public void setRemoved(boolean removed)

setRebuildState

public void setRebuildState(boolean rebuild)

isProjectResource

public boolean isProjectResource()
Description copied from interface: IBuildResource
Returns true if this resource belongs to the project

Specified by:
isProjectResource in interface IBuildResource
Returns:
boolean

getBuildDescription

public IBuildDescription getBuildDescription()
Description copied from interface: IBuildResource
returns a build description that holds this step

Specified by:
getBuildDescription in interface IBuildResource
Returns:
IBuildDescription

getDependentSteps

public IBuildStep[] getDependentSteps()
Description copied from interface: IBuildResource
Returns an array of steps that use this resource as an input

Specified by:
getDependentSteps in interface IBuildResource
Returns:
IBuildIOType[]

getProducerStep

public IBuildStep getProducerStep()
Description copied from interface: IBuildResource
Returns the step that generates this resource. In case the resource is the project source, The main input step is returned

Specified by:
getProducerStep in interface IBuildResource
Returns:
IBuildIOType
See Also:
IBuildRepresentation.getInputStep()