Class Var

All Implemented Interfaces:
Serializable, Cloneable, QueryModelNode, ValueExpr, VariableScopeChange

public class Var extends AbstractQueryModelNode implements ValueExpr
A variable that can contain a Value.

Service Provider–based construction: Prefer the Var.of(...) static factory methods over direct constructors. These factories delegate to a Var.Provider discovered via ServiceLoader or selected via the PROVIDER_PROPERTY system property. This allows third-party libraries to supply custom Var subclasses without changing call sites. If no provider is found, construction falls back to new Var(...).

To install a provider, add a file META-INF/services/org.eclipse.rdf4j.query.algebra.Var$Provider containing the implementing class name, or set system property PROVIDER_PROPERTY to a specific provider FQCN.

See Also: