|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Expr | |
condor.classad | Java implementation of Condor "Classified Advertisements". |
Uses of Expr in condor.classad |
Subclasses of Expr in condor.classad | |
class |
AttrRef
A reference to another attribute. |
class |
CondExpr
A conditional expression. |
class |
Constant
A constant (Integer, Real, etc.). |
class |
FuncCall
A function call. |
class |
ListExpr
A list of expressions. |
class |
Op
A unary or binary expression. |
class |
RecordExpr
A "record" expression (also known as a "classad"). |
class |
SelectExpr
An internal (non-leaf) node of an expression tree, representing a selection of component of a record. |
class |
SubscriptExpr
A selection from a list. |
Fields in condor.classad declared as Expr | |
Expr[] |
FuncCall.args
The parameters to the function. |
Expr |
SubscriptExpr.base
The left argument (base expression) of the subscript operator. |
Expr |
SubscriptExpr.selector
The right argument (subscript) of the selection operator. |
Expr |
SelectExpr.base
The left argument (base expression) of the selection operator. |
Expr[] |
Query.selectClause
The expressions in the SelectionClause. |
Expr |
Query.whereClause
The "where" clause or null if the "where" clause was omitted. |
Expr |
Op.arg1
The first (or only) operand. |
Expr |
Op.arg2
The second operand; null if the operator is unary. |
Expr |
CondExpr.ec
The condition (first component of the expression). |
Expr |
CondExpr.et
The true part (second component of the expression). |
Expr |
CondExpr.ef
The false part (third component of the expression). |
Methods in condor.classad that return Expr | |
static Expr |
FuncCall.getInstance(AttrName func,
List params)
Create a function node from a name and a list of paramters. |
protected Expr |
FuncCall.eval1(Expr.Env env)
Evaluate this Expr. |
protected Expr |
SubscriptExpr.eval1(Expr.Env env)
Evaluate this Expr. |
static Expr |
SelectExpr.select(Expr base,
String[] sel)
A convenience function for creating a SelectExpression corresponding to "base.a.b.c". |
protected Expr |
SelectExpr.eval1(Expr.Env env)
Evaluate this Expr. |
Expr |
RecordExpr.lookup(String name)
Find the attribute with the given name in this RecordExpr. |
Expr |
RecordExpr.lookup(AttrName name,
Expr.Env env)
Find the attribute with the given name in this RecordExpr or one of its ancestors. |
Expr |
RecordExpr.lookup(AttrName name)
Find the attribute with the given name. |
Expr |
RecordExpr.removeAttribute(AttrName attr)
Delete an attribute. |
protected Expr |
RecordExpr.eval1(Expr.Env env)
Evaluate this Expr. |
protected Expr |
Op.eval1(Expr.Env env)
Evaluate this Expr. |
Expr |
ListExpr.sub(int i)
Get a member of this list. |
Expr |
ListExpr.add(Expr e)
Appends the specified Expr to the end of this list. |
protected Expr |
ListExpr.eval1(Expr.Env env)
Evaluate this Expr. |
static Expr |
Builtin.strcat(Expr[] args)
Converts each argument to a string and returns the concatenation of the values. |
static Expr |
Builtin.substr(Expr[] args)
Returns a substring of a string. |
static Expr |
Builtin.strcmp(Expr s1,
Expr s2)
Compares two strings. |
static Expr |
Builtin.stricmp(Expr s1,
Expr s2)
Compares two strings ignoring differences in case. |
static Expr |
Builtin.glob(Expr str,
Expr pat)
Compares a string with a shell-style "glob" pattern. |
static Expr |
Builtin.iglob(Expr str,
Expr pat)
Compares a string with a shell-style "glob" pattern, ignoring case. |
static Expr |
Builtin.Int(Expr arg)
Convert to integer. |
static Expr |
Builtin.real(Expr arg)
Convert to real. |
static Expr |
Builtin.string(Expr s)
Converts the argument to a string. |
static Expr |
Builtin.relTime(Expr arg)
Convert to relative time. |
static Expr |
Builtin.absTime(Expr[] args)
Convert to absolute time. |
static Expr |
Builtin.floor(Expr arg)
Returns an integer constant corresponding to the floor of the value of arg. |
static Expr |
Builtin.ceiling(Expr arg)
Returns an integer constant corresponding to the ceiling of the value of arg. |
static Expr |
Builtin.round(Expr arg)
Returns an integer constant corresponding to the value of arg rounded to the nearest integer. |
static Expr |
Builtin.unixTime()
Get the current time in seconds since the epoch. |
static Expr |
Builtin.timeInterval(Expr secs)
Convert a number of seconds into a time interval string of the form "days+hh:mm:ss". |
static Expr |
Builtin.gmtTime(Expr secs)
Convert a time constant to a string in "Unix" format, using GMT. |
static Expr |
Builtin.gmtTimeString(Expr secs)
Convert a time constant to a string in "Unix" format, using GMT. |
static Expr |
Builtin.localTimeString(Expr secs)
Convert a time constant to a string in "Unix" format, using the local time zone. |
protected abstract Expr |
Expr.eval1(Expr.Env env)
Evaluate this Expr. |
Expr |
Expr.eval(Expr.Env env)
Evaluate this Expr in a given environment. |
Expr |
Expr.eval()
Evaluate this Expr in a "top-level" (empty) environment. |
Expr |
Expr.Env.search(AttrName name)
Search for a given attribute name in the RecordExprs on the stack, from innermost to outermost. |
protected Expr |
Constant.eval1(Expr.Env env)
Evaluates this Expr. |
protected Expr |
CondExpr.eval1(Expr.Env env)
Evaluate this Expr. |
Expr |
ClassAdSAXHandler.getResult()
Get the result of the most recent parse, if any. |
Expr |
ClassAdParser.parse(boolean acceptPrefix)
Parse a classsad Expr from the current input stream. |
Expr |
ClassAdParser.parse()
Parse a classsad Expr from the current input stream. |
static Expr |
ClassAd.eval(RecordExpr ad,
String[] attrs)
Evaluate a selection from a ClassAd. |
static Expr |
ClassAd.eval(RecordExpr ad,
String attr)
Evaluate a selection from a ClassAd. |
static Expr |
ClassAd.eval(String name,
Expr expr,
RecordExpr ad)
Evaluate an expression in the context of a ClassAd. |
static Expr |
ClassAd.eval(String attr,
RecordExpr ad1,
RecordExpr ad2)
Evaluate an attribute of a ClassAd in an environment consisting of a pair of ads. |
protected Expr |
AttrRef.eval1(Expr.Env env)
Evaluate this Expr. |
Methods in condor.classad with parameters of type Expr | |
void |
ClassAdWriter.println(Expr exp)
Print a classad expression and then terminate the line. |
void |
ClassAdWriter.print(Expr exp)
Print a classad expression. |
static Expr |
SelectExpr.select(Expr base,
String[] sel)
A convenience function for creating a SelectExpression corresponding to "base.a.b.c". |
RecordExpr |
RecordExpr.insertAttribute(String name,
Expr expr)
Add an attribute (replacing previous value if any). |
RecordExpr |
RecordExpr.insertAttribute(AttrName key,
Expr expr)
Add an attribute (replacing previous value if any). |
Expr |
ListExpr.add(Expr e)
Appends the specified Expr to the end of this list. |
static Expr |
Builtin.strcat(Expr[] args)
Converts each argument to a string and returns the concatenation of the values. |
static Expr |
Builtin.substr(Expr[] args)
Returns a substring of a string. |
static Expr |
Builtin.strcmp(Expr s1,
Expr s2)
Compares two strings. |
static Expr |
Builtin.stricmp(Expr s1,
Expr s2)
Compares two strings ignoring differences in case. |
static Expr |
Builtin.glob(Expr str,
Expr pat)
Compares a string with a shell-style "glob" pattern. |
static Expr |
Builtin.iglob(Expr str,
Expr pat)
Compares a string with a shell-style "glob" pattern, ignoring case. |
static Expr |
Builtin.Int(Expr arg)
Convert to integer. |
static Expr |
Builtin.real(Expr arg)
Convert to real. |
static Expr |
Builtin.string(Expr s)
Converts the argument to a string. |
static Expr |
Builtin.relTime(Expr arg)
Convert to relative time. |
static Expr |
Builtin.absTime(Expr[] args)
Convert to absolute time. |
static Expr |
Builtin.floor(Expr arg)
Returns an integer constant corresponding to the floor of the value of arg. |
static Expr |
Builtin.ceiling(Expr arg)
Returns an integer constant corresponding to the ceiling of the value of arg. |
static Expr |
Builtin.round(Expr arg)
Returns an integer constant corresponding to the value of arg rounded to the nearest integer. |
static Expr |
Builtin.timeInterval(Expr secs)
Convert a number of seconds into a time interval string of the form "days+hh:mm:ss". |
static Expr |
Builtin.gmtTime(Expr secs)
Convert a time constant to a string in "Unix" format, using GMT. |
static Expr |
Builtin.gmtTimeString(Expr secs)
Convert a time constant to a string in "Unix" format, using GMT. |
static Expr |
Builtin.localTimeString(Expr secs)
Convert a time constant to a string in "Unix" format, using the local time zone. |
static Expr |
ClassAd.eval(String name,
Expr expr,
RecordExpr ad)
Evaluate an expression in the context of a ClassAd. |
static int[] |
ClassAd.match(Expr expr1,
Expr expr2)
Match two ClassAds. |
Constructors in condor.classad with parameters of type Expr | |
SubscriptExpr(Expr base,
Expr selector)
Create a new SubscriptExpr. |
|
SelectExpr(Expr base,
String selector)
Create a new SelectExpr corresponding to base.selector . |
|
SelectExpr(Expr base,
AttrName selector)
Create a new SelectExpr corresponding to base.selector . |
|
Query(Expr[] s,
String[] n,
String f,
Expr w)
Construct a query from its components. |
|
Op(int op,
Expr arg1,
Expr arg2)
Construct a node for a binary operator. |
|
Op(int op,
Expr arg1)
Construct a node for a unary operator. |
|
CondExpr(Expr ec,
Expr et,
Expr ef)
Construct a conditional expression from its three components. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |