| org.jruby.ast.ListNode
ListNode | public class ListNode extends Node (Code) | | All Nodes which have a list representation inherit this. This is also used
as generic container for additional information that is not directly evaluated.
In particular, f_arg production rule uses this to capture arg information for
the editor projects who want position info saved.
|
Constructor Summary | |
public | ListNode(ISourcePosition position, int id, Node firstNode) Create a new ListNode. | public | ListNode(ISourcePosition position, int id) | public | ListNode(ISourcePosition position) |
ListNode | public ListNode(ISourcePosition position, int id, Node firstNode)(Code) | | Create a new ListNode.
Parameters: id - type of listnode Parameters: firstNode - first element of the list |
ListNode | public ListNode(ISourcePosition position, int id)(Code) | | |
ListNode | public ListNode(ISourcePosition position)(Code) | | |
accept | public Instruction accept(NodeVisitor visitor)(Code) | | |
addAll | public ListNode addAll(ListNode other)(Code) | | Add all elements in other list to this list node.
Parameters: other - list which has elements this instance for method chaining |
addAll | public ListNode addAll(Node other)(Code) | | Add other element to this list
Parameters: other - list which has elements this instance for method chaining |
get | public Node get(int idx)(Code) | | |
getLast | public Node getLast()(Code) | | |
|
|