INNER CODE UNIT · Java
ContextExpression
liquibase/liquibase · liquibase-standard/src/main/java/liquibase/ContextExpression.java:17
public class ContextExpression {
/**
* Pseudo-context that evaluates to {@code true} when no runtime contexts are specified.
* <p>
* This can be used in context expressions to opt into stricter context-matching behaviour while
* keeping backward compatibility. For example, a changeset with
* {@code context="!nocontexts AND specificcontext"} will only be applied when at least one
* runtime context is provided <em>and</em> that context matches {@code specificcontext}.
* When no runtime context is specified the {@code nocontexts} pseudo-context evaluates to
* {@code true}, so {@code !nocontexts} evaluates to {@code false} and the changeset is
* skipped.
* </p>
*/
public static final String NOCONTEXTS = "nocontexts";
/**
* Matches the {@code nocontexts} pseudo-context token as a whole word, but only when it is