public class ListNode extends Node
containsVariableAssignment
Constructor and Description |
---|
ListNode(ISourcePosition position) |
ListNode(ISourcePosition position,
Node firstNode)
Create a new ListNode.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> visitor) |
ListNode |
add(Node node) |
ListNode |
addAll(ListNode other)
Add all elements in other list to this list node.
|
ListNode |
addAll(Node other)
Add other element to this list
|
List<Node> |
childNodes() |
Node |
get(int idx) |
Node |
getLast() |
NodeType |
getNodeType() |
boolean |
isEmpty() |
ListNode |
prepend(Node node) |
int |
size() |
containsVariableAssignment, createList, createList, createList, createList, findFirstChild, getNodeName, getPosition, isNil, needsDefinitionCheck, setPosition, toString, toString
public ListNode(ISourcePosition position, Node firstNode)
position
- where list isfirstNode
- first element of the listpublic ListNode(ISourcePosition position)
public NodeType getNodeType()
getNodeType
in class Node
public int size()
public ListNode addAll(ListNode other)
other
- list which has elementspublic ListNode addAll(Node other)
other
- list which has elementspublic Node getLast()
public boolean isEmpty()
public List<Node> childNodes()
childNodes
in class Node
public <T> T accept(NodeVisitor<T> visitor)
public Node get(int idx)
Copyright © 2001-2015 JRuby. All Rights Reserved.