public class ReplacerAdapter extends ReporterAdapter implements Replacer
Reporter.SetLocation
Report.Location
Modifier and Type | Field and Description |
---|---|
static String |
_fileHelp |
static String |
_fmodifiedHelp |
Constructor and Description |
---|
ReplacerAdapter(Domain domain) |
ReplacerAdapter(Map<String,String> domain) |
Modifier and Type | Method and Description |
---|---|
String |
_basename(String[] args) |
String |
_bytes(String[] args)
Format bytes
|
String |
_cat(String[] args)
Get the contents of a file.
|
String |
_currenttime(String[] args) |
String |
_def(String[] args) |
String |
_dir(String[] args) |
String |
_env(String[] args) |
String |
_error(String[] args) |
String |
_filter(String[] args) |
String |
_filterout(String[] args) |
String |
_fmodified(String[] args) |
long |
_freeMemory(String[] args) |
String |
_if(String[] args) |
String |
_isdir(String[] args) |
String |
_isfile(String[] args) |
String |
_join(String[] args) |
String |
_literal(String[] args) |
String |
_long2date(String[] args) |
String |
_lsa(String[] args) |
String |
_lsr(String[] args)
Wildcard a directory.
|
long |
_maxMemory(String[] args) |
long |
_nanoTime(String[] args) |
String |
_now(String[] args) |
String |
_nsort(String[] args) |
String |
_osfile(String[] args) |
String |
_path(String[] args) |
String |
_pathseparator(String[] args) |
int |
_processors(String[] args) |
String |
_random(String[] args)
Generate a random string, which is guaranteed to be a valid Java
identifier (first character is an ASCII letter, subsequent characters are
ASCII letters or numbers).
|
String |
_replace(String[] args)
replace ;
|
String |
_separator(String[] args) |
String |
_sort(String[] args) |
String |
_system_allow_fail(String[] args) |
String |
_system(String[] args) |
String |
_toclassname(String[] args) |
String |
_toclasspath(String[] args) |
String |
_tstamp(String[] args) |
String |
_unescape(String[] args) |
String |
_uniq(String[] args) |
String |
_warning(String[] args) |
void |
addTarget(Object target) |
int |
findMacro(CharSequence line,
int index)
Traverses a string to find a macro.
|
Map<String,String> |
getFlattenedProperties()
Take all the properties and translate them to actual values.
|
static Properties |
getParent(Properties p) |
String |
getProcessed(String key) |
static char |
getTerminator(char c) |
String |
process(String line) |
String |
process(String line,
Domain source) |
void |
removeTarget(Object target) |
protected String |
replace(String key,
aQute.libg.sed.ReplacerAdapter.Link link) |
void |
setReporter(Reporter reporter) |
String |
system_internal(boolean allowFail,
String[] args)
System command.
|
ReplacerAdapter |
target(File base) |
ReplacerAdapter |
target(Object target) |
static void |
verifyCommand(String[] args,
String help,
Pattern[] patterns,
int low,
int high) |
addErrors, addWarnings, check, error, exception, getErrors, getInfo, getInfo, getLocation, getMessages, getOut, getWarnings, isExceptions, isOk, isPedantic, isPerfect, isTrace, progress, report, run, setExceptions, setPedantic, setTrace, trace, warning
public static final String _fmodifiedHelp
public static final String _fileHelp
public ReplacerAdapter(Domain domain)
public ReplacerAdapter target(Object target)
public ReplacerAdapter target(File base)
public int findMacro(CharSequence line, int index)
line
- The line with the macroindex
- Points to the character after the '$'public static char getTerminator(char c)
public String _replace(String[] args)
args
- public String _lsr(String[] args)
public String system_internal(boolean allowFail, String[] args) throws Exception
args
- help
- patterns
- low
- high
- Exception
public String _system_allow_fail(String[] args) throws Exception
Exception
public String _cat(String[] args) throws IOException
in
- IOException
public static void verifyCommand(String[] args, String help, Pattern[] patterns, int low, int high)
public Map<String,String> getFlattenedProperties()
public static Properties getParent(Properties p)
public String _random(String[] args)
public void setReporter(Reporter reporter)
public int _processors(String[] args)
public long _maxMemory(String[] args)
public long _freeMemory(String[] args)
public long _nanoTime(String[] args)
public void addTarget(Object target)
public void removeTarget(Object target)
Copyright © 2015 aQute SARL. All rights reserved.