Class AbstractStartsEndsWithFunction
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.functions.AbstractStartsEndsWithFunction
-
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
EndsWithFunction
,StartsWithFunction
public abstract class AbstractStartsEndsWithFunction extends java.lang.Object implements Function
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
fname
-
Constructor Summary
Constructors Constructor Description AbstractStartsEndsWithFunction(java.lang.String fname)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
apply(Scope scope, java.util.List<Expression> args, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, Version version)
protected abstract boolean
doCheck(java.lang.String text, java.lang.String needle)
-
-
-
Method Detail
-
doCheck
protected abstract boolean doCheck(java.lang.String text, java.lang.String needle)
-
apply
public void apply(Scope scope, java.util.List<Expression> args, com.fasterxml.jackson.databind.JsonNode in, Path ipath, PathOutput output, Version version) throws JsonQueryException
- Specified by:
apply
in interfaceFunction
- Throws:
JsonQueryException
-
-