|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.synccharts.text.interfaces.bridge.InterfaceDeclProcessorWrapper
public class InterfaceDeclProcessorWrapper
Wrapping class to communicate between trigger listener and the acutal serialize/parse commands.
Field Summary | |
---|---|
static boolean |
PARSE
determines that the interface declaration string should be parsed into internal syncchart objects. |
static boolean |
SERIALIZE
determines that the internal signals and variables should be serialized into the interface declaration string. |
Constructor Summary | |
---|---|
InterfaceDeclProcessorWrapper()
Constructor. |
Method Summary | |
---|---|
Command |
getCanonialSerializeCommand(State s)
|
Command |
getParseCommand(State state)
Command parses the interface declaration of a state. |
Command |
getSerializationCommand(State state,
EObject changedSignalOrVar)
return serialization command suited for any other change than the previous constructor is covering. |
Command |
getSerializationCommand(State state,
EObject changedSignalOrVar,
String oldName,
int occurredChange)
return serialization command suited if a signal's or variable's name changed, something was added/deleted, or some change within a region occured. |
static void |
processInterfaceDecl(EObject parent,
boolean parse)
public connection for the handler. |
void |
processInterfaceDeclCommand(EObject parent,
boolean parse)
Creates an InterfaceDeclParseCommand, and executes it via the command stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean PARSE
public static final boolean SERIALIZE
Constructor Detail |
---|
public InterfaceDeclProcessorWrapper()
Method Detail |
---|
public Command getSerializationCommand(State state, EObject changedSignalOrVar, String oldName, int occurredChange)
state
- the root state containing the ifdecl.changedSignalOrVar
- either the changed signal or the variable.oldName
- if there was a renaming - the name prior modifyingoccurredChange
- determines the change that occurred
public Command getSerializationCommand(State state, EObject changedSignalOrVar)
state
- the root state containing the ifdecl.changedSignalOrVar
- either the changed signal or the variable.
public Command getParseCommand(State state)
state
- state whose interface declaration should be parsed
public static void processInterfaceDecl(EObject parent, boolean parse) throws Exception
parent
- parent state containing the interface declaration.parse
- determine whether to parse or serialize.
Exception
- if there was a problem executing on the command stack.public void processInterfaceDeclCommand(EObject parent, boolean parse) throws KielerModelException
parent
- parent state containing the interface declaration.parse
- determine whether to parse or serialize.
KielerModelException
- if something else than a state was passed as parent.public Command getCanonialSerializeCommand(State s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |