コード例 #1
0
 public int setAction(String symbol) throws MaltChainedException {
   if (symbol == null) {
     clear();
   } else {
     actionCode = table.getSymbolStringToCode(symbol);
     if (actionCode == -1) {
       clear();
     } else {
       actionSymbol = symbol;
     }
   }
   return actionCode;
 }
コード例 #2
0
 public String setAction(int code) throws MaltChainedException {
   if (actionCode != code) {
     if (code < 0) {
       clear();
     } else {
       actionSymbol = table.getSymbolCodeToString(code);
       if (actionSymbol == null) {
         clear();
       } else {
         actionCode = code;
       }
     }
   }
   return actionSymbol;
 }
コード例 #3
0
 public String getTableName() {
   if (table == null) {
     return null;
   }
   return table.getName();
 }