Value Expressions

annotated by — Returns the object that is annotated by an annotation
array of — Returns a type that is an array of the supplied type
bundles containing — Returns the bundles containing a string resource
classes containing — Returns the classes that contain the class members in the set
classes of — Returns the class of an annotation
classes with — Returns the classes that are referenced by the types in the set
count — return the number of items in a set
each — Makes the value of a set item available in a value expression unchange
fields referenced by — Returns the fields referenced by a set of field references
first — Return the first item in a set
group of — Create a count-preserving expression from a group value expression
methods called by — Returns the methods called be a set of calls
methods containing — Returns the methods containing a set of references
methods of — Returns the method of an argument
names of — Returns the string constant representing the name of a string resource
number — a numeric constant
packages of (Java)/namespaces of (C#/CIL) — Returns the package that contains a class
string expression — a string
strings referenced by — Returns the string referenced by a string reference
substitute — Change a string by regular expression substitution
to string — Converts an object to its string representation
type — Returns the type named by a certain string
type of — return the type that references a class, or the type of a field or an argument, or the return type of a function.
type referenced by — Returns the type that an array type is an array of

Count-preserving and group value expressions share many of the properties of transforms.[3] Scalar value expressions can be used as simple set-expressions, as well as with value operators. The available value expressions are listed including the context in which they may be applied.


Here, a group-context value expression is used as a transform to change the set of methods in a class to the count of the number of methods in the class:

count methods in class "ObjectDB"

Here, the group-context value expression is converted into a count-preserving value expression with the group of operator, and that is compared with a scalar expression (a numeric constant) with a relational operator to make a filter that is applied to the set expression.

( count of ( arguments of ) > 1 ) methods in class "ObjectDB"

[3] Some value expressions were transforms in previous releases of the language; they can still be used as transforms, and also used with value-expression specific operators.

browse-by-query home antlersoft free software sourceforge project page