| Modifier and Type | Field and Description |
|---|---|
| private static final Node[] | |
| private static final int | |
| private Node[] | |
| private Node | single
This is used to reduce the need to allocate an array for the many single-element ListNode instances in a typical Ruby app. |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | |
| public ListNode | |
| public ListNode | |
| public ListNode | |
| public ListNode | |
| protected void | |
| protected void | |
| private void | |
| private Node[] | |
| public List | |
| public Node[] | |
| public Node | |
| public Node | |
| public NodeType | |
| private Node[] | |
| public boolean | |
| public Iterator | |
| public int |
| EMPTY | back to summary |
|---|---|
| private static final Node[] EMPTY | |
| INITIAL_SIZE | back to summary |
|---|---|
| private static final int INITIAL_SIZE | |
| list | back to summary |
|---|---|
| private Node[] list | |
| single | back to summary |
|---|---|
| private Node single This is used to reduce the need to allocate an array for the many single-element ListNode instances in a typical Ruby app. The methods below detect if single has been set and act accordingly, expanding it to an array lazily only when needed. | |
| size | back to summary |
|---|---|
| private int size | |
| ListNode | back to summary |
|---|---|
| public ListNode(int line, Node firstNode) Create a new ListNode.
| |
| ListNode | back to summary |
|---|---|
| public ListNode(int line) | |
| accept | back to summary |
|---|---|
| public <T> T accept(NodeVisitor<T> visitor) Implements abstract org. | |
| add | back to summary |
|---|---|
| public ListNode add(Node node) | |
| addAll | back to summary |
|---|---|
| public ListNode addAll(ListNode other) Add all elements in other list to this list node. | |
| addAll | back to summary |
|---|---|
| public ListNode addAll(Node[] other, int index, int length) | |
| addAll | back to summary |
|---|---|
| public ListNode addAll(Node other) Add other element to this list | |
| addAllInternal | back to summary |
|---|---|
| protected void addAllInternal(ListNode other) | |
| addInternal | back to summary |
|---|---|
| protected void addInternal(Node node) | |
| addToSingle | back to summary |
|---|---|
| private void addToSingle(Node single, Node node) | |
| arrayifySingle | back to summary |
|---|---|
| private Node[] arrayifySingle(Node single) | |
| childNodes | back to summary |
|---|---|
| public List Implements abstract org. Deprecated
| |
| children | back to summary |
|---|---|
| public Node[] children() | |
| get | back to summary |
|---|---|
| public Node get(int idx) | |
| getLast | back to summary |
|---|---|
| public Node getLast() | |
| getNodeType | back to summary |
|---|---|
| public NodeType getNodeType() Implements abstract org.
| |
| growList | back to summary |
|---|---|
| private Node[] growList(int mustBeDelta) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| size | back to summary |
|---|---|
| public int size() | |