|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.pua.prot.interpreter.semantics.Semantics
public class Semantics
Diese Klasse bietet Methoden zum Überprüfen der Semantik eines Skripts.
Semantics wird vom ProtocolParser
und
ProtocolTreeWalker
verwendet, um die Semantik des Skripts zu überprüfen.
Falls processScript
true ist, dann wird überprüft, ob jede Qualifizierung
ein Objekt enthält. Enthält sie statt des Objekts einen Objekttyp, so wird eine
CriticalParserException
geworfen.
Dies ist notwendig, da zur Datenaufbereitung konkrete Objekte benötigt werden.
Vor der Verwendung von pi
durch andere Klassen muss
SemanticChecks.cleanUp(ProcessingParameter, boolean)
aufgerufen werden, um abschließende semantische Überprüfungen durchzuführen.
Field Summary | |
---|---|
protected ProcessingInformation |
pi
Datenobjekt, in dem alle zur Datenaufbereitung notwendigen Daten abgelegt werden |
protected SymbolTable |
symbolTable
Symboltabelle |
Constructor Summary | |
---|---|
Semantics(DataModel model,
SymbolTable symbol,
ProcessingInformation pi)
Konstruktor. |
Method Summary | |
---|---|
void |
cleanUp(ProcessingParameter pp,
boolean processScript)
Führt abschließende Semantiküberprüfungen durch und stellt die zur Datenaufbereitung notwendigen Informationen in pi zusammen. |
AggregationSemantics |
getAggregationSemantics()
|
AttributeGroupSemantics |
getAttributeGroupSemantics()
|
AttributeSemantics |
getAttributeSemantics()
|
MemberCheck |
getCheck()
Liefert das Hilfsobjekt für Typüberprüfungen zurück. |
ExpressionSemantics |
getExpressionSemantics()
|
MiscellaneousSemantics |
getMiscSemantics()
|
ProcessingInformation |
getProcessingInformation()
Gibt die zur Datenaufbereitung notwendigen Informationen zurück. |
RealAttributeSemantics |
getRealAttributeSemantics()
|
ScopeSemantics |
getScopeSemantics()
|
TempAttributeSemantics |
getTempAttributeSemantics()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SymbolTable symbolTable
protected ProcessingInformation pi
Constructor Detail |
---|
public Semantics(DataModel model, SymbolTable symbol, ProcessingInformation pi) throws CriticalParserException
model
- Verbindung zur Konfigurationsymbol
- Symboltabellepi
- Objekt, in das die gewonnenen Informationen abgelegt werden sollen
CriticalParserException
- Falls einer der Parameter null istMethod Detail |
---|
public void cleanUp(ProcessingParameter pp, boolean processScript) throws SemanticErrorException
pi
zusammen.
Dabei werden die SemanticChecks.cleanUp(ProcessingParameter, boolean)
Methoden
aller Objekte, die Semantiküberprüfungen durchführen, aufgerufen.
Außerdem wird, falls processScript
true ist, überprüft,
ob alle Aspekte gebunden werden konnten.
cleanUp
in interface SemanticChecks
pp
- AuftragsparameterprocessScript
- true
wenn ein Protokoll erstellt werden soll. false
sonst.
SemanticErrorException
- Falls es zu einem Fehler bei der Überprüfung
kommtpublic ProcessingInformation getProcessingInformation()
public MemberCheck getCheck()
public AggregationSemantics getAggregationSemantics()
public AttributeGroupSemantics getAttributeGroupSemantics()
public AttributeSemantics getAttributeSemantics()
public ExpressionSemantics getExpressionSemantics()
public MiscellaneousSemantics getMiscSemantics()
public RealAttributeSemantics getRealAttributeSemantics()
public ScopeSemantics getScopeSemantics()
public TempAttributeSemantics getTempAttributeSemantics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |