| Package | Description |
|---|---|
| org.databene.script | |
| org.databene.script.expression |
| Modifier and Type | Class and Description |
|---|---|
class |
QNBeanSpecExpression
Expression instance that evaluates the Benerator script notation for Java object specification
as one of the following:
reference: myInstance
class name: com.my.SpecialClass
constructor invocation: new com.my.SpecialClass(3, 'test')
JavaBean property syntax: new com.my.SpecialClass[id=3, name='test']
Created at 08.10.2009 18:15:15 |
class |
QNExpression
Expression implementation that evaluates a qualified name as attributes of an object reference or
static fields of a Java class. |
class |
QNInvocationExpression
Expression implementation that evaluates an invocation syntax on a qualified name
as static method call or call on an object reference. |
| Modifier and Type | Field and Description |
|---|---|
protected Expression<Boolean> |
ExpressionBasedFilter.expression |
| Modifier and Type | Method and Description |
|---|---|
Expression<?> |
Assignment.getExpression() |
static Expression<?> |
DatabeneScriptParser.parseBeanSpec(String text) |
static Expression<?>[] |
DatabeneScriptParser.parseBeanSpecList(String text) |
static Expression<?> |
DatabeneScriptParser.parseExpression(String text) |
| Constructor and Description |
|---|
Assignment(String name,
Expression<?> expression) |
ExpressionBasedFilter(Expression<Boolean> expression,
org.databene.commons.Context context) |
QNInvocationExpression(String[] qn,
Expression<?>[] argExpressions) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
WrapperExpression<E>
New common interface for scanning through
Expressions that wrap other expressions. |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayJoinExpression<E>
Expression implementation which assembles other expression that evaluate to arrays
and joins their results to a single array. |
class |
AssignmentExpression
Evaluates an assignment expression like
x.y = f.d + 3. |
class |
BeanConstruction<E>
Expression implementation that instantiates a JavaBean by default constructor and
calls its property setters for initializing state. |
class |
BinaryExpression<E>
Abstract parent class for expression that evaluate two terms.
|
class |
BitwiseAndExpression
Combines two values with a bitwise AND operation.
|
class |
BitwiseComplementExpression
Expression that evaluates to the bitwise complement of another expression's result. |
class |
BitwiseExclusiveOrExpression
Numerical
Expression that combines the results
of two other numerical expressions with a bitwise EXCLUSIVE OR. |
class |
BitwiseOrExpression
Numerical
Expression that combines the results of two other numerical expressions
with a bitwise OR. |
class |
CompositeExpression<S,R>
Expression that evaluates the results of other Expressions.
|
class |
ConcatExpression
String
Expression that concatenates the output of other String Expressions. |
class |
ConditionalAndExpression
Boolean
Expression that combines the result
of two other boolean expressions with a logical AND. |
class |
ConditionalExpression<E>
Expression implementation that evaluates a boolean (condition) expression
and, depending if the result was true or false, evaluates the first or second expression delegate. |
class |
ConditionalOrExpression
Boolean
Expression that combines the results of two other
boolean expressions with a logical OR. |
class |
ConstantExpression<E>
Expression that represents and returns a constant value.
|
class |
Construction<E>
Common parent class for Expressions that instantiate a Java object.
|
class |
ConvertingExpression<S,T>
Expression adapter that uses a Converter for converting
the result of a given expression (e.g. to a different type). |
class |
DefaultConstruction<E>
Instantiates a class by default constructor.
|
class |
DivisionExpression
Expression that performs a division. |
class |
DynamicExpression<E>
Non-constant
Expression. |
class |
EqualsExpression
Boolean
Expression that compares two terms for equality of their results. |
class |
ExclusiveOrExpression
Boolean
Expression that checks if the result of one
expressions is less than the result of another one. |
class |
ExpressionAdapter<S,T>
Adapter that makes use of a 'source' expression of one type
to calculate and return a result of a possibly different type.
|
class |
ExpressionProxy<E>
Parent class for all expression classes that act as proxy of another class.
|
class |
FallbackExpression<E>
Expression which evaluates a list of expressions and returns the first result which is not null.
|
class |
FeatureAccessExpression<E>
Expression implementation that evaluates a feature value of an object.
|
class |
FieldExpression
Evaluates an attribute of an object or class.
|
class |
ForNameExpression
Resolves a class by its class name.
|
class |
GreaterExpression
Boolean
Expression that evaluates if the first term is greater than the second. |
class |
GreaterOrEqualsExpression
Boolean
Expression that evaluates
if term1 is greater than or equal to term2. |
class |
IndexExpression
Expression that evaluates an index argument. |
class |
InRangeExpression
Boolean
Expression that tells if a value lies within a given range. |
class |
InvocationExpression
Expression implementation that evaluates a method on a class or object. |
class |
IsNullExpression
Expression that returns
true, if a source expression returns null,
else false. |
class |
LeftShiftExpression
Expression that performs a left shift. |
class |
LessExpression
Boolean
Expression that checks if the result of one
expressions is less than the result of another one. |
class |
LessOrEqualsExpression
Boolean
Expression that checks if the results of two other expressions are less or equal. |
class |
LogicalComplementExpression
Expression that evaluates to the logical complement of another expression's result. |
class |
MaxExpression<E>
Calculates the maximum value of several arguments.
|
class |
MinExpression<E>
Expression implementation that calculates the minimum of several values. |
class |
ModuloExpression
Numerical
Expression that performs a modulo operation. |
class |
MultiplicationExpression
Numerical
Expression that multiplies the results of two other numerical expressions. |
class |
NotEqualsExpression
Boolean
Expression that checks for inequality. |
class |
NullExpression
Expression that resolves to null.
|
class |
ParameterizedConstruction<E>
Expression implementation that instantiates a Java object by constructor invocation. |
class |
RightShiftExpression
Numerical
Expression that performs a right shift. |
class |
StaticMethodCallExpression
Expression implementation that performs a static method call. |
class |
StringExpression
|
class |
SubtractionExpression
Numerical
Expression that performs a subtraction. |
class |
SumExpression
Calculates the sum of two or more expressions.
|
class |
TypeConvertingExpression<E>
Expression implementation that evaluates another expression and converts its results. |
class |
UnaryExpression<E>
Abstract
Expression that serves as parent class for expressions that evaluate a single term. |
class |
UnaryMinusExpression<E>
Expression which calculates the unary minus operation. |
class |
UnescapeExpression
Expression proxy which unescapes the output of its source. |
class |
UnsignedRightShiftExpression
Expression that performs an unsigned right shift (>>>). |
class |
ValueCollectionContainsExpression
Boolean
Expression which tells if a value is contained in a given collection. |
| Modifier and Type | Field and Description |
|---|---|
protected Expression<String> |
ForNameExpression.className |
protected Expression<S> |
ExpressionAdapter.source |
protected Expression<?> |
UnaryExpression.term |
protected Expression<?> |
BinaryExpression.term1 |
protected Expression<?> |
BinaryExpression.term2 |
protected Expression<S>[] |
CompositeExpression.terms |
| Modifier and Type | Method and Description |
|---|---|
static <T> Expression<T> |
ExpressionUtil.constant(T value) |
Expression<?>[] |
WrapperExpression.getSourceExpressions() |
Expression<?>[] |
UnaryExpression.getSourceExpressions() |
Expression<?>[] |
CompositeExpression.getSourceExpressions() |
Expression<?>[] |
BinaryExpression.getSourceExpressions() |
Expression<S>[] |
CompositeExpression.getTerms() |
static <T> Expression<T> |
ExpressionUtil.simplify(Expression<T> expression,
org.databene.commons.Context context) |
Expression<String> |
ExpressionUtil.unescape(Expression<String> source) |
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeExpression.addTerm(Expression<S> term) |
static <T> T |
ExpressionUtil.evaluate(Expression<T> expression,
org.databene.commons.Context context) |
static Object[] |
ExpressionUtil.evaluateAll(Expression<?>[] expressions,
org.databene.commons.Context context) |
static boolean |
ExpressionUtil.isNull(Expression<?> ex) |
static <T> Expression<T> |
ExpressionUtil.simplify(Expression<T> expression,
org.databene.commons.Context context) |
Expression<String> |
ExpressionUtil.unescape(Expression<String> source) |
| Modifier and Type | Method and Description |
|---|---|
static List<Object> |
ExpressionUtil.evaluateAll(List<Expression<?>> expressions,
org.databene.commons.Context context) |
Copyright © 2011–2014 Volker Bergmann. All rights reserved.