All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfml.parsing.util.ExpressionUtils Maven / Gradle / Ivy

There is a newer version: 2.11.0
Show newest version
package cfml.parsing.util;

import org.antlr.v4.runtime.ParserRuleContext;

public class ExpressionUtils {
	
	// return first not null
	public static ParserRuleContext coalesce(ParserRuleContext... expressions) {
		for (int i = 0; i < expressions.length; i++) {
			if (expressions[i] != null) {
				return expressions[i];
			}
		}
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy