terp - the Codemesh Modular
Template Interpreter v1.3.304

com.codemesh.terp.data
Class Csharp.CsharpExecutor

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.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>


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
static java.util.Map<Dotnet.DotnetFramework,Csharp.CsharpExecutor> ALL_COMPILERS
           
protected  java.io.File theCsharpExecutable
           
protected  Dotnet.DotnetFramework theDotnetFramework
           
protected  Version theVersion
           
protected static ToVersion TO_VERSION
           
protected static java.util.List<java.lang.Object> VERSION_ARGS
           
protected static java.util.regex.Pattern VERSION_FORMAT
           
 
Fields inherited from class com.codemesh.terp.eval.executors.ShellExecutor
theExecFlag, theShell, TO_STRING
 
Fields inherited from class com.codemesh.terp.eval.executors.ProcessExecutor
EOL, IS_WINDOWS, logger, theEnvironment, theExecutable, theWorkingDir, TO_FILE, TO_LIST
 
Constructor Summary
Csharp.CsharpExecutor()
           
 
Method Summary
 int compareTo(Csharp.CsharpExecutor o)
           
static Csharp.CsharpExecutor csharpFromDotnetFramework(Dotnet.DotnetFramework dnf)
           
static Csharp.CsharpExecutor csharpFromFile(java.io.File execOrDir)
           
static Csharp.CsharpExecutor csharpFromMap(Csharp.CsharpExecutor result, java.util.Map<java.lang.String,java.lang.Object> map)
           
static Csharp.CsharpExecutor csharpFromMap(java.util.Map<java.lang.String,java.lang.Object> map)
           
static Csharp.CsharpExecutor csharpFromString(java.lang.String dir)
           
static Csharp.CsharpExecutor csharpFromVersion(Version vers)
           
 boolean equals(java.lang.Object obj)
           
 java.io.File getCompiler()
           
 Dotnet.DotnetFramework getDotnet()
           
 Dotnet.DotnetFramework getDotnetFramework()
           
 java.io.File getExecutable()
          Returns the executable.
 Dotnet.DotnetFramework getFramework()
           
 java.lang.String getName()
          Returns the named object's name.
 Version getVersion()
           
 int hashCode()
           
static Csharp.CsharpExecutor locate(Csharp.CsharpExecutor csharp)
           
 java.lang.String[] marshallArguments(java.util.List<java.lang.Object> args)
           
static void populate()
           
 void setCompiler(java.io.File exec)
           
 void setDotnetFramework(Dotnet.DotnetFramework framework)
           
 void setExecutable(java.io.File exec)
          Sets the file to execute.
 void setVersion(Version version)
           
 java.lang.String toString()
           
 
Methods inherited from class com.codemesh.terp.eval.executors.ShellExecutor
createEnvironment, getExecFlag, getShell, setExecFlag, setShell, shellFromFile, shellFromMap, shellFromMap, shellFromString
 
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 com.codemesh.terp.api.Executor.AbstractExecutor
execute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Csharp.CsharpExecutor

public Csharp.CsharpExecutor()
Method Detail

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

terp - the Codemesh Modular
Template Interpreter v1.3.304

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