Package org.topbraid.shacl.expr.lib
Class ConstantTermExpression
- java.lang.Object
-
- org.topbraid.shacl.expr.AbstractNodeExpression
-
- org.topbraid.shacl.expr.lib.ConstantTermExpression
-
- All Implemented Interfaces:
AtomicNodeExpression,NodeExpression
public class ConstantTermExpression extends AbstractNodeExpression implements AtomicNodeExpression
-
-
Constructor Summary
Constructors Constructor Description ConstantTermExpression(org.apache.jena.rdf.model.RDFNode term)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode>eval(org.apache.jena.rdf.model.RDFNode focusNode, NodeExpressionContext context)Produces an iterator of value nodes for a given focus node.StringgetFunctionalSyntax()Produces a "functional" syntax used to display node expressions in a compact form.StringgetTypeId()StringtoString()voidvisit(NodeExpressionVisitor visitor)-
Methods inherited from class org.topbraid.shacl.expr.AbstractNodeExpression
evalReverse, getInputExpressions, getOutputShape, getRDFNode, isReversible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.topbraid.shacl.expr.NodeExpression
evalReverse, getInputExpressions, getOutputShape, getRDFNode, isReversible
-
-
-
-
Method Detail
-
eval
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> eval(org.apache.jena.rdf.model.RDFNode focusNode, NodeExpressionContext context)Description copied from interface:NodeExpressionProduces an iterator of value nodes for a given focus node.- Specified by:
evalin interfaceNodeExpression- Parameters:
focusNode- the focus nodecontext- the context- Returns:
- an iterator (never null)
-
getFunctionalSyntax
public String getFunctionalSyntax()
Description copied from interface:NodeExpressionProduces a "functional" syntax used to display node expressions in a compact form.- Specified by:
getFunctionalSyntaxin interfaceNodeExpression- Returns:
- the functional syntax for this expression
-
getTypeId
public String getTypeId()
- Specified by:
getTypeIdin interfaceNodeExpression
-
toString
public String toString()
- Overrides:
toStringin classAbstractNodeExpression
-
visit
public void visit(NodeExpressionVisitor visitor)
- Specified by:
visitin interfaceNodeExpression
-
-