com.codemesh.terp.data
Class Reg.RegExecutor
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.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
| Methods inherited from class com.codemesh.terp.eval.executors.ProcessExecutor |
execute, execute, fromFile, fromMap, fromMap, fromString, getEnvironment, getExecutable, getWorkingDir, matches, setEnvironment, setWorkingDir |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Reg.RegExecutor
public Reg.RegExecutor()
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)
Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.