You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by gr...@apache.org on 2010/09/22 11:47:20 UTC
svn commit: r999845 -
/incubator/etch/trunk/compiler/src/main/java/org/apache/etch/compiler/ast/Message.java
Author: grandyho
Date: Wed Sep 22 09:47:20 2010
New Revision: 999845
URL: http://svn.apache.org/viewvc?rev=999845&view=rev
Log:
fix in message.java: added missing util methods for c compiler templates (remote_server_h.vm)
Modified:
incubator/etch/trunk/compiler/src/main/java/org/apache/etch/compiler/ast/Message.java
Modified: incubator/etch/trunk/compiler/src/main/java/org/apache/etch/compiler/ast/Message.java
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/compiler/src/main/java/org/apache/etch/compiler/ast/Message.java?rev=999845&r1=999844&r2=999845&view=diff
==============================================================================
--- incubator/etch/trunk/compiler/src/main/java/org/apache/etch/compiler/ast/Message.java (original)
+++ incubator/etch/trunk/compiler/src/main/java/org/apache/etch/compiler/ast/Message.java Wed Sep 22 09:47:20 2010
@@ -114,6 +114,24 @@ public class Message extends ParamList<S
/**
*
+ * @return true if this message's direction is server
+ */
+ public boolean isMsgDirServer()
+ {
+ return md == MessageDirection.SERVER;
+ }
+
+ /**
+ *
+ * @return true if this message's direction is client
+ */
+ public boolean isMsgDirClient()
+ {
+ return md == MessageDirection.CLIENT;
+ }
+
+ /**
+ *
* @return trus if this message's direction is both
*/
public boolean isMsgDirBoth()