Package eu.europa.ted.efx.model
Class Expression
- java.lang.Object
-
- eu.europa.ted.efx.model.CallStackObjectBase
-
- eu.europa.ted.efx.model.Expression
-
- Direct Known Subclasses:
Expression.BooleanExpression,Expression.DateExpression,Expression.DurationExpression,Expression.ListExpressionBase,Expression.NumericExpression,Expression.PathExpression,Expression.StringExpression,Expression.TimeExpression
public class Expression extends CallStackObjectBase
This class represents an expression in the target scripting language. The class is used to restrict the parameter types and return types of the methods that the EFX translator calls. This makes it easier for users to understand the nature and usage of each parameter when implementingScriptGenerator,MarkupGeneratorandSymbolResolverinterfaces for translating to a new target language. It also enables to EFX translator to perform type checking of EFX expressions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExpression.BooleanExpressionRepresents a boolean expression, value or literal in the target language.static classExpression.BooleanListExpressionUsed to represent a list of booleans in the target language.static classExpression.DateExpressionRepresents a date expression or value in the target language.static classExpression.DateListExpressionUsed to represent a list of dates in the target language.static classExpression.DurationExpressionRepresents a duration expression, value or literal in the target language.static classExpression.DurationListExpressionUsed to represent a list of durations in the target language.static classExpression.ListExpression<T extends Expression>Used to represent a list of strings in the target language.static classExpression.ListExpressionBasestatic classExpression.NumericExpressionRepresents a numeric expression, value or literal in the target language.static classExpression.NumericListExpressionUsed to represent a list of numbers in the target language.static classExpression.PathExpressionAn PathExpression points to a node in your data set.static classExpression.StringExpressionRepresents a string expression, value or literal in the target language.static classExpression.StringListExpressionUsed to represent a list of strings in the target language.static classExpression.TimeExpressionRepresents a time expression, value or literal in the target language.static classExpression.TimeListExpressionUsed to represent a list of times in the target language.
-
Field Summary
Fields Modifier and Type Field Description static Map<String,Class<? extends Expression>>listTypesListExpression types equivalent to eFroms types.StringscriptStores the expression represented in the target language.static Map<String,Class<? extends Expression>>typeseForms types are mapped to Expression types.
-
Constructor Summary
Constructors Constructor Description Expression(String script)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static <T extends Expression>
Tinstantiate(String value, Class<T> type)
-
-
-
Field Detail
-
types
public static final Map<String,Class<? extends Expression>> types
eForms types are mapped to Expression types.
-
listTypes
public static final Map<String,Class<? extends Expression>> listTypes
ListExpression types equivalent to eFroms types.
-
script
public final String script
Stores the expression represented in the target language.
-
-
Constructor Detail
-
Expression
public Expression(String script)
-
-