Record Class BindDirective
java.lang.Object
java.lang.Record
org.aksw.jenax.graphql.sparql.v2.context.BindDirective
- All Implemented Interfaces:
PrefixExpandable<BindDirective>
public record BindDirective(String exprStr, String varName, Boolean isTarget)
extends Record
implements PrefixExpandable<BindDirective>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBindDirective(String exprStr, String varName, Boolean isTarget) Creates an instance of aBindDirectiverecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.expand(org.apache.jena.shared.PrefixMapping pm) exprStr()Returns the value of theexprStrrecord component.org.apache.jena.sparql.core.VargetVar()final inthashCode()Returns a hash code value for this object.isTarget()Returns the value of theisTargetrecord component.static BindDirectiveparse(graphql.language.Directive directive) org.apache.jena.sparql.expr.Exprgraphql.language.Directivefinal StringtoString()Returns a string representation of this record class.varName()Returns the value of thevarNamerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aksw.jenax.graphql.sparql.v2.context.PrefixExpandable
expand
-
Field Details
-
PARSER
-
-
Constructor Details
-
BindDirective
Creates an instance of aBindDirectiverecord class.- Parameters:
exprStr- the value for theexprStrrecord componentvarName- the value for thevarNamerecord componentisTarget- the value for theisTargetrecord component
-
-
Method Details
-
parse
-
getVar
public org.apache.jena.sparql.core.Var getVar() -
parseExpr
public org.apache.jena.sparql.expr.Expr parseExpr() -
toDirective
public graphql.language.Directive toDirective() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
exprStr
Returns the value of theexprStrrecord component.- Returns:
- the value of the
exprStrrecord component
-
varName
Returns the value of thevarNamerecord component.- Returns:
- the value of the
varNamerecord component
-
isTarget
Returns the value of theisTargetrecord component.- Returns:
- the value of the
isTargetrecord component
-