public class ExpressionSemantics extends java.lang.Object implements SemanticChecks
Modifier and Type | Field and Description |
---|---|
private AttributeSemantics |
_attributeSemantics |
private RealAttributeSemantics |
_realAttributeSemantics |
private SymbolTable |
_symbolTable |
private java.util.Map<TempAttributeDescription,antlr.collections.AST> |
_tempAttributesUsedInFilterExpression |
Constructor and Description |
---|
ExpressionSemantics(Semantics semantics,
AttributeSemantics attributeSemantics,
RealAttributeSemantics realAttributeSemantics) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp(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.
|
private SymbolTable _symbolTable
private AttributeSemantics _attributeSemantics
private RealAttributeSemantics _realAttributeSemantics
private java.util.Map<TempAttributeDescription,antlr.collections.AST> _tempAttributesUsedInFilterExpression
public ExpressionSemantics(Semantics semantics, AttributeSemantics attributeSemantics, RealAttributeSemantics realAttributeSemantics)
semantics
- attributeSemantics
- realAttributeSemantics
- public AttributeDescription[] createExpressionAttribute(antlr.collections.AST ast, java.util.List<java.lang.String> parts, boolean isTempAttribute, antlr.collections.AST padData) throws CriticalParserException
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, muss padData
ungleich null
sein.CriticalParserException
- Falls das Attribut nicht identifiziert werden konntepublic void cleanUp(ProcessingParameter pp, boolean processScript) throws SemanticErrorException
SemanticChecks
cleanUp
in interface SemanticChecks
pp
- AuftragsparameterprocessScript
- Fals true, dann müssen die Daten bereit für die Datenaufbereitung sein.SemanticErrorException
- Fehler bei der semantischen Überprüfung.SemanticChecks.cleanUp(de.bsvrz.pua.prot.util.ProcessingParameter,boolean)