public class Exp extends java.lang.Object implements ExpressionInterface
Constructor and Description |
---|
Exp() |
Modifier and Type | Method and Description |
---|---|
ExpressionResult |
evaluate(java.util.List<ExpressionTree> expressionList,
java.util.Hashtable<RealElement,BaseDataSet> realElements,
java.util.Hashtable<TempAttributeDescription,TempAttribut> tempElements,
int pseudoObjectIndex)
Berechnet das Ergebnis der Funktion
|
java.lang.String |
getFunctionName()
Liefert den Namen der Funktion.
|
ExpressionResult.ResultType |
getResultType(java.util.List<ExpressionTree> expressionList,
antlr.collections.AST ast)
Ermittelt den Ergebnistyp.
|
public ExpressionResult evaluate(java.util.List<ExpressionTree> expressionList, java.util.Hashtable<RealElement,BaseDataSet> realElements, java.util.Hashtable<TempAttributeDescription,TempAttribut> tempElements, int pseudoObjectIndex)
ExpressionInterface
evaluate
in interface ExpressionInterface
expressionList
- Liste mit den EingabeparameternrealElements
- Mapping der realen Elemente zu den ihnen zugeordeten Werten.tempElements
- Mapping der temporären Attribute zu den ihnen zugeordneten Werten.pseudoObjectIndex
- PseudoObjectIndexpublic ExpressionResult.ResultType getResultType(java.util.List<ExpressionTree> expressionList, antlr.collections.AST ast) throws SemanticErrorException
ExpressionInterface
getResultType
in interface ExpressionInterface
expressionList
- Liste mit den Eingabeparameternast
- Abstrakter Syntaxbaum des Parsers mit Informationen wie Zeilennummern für FehlerausgabenSemanticErrorException
- Exceptionpublic java.lang.String getFunctionName()
ExpressionInterface
getFunctionName
in interface ExpressionInterface