예제 #1
0
 public List<BinaryRule> getBinaryRulesByRightChild(String rightChild) {
   return CollectionUtils.getValueList(binaryRulesByRightChild, rightChild);
 }
예제 #2
0
 public List<UnaryRule> getUnaryRulesByChild(String child) {
   return CollectionUtils.getValueList(unaryRulesByChild, child);
 }
예제 #3
0
 /* Rules in grammar are indexed by child for easy access when
  * doing bottom up parsing.
  */
 public List<BinaryRule> getBinaryRulesByLeftChild(String leftChild) {
   return CollectionUtils.getValueList(binaryRulesByLeftChild, leftChild);
 }