Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanovicz committed Oct 15, 2021
1 parent b42af6e commit 0743bac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/com/republicate/stillness/node/RASTEQNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

}

0 comments on commit 0743bac

Please sign in to comment.