org.jruby.ast
Class ArrayNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.ListNode
org.jruby.ast.ArrayNode
- All Implemented Interfaces:
- ILiteralNode, ISourcePositionHolder
public class ArrayNode
- extends ListNode
- implements ILiteralNode
Represents an array. This could be an array literal, quoted words or some args stuff.
Fields inherited from class org.jruby.ast.Node |
ASSIGNMENT_BYTELIST, CLASS_VARIABLE_BYTELIST, CONSTANT_BYTELIST, EXPRESSION_BYTELIST, FALSE_BYTELIST, GLOBAL_VARIABLE_BYTELIST, INSTANCE_VARIABLE_BYTELIST, LOCAL_VARIABLE_BYTELIST, LOCAL_VARIABLE_IN_BLOCK_BYTELIST, METHOD_BYTELIST, NIL_BYTELIST, SELF_BYTELIST, SUPER_BYTELIST, TRUE_BYTELIST, YIELD_BYTELIST |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArrayNode
public ArrayNode(ISourcePosition position,
Node firstNode)
ArrayNode
public ArrayNode(ISourcePosition position)
getNodeType
public NodeType getNodeType()
- Overrides:
getNodeType
in class ListNode
- Returns:
- the nodeId
accept
public java.lang.Object accept(NodeVisitor iVisitor)
- Accept for the visitor pattern.
- Overrides:
accept
in class ListNode
- Parameters:
iVisitor
- the visitor
setLightweight
public void setLightweight(boolean lightweight)
isLightweight
public boolean isLightweight()
interpret
public IRubyObject interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
- Overrides:
interpret
in class Node
interpretPrimitive
public IRubyObject[] interpretPrimitive(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.