Package org.apache.jena.sparql.sse
Class Item
- java.lang.Object
-
- org.apache.jena.sparql.sse.ItemLocation
-
- org.apache.jena.sparql.sse.Item
-
public class Item extends ItemLocation
-
-
Field Summary
Fields Modifier and Type Field Description static Item
defaultItem
static Item
nil
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addPair(ItemList list, java.lang.String key, java.lang.String value)
static void
addPair(ItemList list, java.lang.String key, Node node)
static void
addPair(ItemList list, Node key, Node value)
static void
addPair(ItemList list, Item key, Item value)
long
asInteger()
static Item
createList()
static Item
createList(int line, int column)
static Item
createList(ItemList list)
static Item
createList(ItemList list, int line, int column)
static Item
createNode(Node node)
static Item
createNode(Node node, int line, int column)
static Item
createSymbol(java.lang.String symbol)
static Item
createSymbol(java.lang.String symbol, int line, int column)
static Item
createTagged(java.lang.String tag)
boolean
equals(java.lang.Object other)
static Item
find(ItemList list, java.lang.String key)
double
getDouble()
int
getInt()
long
getInteger()
ItemList
getList()
int
getLong()
Node
getNode()
java.lang.String
getSymbol()
int
hashCode()
boolean
isList()
boolean
isNil()
boolean
isNode()
boolean
isNodeBNode()
boolean
isNodeLiteral()
boolean
isNodeURI()
boolean
isSymbol()
boolean
isSymbol(java.lang.String testSymbol)
boolean
isSymbolIgnoreCase(java.lang.String testSymbol)
boolean
isTagged()
boolean
isTagged(java.lang.String tag)
boolean
isTaggedIgnoreCase(java.lang.String tag)
boolean
isVar()
static Item
makePair(Item item1, Item item2)
boolean
sameSymbol(java.lang.String symbolStr)
boolean
sameSymbol(Item item)
java.lang.String
shortString()
java.lang.String
sniff()
java.lang.String
toString()
Item
transform(ItemTransform transformer)
void
visit(ItemVisitor visitor)
-
Methods inherited from class org.apache.jena.sparql.sse.ItemLocation
getColumn, getLine, hasLocation, location
-
-
-
-
Method Detail
-
createList
public static Item createList()
-
createList
public static Item createList(int line, int column)
-
createSymbol
public static Item createSymbol(java.lang.String symbol)
-
createSymbol
public static Item createSymbol(java.lang.String symbol, int line, int column)
-
createTagged
public static Item createTagged(java.lang.String tag)
-
addPair
public static void addPair(ItemList list, java.lang.String key, java.lang.String value)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
sameSymbol
public boolean sameSymbol(Item item)
-
sameSymbol
public boolean sameSymbol(java.lang.String symbolStr)
-
getList
public ItemList getList()
-
getNode
public Node getNode()
-
getSymbol
public java.lang.String getSymbol()
-
getDouble
public double getDouble()
-
getInteger
public long getInteger()
-
getInt
public int getInt()
-
getLong
public int getLong()
-
asInteger
public long asInteger()
-
sniff
public java.lang.String sniff()
-
isTaggedIgnoreCase
public boolean isTaggedIgnoreCase(java.lang.String tag)
-
isTagged
public boolean isTagged(java.lang.String tag)
-
isTagged
public boolean isTagged()
-
isNil
public boolean isNil()
-
isList
public boolean isList()
-
isNode
public boolean isNode()
-
isNodeURI
public boolean isNodeURI()
-
isVar
public boolean isVar()
-
isNodeLiteral
public boolean isNodeLiteral()
-
isNodeBNode
public boolean isNodeBNode()
-
isSymbol
public boolean isSymbol()
-
isSymbol
public boolean isSymbol(java.lang.String testSymbol)
-
isSymbolIgnoreCase
public boolean isSymbolIgnoreCase(java.lang.String testSymbol)
-
visit
public void visit(ItemVisitor visitor)
-
transform
public Item transform(ItemTransform transformer)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classItemLocation
-
shortString
public java.lang.String shortString()
-
-