Class StructureFunctions

java.lang.Object
org.apache.juneau.commons.svl.functions.StructureFunctions

public final class StructureFunctions extends Object
Structure-producing and collection functions: ul, ol, block, table.

Each returns a Structure from VarFunction.invokeValue(org.apache.juneau.commons.svl.VarResolverSession, java.util.List<java.lang.Object>); the string form is Structure.toString(). ul/ol treat a single Collection argument as the items list, otherwise the arguments are the items. Consequently ul(list1) cannot express a single item that is itself a list; use ul(x, y) or wrap the list in another list.

A collection longer than the session's maxCollectionSize (items of ul/ol, header, rows and each row of table) is cut to its first maxCollectionSize elements in lenient mode and throws in strict mode.

table(header, rows) requires every row to have exactly as many cells as the header has columns, and no null header element; otherwise a VarResolverException is thrown.

  • Field Details

    • ALL

      public static final Class<? extends VarFunction>[] ALL
      All function classes in this category.