Class PolicyBodyScope

java.lang.Object
dev.frostlake.functions.scalar.context.PolicyBodyScope

public final class PolicyBodyScope extends Object
Marks the thread as evaluating a POLICY BODY, for the functions that live only there. AGGREGATION_CONSTRAINT is one: live answers The AGGREGATION_CONSTRAINT function can only be called from a body of an aggregation constraint policy to a bare call, while NO_AGGREGATION_CONSTRAINT and PROJECTION_CONSTRAINT are callable anywhere.
  • Method Details

    • isInside

      public static boolean isInside()
    • enter

      public static void enter()
      Enter the scope; the caller MUST leave it in a finally block.
    • leave

      public static void leave()