From 0743bac8494a138cce13ce0ca2f02c63f32ff067 Mon Sep 17 00:00:00 2001 From: arkanovicz Date: Fri, 15 Oct 2021 02:31:30 +0200 Subject: [PATCH] Add TODO --- .../com/republicate/stillness/node/RASTEQNode.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/republicate/stillness/node/RASTEQNode.java b/src/main/java/com/republicate/stillness/node/RASTEQNode.java index e3c5730..cb675eb 100644 --- a/src/main/java/com/republicate/stillness/node/RASTEQNode.java +++ b/src/main/java/com/republicate/stillness/node/RASTEQNode.java @@ -6,14 +6,20 @@ import com.republicate.stillness.ScrapeContext; import com.republicate.stillness.ScrapeException; +import org.apache.velocity.context.InternalContextAdapterImpl; /** - * Not used in Stillness for now - * Matching or scraping are not allowed * * @author Claude Brisson */ public class RASTEQNode extends RNode { public RASTEQNode() { } + + // CB TODO - have all comparison operators inherit from RASTComparisonNode, and behave the same + public boolean match(String source, Context context, ScrapeContext scrapeContext) throws ScrapeException + { + return astNode.evaluate(new InternalContextAdapterImpl(context)); + } + }