public class Node_Variable extends Node_Fluid
Modifier and Type | Class and Description |
---|---|
static class |
Node_Variable.VariableName |
Node.NotLiteral
Constructor and Description |
---|
Node_Variable(String name)
Initialise this Node_Variable from a string
name ,
which becomes wrapped in a VariableName. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Nodes only equal other Nodes that have equal labels.
|
String |
getName()
get a variable nodes name, otherwise die horribly
|
boolean |
isVariable()
Answer true iff this node is a variable node - subclasses override
|
String |
toString()
Answer a human-readable representation of this Node.
|
static Object |
variable(String name) |
Object |
visitWith(NodeVisitor v)
Visit a Node and dispatch on it to the appropriate method from the
NodeVisitor
v . |
isConcrete
create, createAnon, createAnon, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createUncachedLiteral, createUncachedLiteral, createURI, createVariable, getBlankNodeId, getBlankNodeLabel, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralIsXML, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getNameSpace, getType, getURI, hashCode, hasURI, isBlank, isLiteral, isURI, matches, sameValueAs, toString, toString, toString
public Node_Variable(String name)
name
,
which becomes wrapped in a VariableName.public String getName()
Node
public Object visitWith(NodeVisitor v)
Node
v
.public boolean isVariable()
Node
isVariable
in class Node
public String toString()
Node
public boolean equals(Object other)
Node
Licenced under the Apache License, Version 2.0