Package org.apache.jena.sparql.util
Class ExprUtils
- java.lang.Object
-
- org.apache.jena.sparql.util.ExprUtils
-
public class ExprUtils extends java.lang.Object
Misc support for Expr
-
-
Constructor Summary
Constructors Constructor Description ExprUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static NodeValue
eval(Expr expr)
static NodeValue
eval(Expr expr, Binding binding)
static void
evalPrint(Expr expr, Binding binding)
static void
expr(java.lang.String exprStr)
static void
expr(java.lang.String exprStr, Binding binding)
static void
exprPrefix(java.lang.String exprStr)
static void
exprPrefix(java.lang.String string, Binding binding)
static void
fmtSPARQL(org.apache.jena.atlas.io.IndentedWriter iOut, Expr expr)
static void
fmtSPARQL(org.apache.jena.atlas.io.IndentedWriter iOut, ExprList exprs)
static void
fmtSPARQL(org.apache.jena.atlas.io.IndentedWriter iOut, ExprList exprs, SerializationContext pmap)
static void
fmtSPARQL(org.apache.jena.atlas.io.IndentedWriter iOut, Expr expr, SerializationContext sCxt)
static java.lang.String
fmtSPARQL(Expr expr)
static java.lang.String
fmtSPARQL(ExprList exprs)
static java.lang.String
fmtSPARQL(ExprList exprs, SerializationContext sCxt)
static Expr
nodeToExpr(Node n)
Deprecated.UseExprLib.nodeToExpr(Node)
insteadstatic Expr
parse(java.lang.String s)
static Expr
parse(java.lang.String s, PrefixMapping pmap)
static Expr
parse(Query query, java.lang.String s, boolean checkAllUsed)
static NodeValue
parseNodeValue(java.lang.String s)
static java.lang.String
strComparison(int cmp)
-
-
-
Method Detail
-
nodeToExpr
@Deprecated public static Expr nodeToExpr(Node n)
Deprecated.UseExprLib.nodeToExpr(Node)
insteadGo from a node to an expression.
-
parse
public static Expr parse(java.lang.String s)
-
parse
public static Expr parse(java.lang.String s, PrefixMapping pmap)
-
parseNodeValue
public static NodeValue parseNodeValue(java.lang.String s)
-
fmtSPARQL
public static void fmtSPARQL(org.apache.jena.atlas.io.IndentedWriter iOut, Expr expr, SerializationContext sCxt)
-
fmtSPARQL
public static void fmtSPARQL(org.apache.jena.atlas.io.IndentedWriter iOut, Expr expr)
-
fmtSPARQL
public static java.lang.String fmtSPARQL(Expr expr)
-
fmtSPARQL
public static void fmtSPARQL(org.apache.jena.atlas.io.IndentedWriter iOut, ExprList exprs, SerializationContext pmap)
-
fmtSPARQL
public static void fmtSPARQL(org.apache.jena.atlas.io.IndentedWriter iOut, ExprList exprs)
-
fmtSPARQL
public static java.lang.String fmtSPARQL(ExprList exprs)
-
fmtSPARQL
public static java.lang.String fmtSPARQL(ExprList exprs, SerializationContext sCxt)
-
strComparison
public static java.lang.String strComparison(int cmp)
-
expr
public static void expr(java.lang.String exprStr)
-
expr
public static void expr(java.lang.String exprStr, Binding binding)
-
exprPrefix
public static void exprPrefix(java.lang.String exprStr)
-
exprPrefix
public static void exprPrefix(java.lang.String string, Binding binding)
-
-