/** * Function definition. * * @param functionName Name of a function. * @param functionArgument Function argument rule. * @return Function definition rule. */ protected Rule function(String functionName, Rule functionArgument) { return Sequence(functionName, openParenthesis(), functionArgument, closedParenthesis()); }
/** * Function definition. * * @param functionName Name of a function. * @param functionArgument Function argument rule. * @return Function definition rule. */ protected Rule function(String functionName, Rule functionArgument) { return Sequence(functionName, openParenthesis(), functionArgument, closedParenthesis()); }
/** * Null value definition. * * @return Null value definition rule. */ public Rule nullValue() { return Sequence("null", openParenthesis(), closedParenthesis(), push(new NullValue())); }
/** * Null value definition. * * @return Null value definition rule. */ public Rule nullValue() { return Sequence("null", openParenthesis(), closedParenthesis(), push(new NullValue())); }
/** * String transformer definition. * * @return String transformer definition rule. */ public Rule stringTransformer() { return Sequence(Sequence("string", openParenthesis(), stringLiteral(), push(STRING_VALUE_DELIMITER), ZeroOrMore(comma(), value()), closedParenthesis()), push(getStringValue())); }
/** * String transformer definition. * * @return String transformer definition rule. */ public Rule stringTransformer() { return Sequence(Sequence("string", openParenthesis(), stringLiteral(), push(STRING_VALUE_DELIMITER), ZeroOrMore(comma(), value()), closedParenthesis()), push(getStringValue())); }