terp - the Codemesh Modular
Template Interpreter v1.3.337

com.codemesh.terp.data
Class Ar.ArExecutor

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.data.Ar.ArExecutor
All Implemented Interfaces:
Executor<ProcessExecutor.Result>, Named, java.lang.Comparable<Ar.ArExecutor>
Enclosing interface:
Ar

public static class Ar.ArExecutor
extends ProcessExecutor
implements java.lang.Comparable<Ar.ArExecutor>, Named

An executor for ar, the utility used for creating archive files on most Unix/Linux platforms.

See Also:
the converter creating instances of this type, registered under the ^ar alias.

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.List<Ar.ArExecutor> ALL_ARS
           
protected  Version theVersion
           
 
Fields inherited from class com.codemesh.terp.eval.executors.ProcessExecutor
EOL, IS_WINDOWS, logger, theEnvironment, theExecutable, theTerpCmdVar, theWorkingDir, TO_FILE, TO_LIST
 
Constructor Summary
Ar.ArExecutor()
           
 
Method Summary
static Ar.ArExecutor arFromFile(java.io.File executableOrHome)
           
static Ar.ArExecutor arFromMap(Ar.ArExecutor exec, java.util.Map<java.lang.String,java.lang.Object> map)
           
static Ar.ArExecutor arFromMap(java.util.Map<java.lang.String,java.lang.Object> map)
           
static Ar.ArExecutor arFromString(java.lang.String executableOrHome)
           
 int compareTo(Ar.ArExecutor o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getBitsOption(int bits)
           
 java.lang.String getName()
          Returns the named object's name.
 int hashCode()
           
static void populate()
           
 java.lang.String toString()
           
 
Methods inherited from class com.codemesh.terp.eval.executors.ProcessExecutor
appendToEnvironment, execute, execute, fromFile, fromMap, fromMap, fromString, getEnvironment, getExecutable, getWorkingDir, marshallArguments, 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

theVersion

protected Version theVersion

ALL_ARS

protected static final java.util.List<Ar.ArExecutor> ALL_ARS
Constructor Detail

Ar.ArExecutor

public Ar.ArExecutor()
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.

getBitsOption

public java.lang.String getBitsOption(int bits)

compareTo

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

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

populate

public static void populate()

arFromString

public static Ar.ArExecutor arFromString(java.lang.String executableOrHome)

arFromFile

public static Ar.ArExecutor arFromFile(java.io.File executableOrHome)

arFromMap

public static Ar.ArExecutor arFromMap(java.util.Map<java.lang.String,java.lang.Object> map)

arFromMap

public static Ar.ArExecutor arFromMap(Ar.ArExecutor exec,
                                      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.