terp - the Codemesh Modular
Template Interpreter v1.3.337

com.codemesh.terp.data
Class Cpp.CppExecutor

java.lang.Object
  extended by com.codemesh.terp.api.Executor.AbstractExecutor<ProcessExecutor.Result>
      extended by com.codemesh.terp.eval.executors.ProcessExecutor
          extended by com.codemesh.terp.eval.executors.ShellExecutor
              extended by com.codemesh.terp.data.Cpp.CppExecutor
All Implemented Interfaces:
Executor<ProcessExecutor.Result>, Named, Versioned, java.lang.Comparable<Cpp.CppExecutor>
Direct Known Subclasses:
Cpp.AccExecutor, Cpp.GccExecutor, Cpp.IccExecutor, Cpp.MsvcExecutor, Cpp.QccExecutor, Cpp.SunccExecutor, Cpp.XlcExecutor
Enclosing interface:
Cpp

public static class Cpp.CppExecutor
extends ShellExecutor
implements java.lang.Comparable<Cpp.CppExecutor>, Versioned, Named


Nested Class Summary
 
Nested classes/interfaces inherited from class com.codemesh.terp.eval.executors.ProcessExecutor
ProcessExecutor.Result
 
Nested classes/interfaces inherited from interface com.codemesh.terp.api.Executor
Executor.AbstractExecutor<T>, Executor.ForMethod
 
Field Summary
protected  java.lang.String theCode
           
protected  java.lang.String theName
           
protected  java.util.Set<ProcArch> theProcArchs
           
protected  CaseInsensitiveTreeMap<java.lang.Object> theTraits
           
protected  Version theVersion
           
protected static Cpp.MsvcConverter TO_MSVC
           
protected static ToProcArch TO_PROCARCH
           
protected static ToVersion TO_VERSION
           
 
Fields inherited from class com.codemesh.terp.eval.executors.ShellExecutor
theAddedEnvSettings, theExecFlag, theRemovedEnvSettings, theShell, TO_STRING
 
Fields inherited from class com.codemesh.terp.eval.executors.ProcessExecutor
EOL, IS_WINDOWS, logger, theEnvironment, theExecutable, theTerpCmdVar, theWorkingDir, TO_FILE, TO_LIST
 
Constructor Summary
Cpp.CppExecutor()
           
 
Method Summary
static Cpp.AccExecutor accFromFile(java.io.File compiler)
           
static Cpp.AccExecutor accFromMap(java.util.Map map)
           
static Cpp.AccExecutor accFromString(java.lang.String compiler)
           
static Cpp.AccExecutor accFromVersion(Version version)
           
 ProcessExecutor.Result batchExecute(java.util.List<java.lang.Object> args)
          Executes a batch of several compiler invocations, prefixing each one with the compiler executable's path.
 int compareTo(Cpp.CppExecutor o)
           
static Cpp.CppExecutor cppFromFile(java.io.File compiler)
           
static Cpp.CppExecutor cppFromMap(java.util.Map map)
           
static Cpp.CppExecutor cppFromString(java.lang.String compiler)
           
static Cpp.CppExecutor cppFromVersion(Version version)
           
 boolean equals(java.lang.Object o)
           
static Cpp.GccExecutor gccFromFile(java.io.File compiler)
           
static Cpp.GccExecutor gccFromMap(java.util.Map map)
           
static Cpp.GccExecutor gccFromString(java.lang.String compiler)
           
static Cpp.GccExecutor gccFromVersion(Version version)
           
 java.lang.String getCode()
           
 java.io.File getCompiler()
           
 java.lang.String getName()
          Returns the named object's name.
 java.util.Collection<ProcArch> getProcArchs()
           
 java.util.Map<java.lang.String,java.lang.Object> getTraits()
           
 Version getVersion()
           
 int hashCode()
           
static Cpp.IccExecutor iccFromFile(java.io.File compiler)
           
static Cpp.IccExecutor iccFromMap(java.util.Map map)
           
static Cpp.IccExecutor iccFromString(java.lang.String compiler)
           
static Cpp.IccExecutor iccFromVersion(Version version)
           
 java.lang.String[] marshallArguments(java.util.List<java.lang.Object> args)
           
static Cpp.MsvcExecutor msvcFromFile(java.io.File compiler)
           
static Cpp.MsvcExecutor msvcFromMap(java.util.Map map)
           
static Cpp.MsvcExecutor msvcFromString(java.lang.String compiler)
           
static Cpp.MsvcExecutor msvcFromVersion(Version version)
           
static Cpp.QccExecutor qccFromFile(java.io.File compiler)
           
static Cpp.QccExecutor qccFromMap(java.util.Map map)
           
static Cpp.QccExecutor qccFromString(java.lang.String compiler)
           
static Cpp.QccExecutor qccFromVersion(Version version)
           
 void setCode(java.lang.String code)
           
 void setCompiler(java.io.File compiler)
           
 void setName(java.lang.String name)
           
 void setProcArch(ProcArch pa)
           
 void setVersion(Version version)
           
static Cpp.SunccExecutor sunccFromFile(java.io.File compiler)
           
static Cpp.SunccExecutor sunccFromMap(java.util.Map map)
           
static Cpp.SunccExecutor sunccFromString(java.lang.String compiler)
           
static Cpp.SunccExecutor sunccFromVersion(Version version)
           
 boolean supportsOption(java.lang.String opt)
           
 boolean supportsOptions(java.lang.String... opts)
           
 java.lang.String toString()
           
static Cpp.XlcExecutor xlcFromFile(java.io.File compiler)
           
static Cpp.XlcExecutor xlcFromMap(java.util.Map map)
           
static Cpp.XlcExecutor xlcFromString(java.lang.String compiler)
           
static Cpp.XlcExecutor xlcFromVersion(Version version)
           
 
Methods inherited from class com.codemesh.terp.eval.executors.ShellExecutor
addToEnvironment, createEnvironment, getExecFlag, getShell, removeFromEnvironment, setExecFlag, setShell, shellFromFile, shellFromMap, shellFromMap, shellFromString
 
Methods inherited from class com.codemesh.terp.eval.executors.ProcessExecutor
appendToEnvironment, execute, execute, fromFile, fromMap, fromMap, fromString, getEnvironment, getExecutable, getWorkingDir, matches, setEnvironment, setExecutable, setWorkingDir
 
Methods inherited from class com.codemesh.terp.api.Executor.AbstractExecutor
execute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TO_VERSION

protected static final ToVersion TO_VERSION

TO_PROCARCH

protected static final ToProcArch TO_PROCARCH

TO_MSVC

protected static final Cpp.MsvcConverter TO_MSVC

theVersion

protected Version theVersion

theName

protected java.lang.String theName

theCode

protected java.lang.String theCode

theProcArchs

protected java.util.Set<ProcArch> theProcArchs

theTraits

protected CaseInsensitiveTreeMap<java.lang.Object> theTraits
Constructor Detail

Cpp.CppExecutor

public Cpp.CppExecutor()
Method Detail

setCompiler

public void setCompiler(java.io.File compiler)

getCompiler

public java.io.File getCompiler()

getTraits

public java.util.Map<java.lang.String,java.lang.Object> getTraits()

setCode

public void setCode(java.lang.String code)

getCode

public java.lang.String getCode()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()
Description copied from interface: Named
Returns the named object's name.

Specified by:
getName in interface Named
Returns:
the name.

setVersion

public void setVersion(Version version)

getVersion

public Version getVersion()
Specified by:
getVersion in interface Versioned

setProcArch

public void setProcArch(ProcArch pa)

getProcArchs

public java.util.Collection<ProcArch> getProcArchs()

compareTo

public int compareTo(Cpp.CppExecutor o)
Specified by:
compareTo in interface java.lang.Comparable<Cpp.CppExecutor>

equals

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

hashCode

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

toString

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

supportsOption

public boolean supportsOption(java.lang.String opt)

supportsOptions

public boolean supportsOptions(java.lang.String... opts)

cppFromString

public static Cpp.CppExecutor cppFromString(java.lang.String compiler)

cppFromVersion

public static Cpp.CppExecutor cppFromVersion(Version version)

cppFromFile

public static Cpp.CppExecutor cppFromFile(java.io.File compiler)

cppFromMap

public static Cpp.CppExecutor cppFromMap(java.util.Map map)

marshallArguments

public java.lang.String[] marshallArguments(java.util.List<java.lang.Object> args)
Overrides:
marshallArguments in class ShellExecutor

accFromString

public static Cpp.AccExecutor accFromString(java.lang.String compiler)

accFromVersion

public static Cpp.AccExecutor accFromVersion(Version version)

accFromFile

public static Cpp.AccExecutor accFromFile(java.io.File compiler)

accFromMap

public static Cpp.AccExecutor accFromMap(java.util.Map map)

gccFromString

public static Cpp.GccExecutor gccFromString(java.lang.String compiler)

gccFromVersion

public static Cpp.GccExecutor gccFromVersion(Version version)

gccFromFile

public static Cpp.GccExecutor gccFromFile(java.io.File compiler)

gccFromMap

public static Cpp.GccExecutor gccFromMap(java.util.Map map)

iccFromString

public static Cpp.IccExecutor iccFromString(java.lang.String compiler)

iccFromVersion

public static Cpp.IccExecutor iccFromVersion(Version version)

iccFromFile

public static Cpp.IccExecutor iccFromFile(java.io.File compiler)

iccFromMap

public static Cpp.IccExecutor iccFromMap(java.util.Map map)

msvcFromString

public static Cpp.MsvcExecutor msvcFromString(java.lang.String compiler)

msvcFromVersion

public static Cpp.MsvcExecutor msvcFromVersion(Version version)

msvcFromFile

public static Cpp.MsvcExecutor msvcFromFile(java.io.File compiler)

msvcFromMap

public static Cpp.MsvcExecutor msvcFromMap(java.util.Map map)

sunccFromString

public static Cpp.SunccExecutor sunccFromString(java.lang.String compiler)

sunccFromVersion

public static Cpp.SunccExecutor sunccFromVersion(Version version)

sunccFromFile

public static Cpp.SunccExecutor sunccFromFile(java.io.File compiler)

sunccFromMap

public static Cpp.SunccExecutor sunccFromMap(java.util.Map map)

qccFromString

public static Cpp.QccExecutor qccFromString(java.lang.String compiler)

qccFromVersion

public static Cpp.QccExecutor qccFromVersion(Version version)

qccFromFile

public static Cpp.QccExecutor qccFromFile(java.io.File compiler)

qccFromMap

public static Cpp.QccExecutor qccFromMap(java.util.Map map)

xlcFromString

public static Cpp.XlcExecutor xlcFromString(java.lang.String compiler)

xlcFromVersion

public static Cpp.XlcExecutor xlcFromVersion(Version version)

xlcFromFile

public static Cpp.XlcExecutor xlcFromFile(java.io.File compiler)

xlcFromMap

public static Cpp.XlcExecutor xlcFromMap(java.util.Map map)

batchExecute

public ProcessExecutor.Result batchExecute(java.util.List<java.lang.Object> args)
Executes a batch of several compiler invocations, prefixing each one with the compiler executable's path.

Parameters:
args - the commandlines that will be batched up.
Returns:
the execution result of the batch file.

terp - the Codemesh Modular
Template Interpreter v1.3.337

Copyright © 2008-2016 by Codemesh, Inc. All Rights Reserved.