Class Utils


  • public class Utils
    extends java.lang.Object
    Some VTL utility methods.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • Utils

        private Utils()
        Prevents external creation.
    • Method Detail

      • findLastExpressionStatement

        public static ExpressionStatement findLastExpressionStatement​(IRuleBlock block)
        Returns the last expression of the given rule block.
        Parameters:
        block - the block to search
        Returns:
        the last expression
      • findLastExpression

        public static Expression findLastExpression​(IRuleBlock block)
        Returns the last expression of the given rule block.
        Parameters:
        block - the block to search
        Returns:
        the last expression