com.hp.hpl.jena.sparql.pfunction
Class PropFuncArg

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.PrintSerializableBase
      extended by com.hp.hpl.jena.sparql.pfunction.PropFuncArg
All Implemented Interfaces:
PrintSerializable, Printable

public class PropFuncArg
extends PrintSerializableBase

Class representing an argument (subject or object position) of a property function. Such an argument can be a graph node (variable, IRI, literal). Blank nodes from the query will be seen as variables. Most implementations will want to work with the property function arguments after substitution from the current binding.


Constructor Summary
PropFuncArg(List<com.hp.hpl.jena.graph.Node> argList)
           
PropFuncArg(List<com.hp.hpl.jena.graph.Node> argList, com.hp.hpl.jena.graph.Node arg)
           
PropFuncArg(com.hp.hpl.jena.graph.Node arg)
           
 
Method Summary
 ExprList asExprList(PropFuncArg pfArg)
           
 boolean equals(Object other)
           
 PropFuncArg evalIfExists(Binding binding)
          Deprecated. Use Substitute.substitute(PropFuncArg, Binding)
 com.hp.hpl.jena.graph.Node getArg()
           
 com.hp.hpl.jena.graph.Node getArg(int index)
           
 List<com.hp.hpl.jena.graph.Node> getArgList()
           
 int getArgListSize()
           
 int hashCode()
           
 boolean isList()
           
 boolean isNode()
           
 void output(IndentedWriter out, SerializationContext sCxt)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.util.PrintSerializableBase
output, toString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropFuncArg

public PropFuncArg(List<com.hp.hpl.jena.graph.Node> argList,
                   com.hp.hpl.jena.graph.Node arg)

PropFuncArg

public PropFuncArg(List<com.hp.hpl.jena.graph.Node> argList)

PropFuncArg

public PropFuncArg(com.hp.hpl.jena.graph.Node arg)
Method Detail

getArg

public com.hp.hpl.jena.graph.Node getArg()

getArgList

public List<com.hp.hpl.jena.graph.Node> getArgList()

getArgListSize

public int getArgListSize()

getArg

public com.hp.hpl.jena.graph.Node getArg(int index)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

isList

public boolean isList()

isNode

public boolean isNode()

asExprList

public ExprList asExprList(PropFuncArg pfArg)

output

public void output(IndentedWriter out,
                   SerializationContext sCxt)

evalIfExists

@Deprecated
public PropFuncArg evalIfExists(Binding binding)
Deprecated. Use Substitute.substitute(PropFuncArg, Binding)

Create a new PropFuncArg by replacing any variables by their values given in the binding. If there is no binding, keep the variable.

Parameters:
binding -
Returns:
A PropFuncArg with any varibales substituted by values in the binding


Licenced under the Apache License, Version 2.0