code: public List<Object> matchAll(CharSequence text, int startIndex){
  		List<Integer> states = getAllAcceptedStates(text, startIndex);
  		if (states == null){
  			return null;
  		}else{
  			List<Object> result = new ArrayList<Object>(states.size());
  			for (int p: states){
  				result.add(attachments[p]);
  			}
  			return result;
  		}
  	}
docs: Begin from the specified position, test if the text string can be matched
  by any of the regular expression,
  return list of the attachments of all the matching regular expressions.<br>
  从指定位置开始判断文本字符串是否可以被任意一个正则表达式所匹配，
  返回所有能匹配到的正则表达式的附件对象的列表。
  <p>
  The test starts from the specified position.
  Caution: if the beginning part matches, the whole text is considered to match.
  <p>
  匹配从指定的位置开始。 注意：只要开头匹配了就算匹配。
  
  @param text			Text string to be tested for matching.<br>对这个字符串进行匹配判断。
  @param startIndex 	The starting position of the testing.<br>从文本的这个位置开始匹配。
  @return	List of attachment objects of the regular expressions that matche the text string;
  null is returned if no matching can be found.<br>
  匹配到的那些正则表达式所对应的附件的列表；返回null表示没有匹配到任何一个正则表达式。