public class Item extends ItemLocation
Modifier and Type | Field and Description |
---|---|
static Item |
defaultItem |
static Item |
nil |
Modifier and Type | Method and Description |
---|---|
static void |
addPair(ItemList list,
Item key,
Item value) |
static void |
addPair(ItemList list,
Node key,
Node value) |
static void |
addPair(ItemList list,
String key,
Node node) |
static void |
addPair(ItemList list,
String key,
String 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(String symbol) |
static Item |
createSymbol(String symbol,
int line,
int column) |
static Item |
createTagged(String tag) |
boolean |
equals(Object other) |
static Item |
find(ItemList list,
String key) |
double |
getDouble() |
int |
getInt() |
long |
getInteger() |
ItemList |
getList() |
int |
getLong() |
Node |
getNode() |
String |
getSymbol() |
int |
hashCode() |
boolean |
isList() |
boolean |
isNil() |
boolean |
isNode() |
boolean |
isNodeBNode() |
boolean |
isNodeLiteral() |
boolean |
isNodeURI() |
boolean |
isSymbol() |
boolean |
isSymbol(String testSymbol) |
boolean |
isSymbolIgnoreCase(String testSymbol) |
boolean |
isTagged() |
boolean |
isTagged(String tag) |
boolean |
isTaggedIgnoreCase(String tag) |
boolean |
isVar() |
static Item |
makePair(Item item1,
Item item2) |
boolean |
sameSymbol(Item item) |
boolean |
sameSymbol(String symbolStr) |
String |
shortString() |
String |
sniff() |
String |
toString() |
Item |
transform(ItemTransform transformer) |
void |
visit(ItemVisitor visitor) |
getColumn, getLine, hasLocation, location
public static Item createList()
public static Item createList(int line, int column)
public boolean sameSymbol(Item item)
public boolean sameSymbol(String symbolStr)
public ItemList getList()
public Node getNode()
public String getSymbol()
public double getDouble()
public long getInteger()
public int getInt()
public int getLong()
public long asInteger()
public String sniff()
public boolean isTaggedIgnoreCase(String tag)
public boolean isTagged(String tag)
public boolean isTagged()
public boolean isNil()
public boolean isList()
public boolean isNode()
public boolean isNodeURI()
public boolean isVar()
public boolean isNodeLiteral()
public boolean isNodeBNode()
public boolean isSymbol()
public boolean isSymbol(String testSymbol)
public boolean isSymbolIgnoreCase(String testSymbol)
public void visit(ItemVisitor visitor)
public Item transform(ItemTransform transformer)
public String toString()
toString
in class ItemLocation
public String shortString()
Licenced under the Apache License, Version 2.0