directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r189653 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/IStates.java
Date Wed, 08 Jun 2005 22:02:56 GMT
Author: elecharny
Date: Wed Jun  8 15:02:56 2005
New Revision: 189653

URL: http://svn.apache.org/viewcvs?rev=189653&view=rev
Log:
Added two methods in this interface :
 - getGrammarName(int)
 - getGrammarName(IGrammar)

deleted the static keyword

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/IStates.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/IStates.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/IStates.java?rev=189653&r1=189652&r2=189653&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/IStates.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/grammar/IStates.java
Wed Jun  8 15:02:56 2005
@@ -25,16 +25,23 @@
  */
 public interface IStates {
     /** The initial state of every grammar */
-    public static int INIT_GRAMMAR_STATE = 0;
+    static int INIT_GRAMMAR_STATE = 0;
 
     /** The ending state for every grammars */
-    public static int GRAMMAR_END = -1;
+    static int GRAMMAR_END = -1;
     
     /** The END_STATE */
-    public static int END_STATE = -1;
+    static int END_STATE = -1;
 
     /** The mask to filter between states transition and grammar switch */
-    public final static int GRAMMAR_SWITCH_MASK = 0x0F00;
+    final static int GRAMMAR_SWITCH_MASK = 0x0F00;
     
+    /** Get the current state for a specified grammar */
     String getState( int grammar, int state );
+    
+    /** Return the grammar name from a grammar */ 
+    String getGrammarName(IGrammar grammar);
+
+    /** Return the grammar name from a grammar number */ 
+    String getGrammarName(int grammar);
 }



Mime
View raw message