com.codemesh.terp.data
Class Csharp.CsharpExecutor
java.lang.Object
com.codemesh.terp.api.Executor.AbstractExecutor<ProcessExecutor.Result>
com.codemesh.terp.eval.executors.ProcessExecutor
com.codemesh.terp.eval.executors.ShellExecutor
com.codemesh.terp.data.Csharp.CsharpExecutor
- All Implemented Interfaces:
- Executor<ProcessExecutor.Result>, Named, Versioned, java.lang.Comparable<Csharp.CsharpExecutor>
- Enclosing interface:
- Csharp
public static class Csharp.CsharpExecutor
- extends ShellExecutor
- implements Named, Versioned, java.lang.Comparable<Csharp.CsharpExecutor>
| Methods inherited from class com.codemesh.terp.eval.executors.ProcessExecutor |
execute, execute, fromFile, fromMap, fromMap, fromString, getEnvironment, getWorkingDir, matches, setEnvironment, setWorkingDir |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ALL_COMPILERS
public static final java.util.Map<Dotnet.DotnetFramework,Csharp.CsharpExecutor> ALL_COMPILERS
VERSION_ARGS
protected static final java.util.List<java.lang.Object> VERSION_ARGS
VERSION_FORMAT
protected static final java.util.regex.Pattern VERSION_FORMAT
TO_VERSION
protected static final ToVersion TO_VERSION
theCsharpExecutable
protected java.io.File theCsharpExecutable
theVersion
protected Version theVersion
theDotnetFramework
protected Dotnet.DotnetFramework theDotnetFramework
Csharp.CsharpExecutor
public Csharp.CsharpExecutor()
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.
getCompiler
public java.io.File getCompiler()
setCompiler
public void setCompiler(java.io.File exec)
getExecutable
public java.io.File getExecutable()
- Description copied from class:
ProcessExecutor
- Returns the executable.
- Overrides:
getExecutable in class ProcessExecutor
- Returns:
- the executable.
setExecutable
public void setExecutable(java.io.File exec)
- Description copied from class:
ProcessExecutor
- Sets the file to execute.
The executable needs to be specified for the execution to succeed.
- Overrides:
setExecutable in class ProcessExecutor
- Parameters:
exec - the executable.
getVersion
public Version getVersion()
- Specified by:
getVersion in interface Versioned
setVersion
public void setVersion(Version version)
getDotnet
public Dotnet.DotnetFramework getDotnet()
getDotnetFramework
public Dotnet.DotnetFramework getDotnetFramework()
getFramework
public Dotnet.DotnetFramework getFramework()
setDotnetFramework
public void setDotnetFramework(Dotnet.DotnetFramework framework)
populate
public static void populate()
locate
public static Csharp.CsharpExecutor locate(Csharp.CsharpExecutor csharp)
csharpFromString
public static Csharp.CsharpExecutor csharpFromString(java.lang.String dir)
csharpFromFile
public static Csharp.CsharpExecutor csharpFromFile(java.io.File execOrDir)
csharpFromVersion
public static Csharp.CsharpExecutor csharpFromVersion(Version vers)
csharpFromDotnetFramework
public static Csharp.CsharpExecutor csharpFromDotnetFramework(Dotnet.DotnetFramework dnf)
csharpFromMap
public static Csharp.CsharpExecutor csharpFromMap(java.util.Map<java.lang.String,java.lang.Object> map)
csharpFromMap
public static Csharp.CsharpExecutor csharpFromMap(Csharp.CsharpExecutor result,
java.util.Map<java.lang.String,java.lang.Object> map)
marshallArguments
public java.lang.String[] marshallArguments(java.util.List<java.lang.Object> args)
- Overrides:
marshallArguments in class ShellExecutor
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
compareTo
public int compareTo(Csharp.CsharpExecutor o)
- Specified by:
compareTo in interface java.lang.Comparable<Csharp.CsharpExecutor>
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.