Package org.apache.juneau.commons.svl


package org.apache.juneau.commons.svl
Simple Variable Language (SVL).

SVL has two marker forms: ${Type:key:default} (a var lookup; a body whose prefix is not a registered var name is a property lookup) and #{expr} (a typed expression with operators, paths, collections and functions). Top-level : separates parts; a backslash before :, ', ", , or } is removed before the var sees the text (\\ is one backslash). The 9.x dollar-brace variable form and the comma separator were removed in 10.0.

See VarResolver for the builder options (strict, allowFunctions, valueFormatter, maxExprDepth, maxCollectionSize).

  • Class
    Description
    Interface for the resolution of vars with a default value if the resolve() method returns null.
    Thrown when an SVL #{...} expression cannot be lexed or parsed.
    Default formatter that turns the typed result of a #{...} expression into text.
    A subclass of DefaultingVar that simply pulls values from a Map.
    Interface for the resolution of vars that can have one or more keys where the first non-null resolution is returned.
    Interface for the resolution of vars that consist of a colon-delimited list.
    Abstract superclass of all Simple Var Language variables that resolve to simple returned string values.
    Abstract superclass of all Simple Var Language variables that write their values directly to a writer.
    A typed, structured value (list, block or table) that an SVL expression function can return.
    The kind of structure.
    One reference found in a compiled VarTemplate: a ${...} var, a function or operator call, an identifier, or a syntax problem.
    The kind of reference.
    Reflection-based base class for VarFunction implementations that prefer typed argument signatures over manual List<Object> unpacking.
    Abstract superclass of all Simple Var Language variables.
    SPI for SVL #{...} script-evaluation functions.
    Simple list of variables that can consist of either variable classes or instances.
    Utility class for resolving variables of the form "${X:key}" in strings.
    Builder class.
    Exception that occurs during a var resolver session.
    A var resolver session that combines a VarResolver with one or more session objects.
    A pre-compiled SVL template.