From c13681d362dca850de13b288c4069e14c12c154f Mon Sep 17 00:00:00 2001 From: "Thomas E. Enebo" Date: Fri, 10 May 2024 15:05:17 -0400 Subject: [PATCH] Implement simplest linear check (which will work until joni opts some stack operations to be linear via caching) --- src/org/joni/Regex.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/joni/Regex.java b/src/org/joni/Regex.java index 5e98312..967a3f9 100644 --- a/src/org/joni/Regex.java +++ b/src/org/joni/Regex.java @@ -507,4 +507,8 @@ public void setUserObject(Object object) { public Object getUserObject() { return userObject; } + + public boolean isLinear() { + return !requireStack; + } }