|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Objectcondor.classad.Builtin
A library of builtin functions.
All functions are static and public and match the signature restrictions
documented by ClassAd.loadJavaLibrary(String).
Functions that violate these restrictions would be silently ignored.
FuncCall,
ClassAd.loadJavaLibrary(java.lang.String)| Method Summary | |
static Expr |
absTime(Expr[] args)
Convert to absolute time. |
static Expr |
allcompare(Expr s,
Expr l,
Expr t)
Compares a value to the elements of a list. |
static Expr |
anycompare(Env env,
Expr s,
Expr l,
Expr t)
Compares a value to the elements of a list. |
static Expr |
avg(Expr l)
Computes the average of a list of numbers. |
static Expr |
ceiling(Expr arg)
Returns an integer constant corresponding to the ceiling of the value of arg. |
static Expr |
floor(Expr arg)
Returns an integer constant corresponding to the floor of the value of arg. |
static Expr |
formatTime(Expr t,
Expr f)
Formats an AbsTime with strftime-like escapes. |
static Expr |
glob(Expr str,
Expr pat)
Deprecated. Should be replaced by regexp pattern match. |
static Expr |
gmtTimeString(Expr secs)
Deprecated. Replaced by formatTime(). |
static Expr |
identicalMember(Env env,
Expr expr,
Expr list)
Checks whether "list" is a ListExpr containing a member that is equal to "expr" in the sense of "IS". |
static Expr |
iglob(Expr str,
Expr pat)
Deprecated. Should be replaced by regexp pattern match. |
static Expr |
Int(Expr arg)
Convert to integer. |
static Expr |
interval(Expr secs)
Convert a number of seconds into a time interval string of the form "days+hh:mm:ss". |
static Expr |
isAbstime(Env env,
Expr expr)
Tests whether "expr" evaluates to an absTime constant. |
static Expr |
isBoolean(Env env,
Expr expr)
Tests whether "expr" evaluates to a boolean (TRUE or FALSE). |
static Expr |
isClassad(Env env,
Expr expr)
Tests whether "expr" evaluates to a record expression. |
static Expr |
isError(Env env,
Expr expr)
Tests whether "expr" evaluates to an error. |
static Expr |
isInteger(Env env,
Expr expr)
Tests whether "expr" evaluates to an integer. |
static Expr |
isList(Env env,
Expr expr)
Tests whether "expr" evaluates to a list. |
static Expr |
isReal(Env env,
Expr expr)
Tests whether "expr" evaluates to a real. |
static Expr |
isReltime(Env env,
Expr expr)
Tests whether "expr" evaluates to a relTime constant. |
static Expr |
isString(Env env,
Expr expr)
Tests whether "expr" evaluates to a string. |
static Expr |
isUndefined(Env env,
Expr expr)
Tests whether "expr" evaluates to undefined. |
static Expr |
localTimeString(Expr secs)
Deprecated. Replaced by formatTime(). |
static Expr |
max(Expr l)
Computes the maximum of a list of numbers. |
static Expr |
member(Env env,
Expr expr,
Expr list)
Checks whether "list" is a ListExpr containing a member that is equal to "expr" in the sense of "==". |
static Expr |
min(Expr l)
Computes the minimum of a list of numbers. |
static Expr |
random(Expr[] args)
Returns a random value. |
static Expr |
real(Expr arg)
Convert to real. |
static Expr |
regexp(Expr[] args)
Compares a string with a regular expression. |
static Expr |
regExpMember(Env env,
Expr expr,
Expr list)
Checks whether "list" is a ListExpr containing a member that matches "expr" in the sense of "regexp". |
static Expr |
relTime(Expr arg)
Convert to relative time. |
static Expr |
round(Expr arg)
Returns an integer constant corresponding to the value of arg rounded to the nearest integer. |
static Expr |
size(Expr obj)
Returns the size of an object. |
static Expr |
splitTime(Expr[] args)
Split a time constant into its components. |
static Expr |
strcat(Expr[] args)
Converts each argument to a string and returns the concatenation of the values. |
static Expr |
strcmp(Expr s1,
Expr s2)
Compares two strings. |
static Expr |
stricmp(Expr s1,
Expr s2)
Compares two strings ignoring differences in case. |
static Expr |
string(Expr s)
Converts the argument to a string. |
static Expr |
substr(Expr[] args)
Returns a substring of a string. |
static Expr |
sum(Expr l)
Computes the sum of a list of numbers. |
static Expr |
time()
Get the current time in seconds since the epoch. |
static Expr |
toLower(Expr expr)
Converts a string to lower case. |
static Expr |
toUpper(Expr expr)
Converts a string to upper case. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Expr isUndefined(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr isError(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr isString(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr isInteger(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr isReal(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr isList(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr isClassad(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr isBoolean(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr isAbstime(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr isReltime(Env env,
Expr expr)
env - environment for evaluating "expr"expr - the expression to test
public static Expr Int(Expr arg)
arg - the value to be converted.
public static Expr real(Expr arg)
arg - the value to be converted.
public static Expr string(Expr s)
s - str the string to convert.
public static Expr floor(Expr arg)
arg - the input value.
public static Expr ceiling(Expr arg)
arg - the input value.
public static Expr round(Expr arg)
arg - the input value.
public static Expr random(Expr[] args)
args - the arguments
public static Expr strcat(Expr[] args)
args - the arguments
public static Expr substr(Expr[] args)
args - the arguments
public static Expr strcmp(Expr s1,
Expr s2)
s1 - the first string.s2 - the second string.
public static Expr stricmp(Expr s1,
Expr s2)
s1 - the first string.s2 - the second string.
public static Expr toUpper(Expr expr)
expr - the expression to be converted
public static Expr toLower(Expr expr)
expr - the expression to be converted
public static Expr size(Expr obj)
obj - the object to be tested.
public static Expr sum(Expr l)
l - a list of expressions.
public static Expr avg(Expr l)
l - a list of expressions.
public static Expr min(Expr l)
l - a list of expressions.
public static Expr max(Expr l)
l - a list of expressions.
public static Expr member(Env env,
Expr expr,
Expr list)
env - an environment for evaluating "expr" and the members of "list"expr - the expression to search forlist - the list to search for "expr"
public static Expr identicalMember(Env env,
Expr expr,
Expr list)
env - an environment for evaluating "expr" and the members of "list"expr - the expression to search forlist - the list to search for "expr"
public static Expr regExpMember(Env env,
Expr expr,
Expr list)
env - an environment for evaluating "expr" and the members of "list"expr - the expression to search forlist - the list to search for "expr"
public static Expr anycompare(Env env,
Expr s,
Expr l,
Expr t)
env - an environment for evaluating "t" and the members of "l"s - an operatorl - a listt - value to compare to members of the list.
public static Expr allcompare(Expr s,
Expr l,
Expr t)
s - an operatorl - a listt - value to compare to members of the list.
public static Expr regexp(Expr[] args)
args - the arguments.
public static Expr glob(Expr str,
Expr pat)
str - the string to be compared againstpat - the pattern to match
public static Expr iglob(Expr str,
Expr pat)
str - the string to be compared againstpat - the pattern to match
public static Expr time()
public static Expr interval(Expr secs)
secs - the time interval in seconds.
public static Expr absTime(Expr[] args)
args - the arguments. May be either a single string (which is
parsed as an ISO 8601 date spec), or an optional number of seconds
offset from the epoch and optional number of seconds east of
Greenwhich.
public static Expr relTime(Expr arg)
arg - the value to be converted.
public static Expr splitTime(Expr[] args)
args - the arguments. May be either an AbsTime or a Realtime.
For AbsTime the result is a Record expression with attributes
Type, Year, Month, Day, Hours, Minutes, Seconds, Offset
For RelTime the result is a Record expression with attributes
Type, Days, Hours, Minutes, Seconds.
Type is "RelativeTime" or "AbsoluteTime".
public static Expr formatTime(Expr t,
Expr f)
t - the absolute time to format.f - the format
public static Expr gmtTimeString(Expr secs)
secs - the time in seconds from the epoch.
public static Expr localTimeString(Expr secs)
secs - the time in seconds from the epoch.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||