system/src/sc/parser/OrderedChoice.java
public boolean dataTypeMatches(Object other) {
      if (super.dataTypeMatches(other))
         return true;

      Class svClass = getSemanticValueClass();

      // Could not be a match - the data types do not match
      if (!svClass.isInstance(other))
         return false;

      if (parselets == null)
         return false;
      int sz = parselets.size();
      for (int i = 0; i < sz; i++) {
         Parselet child = parselets.get(i);
         if (child.dataTypeMatches(other))
            return true;
      }
      return false;
   }
/** Returns true if this parselet could have produced the given semanticValue. */
Returns true if this parselet could have produced the given semanticValue.
Returns true if this parselet could have produced the given semanticValue .
public boolean dataTypeMatches(Object other) {
      if (super.dataTypeMatches(other))
         return true;
      Class svClass = getSemanticValueClass();
      if (!svClass.isInstance(other))
         return false;
      if (parselets == null)
         return false;
      int sz = parselets.size();
      for (int i = 0; i < sz; i++) {
         Parselet child = parselets.get(i);
         if (child.dataTypeMatches(other))
            return true;
      }
      return false;
   }
public boolean dataTypeMatches ( Object other ) { if ( super . dataTypeMatches ( other ) ) return true ; Class svClass = getSemanticValueClass ( ) ; if ( ! svClass . isInstance ( other ) ) return false ; if ( parselets == null ) return false ; int sz = parselets . size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { Parselet child = parselets . get ( i ) ; if ( child . dataTypeMatches ( other ) ) return true ; } return false ; }
Returns true if this parselet could have produced the given semanticValue.
Returns true if this parselet could have produced the given semanticValue .
// Could not be a match - the data types do not match