Class ExpressionSemantics
- java.lang.Object
-
- de.bsvrz.pua.prot.interpreter.semantics.ExpressionSemantics
-
- All Implemented Interfaces:
SemanticChecks
public class ExpressionSemantics extends java.lang.Object implements SemanticChecks
Überprüf die Semantik von in Ausdrücken eingetragenen Attributen.
-
-
Constructor Summary
Constructors Constructor Description ExpressionSemantics(Semantics semantics, AttributeSemantics attributeSemantics, RealAttributeSemantics realAttributeSemantics)
-
Method Summary
Modifier and Type Method Description voidcleanUp(ProcessingParameter pp, boolean processScript)Führt semantische Überprüfungen durch.AttributeDescription[]createExpressionAttribute(antlr.collections.AST ast, java.util.List<java.lang.String> parts, boolean isTempAttribute, antlr.collections.AST padData)Prüft ein Attribut, das in einem Ausdruck vorkommt und fügt es zu den Informationen für die Datenaufbereitung hinzu.
-
-
-
Constructor Detail
-
ExpressionSemantics
public ExpressionSemantics(Semantics semantics, AttributeSemantics attributeSemantics, RealAttributeSemantics realAttributeSemantics)
- Parameters:
semantics- SemanticsattributeSemantics- AttributeSemanticsrealAttributeSemantics- RealAttributeSemantics
-
-
Method Detail
-
createExpressionAttribute
public AttributeDescription[] createExpressionAttribute(antlr.collections.AST ast, java.util.List<java.lang.String> parts, boolean isTempAttribute, antlr.collections.AST padData) throws CriticalParserException
Prüft ein Attribut, das in einem Ausdruck vorkommt und fügt es zu den Informationen für die Datenaufbereitung hinzu.- Parameters:
ast- Knoten (wird nur für Zeilenangabe in der Fehlermeldung benötigt)parts- Die Qualifizierung des AttributsisTempAttribute- false: Attribut in einem Filter-Ausdruck verwendet. true: Attribut wird bei der Definition eines temporären Attributs verwendetpadData- Falls das Auffüllen von Daten unterbleiben soll, musspadDataungleichnullsein.- Returns:
- AttributeDescription Attributbeschreibung eines realen oder temporären Attributs
- Throws:
CriticalParserException- Falls das Attribut nicht identifiziert werden konnte
-
cleanUp
public void cleanUp(ProcessingParameter pp, boolean processScript) throws SemanticErrorException
Description copied from interface:SemanticChecksFührt semantische Überprüfungen durch. Diese Standardimplementierung führt keine Tests durch.- Specified by:
cleanUpin interfaceSemanticChecks- Parameters:
pp- AuftragsparameterprocessScript- Fals true, dann müssen die Daten bereit für die Datenaufbereitung sein.- Throws:
SemanticErrorException- Fehler bei der semantischen Überprüfung.- See Also:
SemanticChecks.cleanUp(de.bsvrz.pua.prot.util.ProcessingParameter,boolean)
-
-