org.eclipse.cdt.make.internal.core.scannerconfig.util
Class CCommandDSC

java.lang.Object
  extended by org.eclipse.cdt.make.internal.core.scannerconfig.util.CCommandDSC

public class CCommandDSC
extends java.lang.Object

Class that represents a compiler command and related scanner configuration

Author:
vhirsl

Constructor Summary
CCommandDSC(boolean cppFileType)
           
CCommandDSC(boolean cppFileType, org.eclipse.core.resources.IProject project)
           
 
Method Summary
 void addSCOption(KVStringPair option)
           
 boolean appliesToCPPFileType()
           
 void deserialize(org.w3c.dom.Element cmdElem)
           
 boolean equals(java.lang.Object arg0)
           
 int getCommandId()
           
 java.lang.Integer getCommandIdAsInteger()
           
 java.lang.String getCompilerName()
          Returns the compiler command
 int getId()
           
 java.util.List getImacrosFile()
           
 java.util.List getIncludeFile()
           
 java.util.List getIncludes()
           
 java.util.List getQuoteIncludes()
           
 java.lang.String getSCDRunnableCommand(boolean quoteIncludePaths)
          Returns a command where -imacros and -include options have been removed
 java.util.List getSymbols()
           
 int hashCode()
           
 boolean isDiscovered()
           
static java.util.List makeAbsolute(org.eclipse.core.resources.IProject project, java.util.List paths)
           
static java.lang.String makeAbsolute(org.eclipse.core.resources.IProject project, java.lang.String path)
           
static org.eclipse.core.runtime.IPath makeRelative(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path)
           
static java.util.List makeRelative(org.eclipse.core.resources.IProject project, java.util.List paths)
           
 void resolveOptions(org.eclipse.core.resources.IProject project)
           
 void serialize(org.w3c.dom.Element cmdElem)
           
 void setCommandId(int commandId)
           
 void setDiscovered(boolean discovered)
           
 void setIncludes(java.util.List includes)
           
 void setQuoteIncludes(java.util.List includes)
           
 void setSymbols(java.util.List symbols)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CCommandDSC

public CCommandDSC(boolean cppFileType)
Parameters:
cppFileType2 -

CCommandDSC

public CCommandDSC(boolean cppFileType,
                   org.eclipse.core.resources.IProject project)
Method Detail

appliesToCPPFileType

public boolean appliesToCPPFileType()

addSCOption

public void addSCOption(KVStringPair option)

getCommandIdAsInteger

public java.lang.Integer getCommandIdAsInteger()
Returns:

getCommandId

public int getCommandId()
Returns:
Returns the commandId.

setCommandId

public void setCommandId(int commandId)
Parameters:
commandId - The commandId to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getId

public int getId()

getSCDRunnableCommand

public java.lang.String getSCDRunnableCommand(boolean quoteIncludePaths)
Returns a command where -imacros and -include options have been removed

Returns:

getCompilerName

public java.lang.String getCompilerName()
Returns the compiler command

Returns:

getImacrosFile

public java.util.List getImacrosFile()
Returns:
list of strings

getIncludeFile

public java.util.List getIncludeFile()
Returns:
list of strings

equals

public boolean equals(java.lang.Object arg0)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getIncludes

public java.util.List getIncludes()
Returns:
Returns the includes as strings.

setIncludes

public void setIncludes(java.util.List includes)
Parameters:
includes - The includes to set.

getQuoteIncludes

public java.util.List getQuoteIncludes()
Returns:
Returns the quote include paths as strings (for #include "...")

setQuoteIncludes

public void setQuoteIncludes(java.util.List includes)
Parameters:
includes. - Quote include paths (for #include "...")

getSymbols

public java.util.List getSymbols()
Returns:
Returns the symbols.

setSymbols

public void setSymbols(java.util.List symbols)
Parameters:
symbols - The symbols to set.

isDiscovered

public boolean isDiscovered()
Returns:
Returns the discovered.

setDiscovered

public void setDiscovered(boolean discovered)
Parameters:
discovered - The discovered to set.

serialize

public void serialize(org.w3c.dom.Element cmdElem)
Parameters:
cmdElem -

deserialize

public void deserialize(org.w3c.dom.Element cmdElem)
Parameters:
cmdElem -

resolveOptions

public void resolveOptions(org.eclipse.core.resources.IProject project)

makeRelative

public static org.eclipse.core.runtime.IPath makeRelative(org.eclipse.core.resources.IProject project,
                                                          org.eclipse.core.runtime.IPath path)

makeRelative

public static java.util.List makeRelative(org.eclipse.core.resources.IProject project,
                                          java.util.List paths)

makeAbsolute

public static final java.lang.String makeAbsolute(org.eclipse.core.resources.IProject project,
                                                  java.lang.String path)

makeAbsolute

public static java.util.List makeAbsolute(org.eclipse.core.resources.IProject project,
                                          java.util.List paths)