public class ItemList extends ItemLocation implements Iterable<Item>
Constructor and Description |
---|
ItemList() |
ItemList(int line,
int column) |
ItemList(int line,
int column,
int offset,
List<Item> elts) |
Modifier and Type | Method and Description |
---|---|
void |
add(Item item) |
void |
add(Node node) |
void |
add(String symbol) |
void |
addAll(ItemList itemList) |
Item |
car() |
ItemList |
cdr() |
ItemList |
cdrOrNull() |
boolean |
equals(Object other) |
Item |
get(int idx) |
Item |
getFirst() |
Item |
getLast() |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Item> |
iterator() |
String |
shortString() |
int |
size() |
ItemList |
sublist(int start) |
ItemList |
sublist(int start,
int finish)
Slice of the list from start (inclusive) to finish (exclusive)
|
String |
toString() |
getColumn, getLine, hasLocation, location
public int size()
public boolean isEmpty()
public void addAll(ItemList itemList)
public void add(Item item)
public void add(Node node)
public void add(String symbol)
public Item get(int idx)
public Item getFirst()
public Item getLast()
public Item car()
public ItemList cdr()
public ItemList cdrOrNull()
public ItemList sublist(int start)
public ItemList sublist(int start, int finish)
public String shortString()
public String toString()
toString
in class ItemLocation
Licenced under the Apache License, Version 2.0