protected Set<FE> getFollowElements(final InternalParser parser, String ruleName, boolean swallowInfiniteRecursion)
			throws Exception {
		Method method = parser.getClass().getMethod(ruleName);
		method.setAccessible(true);
		try {
			method.invoke(parser);
		} catch (InvocationTargetException targetException) {
			Throwable cause = targetException.getCause();
			if (cause instanceof InfiniteRecursion) {
				if (swallowInfiniteRecursion) {
					return parser.getFollowElements();
				} else {
					throw (InfiniteRecursion) cause;
				}
			}
			throw targetException;
		}
		return parser.getFollowElements();
	}
protected Set < FE > getFollowElements ( final InternalParser parser , String ruleName , boolean swallowInfiniteRecursion ) throws Exception { Method method = parser . getClass ( ) . getMethod ( ruleName ) ; method . setAccessible ( true ) ; try { method . invoke ( parser ) ; } catch ( InvocationTargetException targetException ) { Throwable cause = targetException . getCause ( ) ; if ( cause instanceof InfiniteRecursion ) { if ( swallowInfiniteRecursion ) { return parser . getFollowElements ( ) ; } else { throw ( InfiniteRecursion ) cause ; } } throw targetException ; } return parser . getFollowElements ( ) ; }
@since 2.14