Package com.facebook.buck.rules.args
Class ArgFactory
- java.lang.Object
-
- com.facebook.buck.rules.args.ArgFactory
-
public class ArgFactory extends Object
Simple factory class to convert objects fromCommandLineArgs
toArg
objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Arg
from(Object object)
Convert a command line argument to anArg
static Arg
from(Object object, String formatString)
-
-
-
Method Detail
-
from
public static Arg from(Object object)
Convert a command line argument to anArg
- Parameters:
object
- the object (String
,Artifact
, etc) to convert to anArg
- Returns:
- the arg
- Throws:
IllegalArgumentException
- ifobject
is not able to be converted, or the provided object was an unboundArtifact
-
-