terp - the Codemesh Modular
Template Interpreter v1.3.337

com.codemesh.terp.data
Class Reg.RegExecutor

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.Reg.RegExecutor
All Implemented Interfaces:
Executor<ProcessExecutor.Result>, Named, Versioned
Direct Known Subclasses:
Reg.RegQueryValue
Enclosing interface:
Reg

public static class Reg.RegExecutor
extends ShellExecutor
implements 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 static java.util.regex.Pattern REG_FORMAT
           
protected  java.io.File theRegTool
           
protected  Version theVersion
           
protected static Converter<Version> TO_VERSION
           
protected static java.util.List<java.lang.Object> VERSION_ARGS
           
 
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
Reg.RegExecutor()
           
 
Method Summary
 java.io.File getExecutbable()
           
 java.lang.String getName()
          Returns the named object's name.
 Version getVersion()
           
 java.lang.String[] marshallArguments(java.util.List<java.lang.Object> args)
           
static Reg.RegExecutor regFromFile(java.io.File exec)
           
static Reg.RegExecutor regFromMap(java.util.Map<java.lang.String,java.lang.Object> map)
           
static Reg.RegExecutor regFromMap(Reg.RegExecutor result, java.util.Map<java.lang.String,java.lang.Object> map)
           
static Reg.RegExecutor regFromString(java.lang.String exec)
           
 void setExecutable(java.io.File exec)
          Sets the file to execute.
 void setVersion(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, setWorkingDir
 
Methods inherited from class com.codemesh.terp.api.Executor.AbstractExecutor
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theRegTool

protected java.io.File theRegTool

theVersion

protected Version theVersion

VERSION_ARGS

protected static final java.util.List<java.lang.Object> VERSION_ARGS

REG_FORMAT

protected static final java.util.regex.Pattern REG_FORMAT

TO_VERSION

protected static final Converter<Version> TO_VERSION
Constructor Detail

Reg.RegExecutor

public Reg.RegExecutor()
Method Detail

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.

getExecutbable

public java.io.File getExecutbable()

setVersion

public void setVersion(Version version)

getVersion

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

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.

regFromString

public static Reg.RegExecutor regFromString(java.lang.String exec)

regFromFile

public static Reg.RegExecutor regFromFile(java.io.File exec)

regFromMap

public static Reg.RegExecutor regFromMap(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

regFromMap

public static Reg.RegExecutor regFromMap(Reg.RegExecutor result,
                                         java.util.Map<java.lang.String,java.lang.Object> map)

terp - the Codemesh Modular
Template Interpreter v1.3.337

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