Interface UnaryXExpr

All Superinterfaces:
XExpr
All Known Implementing Classes:
UnaryXExprImpl

public interface UnaryXExpr extends XExpr
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.sparql.expr.Expr
     
    org.apache.jena.sparql.core.Var
     
    default boolean
    Whether the expression is of the form ?x = ?x (Unary expressions must always have a variable so 'true' itself cannot be used)
    default Optional<org.apache.jena.sparql.expr.NodeValue>
    Retuns the constant if the expression is of form anyVar = const or const = ?anyVar

    Methods inherited from interface org.aksw.jenax.sparql.fragment.impl.XExpr

    getVarsMentioned
  • Method Details

    • getVar

      org.apache.jena.sparql.core.Var getVar()
    • getExpr

      org.apache.jena.sparql.expr.Expr getExpr()
      Specified by:
      getExpr in interface XExpr
    • isAlwaysTrue

      default boolean isAlwaysTrue()
      Whether the expression is of the form ?x = ?x (Unary expressions must always have a variable so 'true' itself cannot be used)
    • tryGetConstant

      default Optional<org.apache.jena.sparql.expr.NodeValue> tryGetConstant()
      Retuns the constant if the expression is of form anyVar = const or const = ?anyVar