org.jruby.ast
Class AssignableNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.AssignableNode
- All Implemented Interfaces:
- IArityNode, ISourcePositionHolder
- Direct Known Subclasses:
- ClassVarAsgnNode, ClassVarDeclNode, ConstDeclNode, DAsgnNode, GlobalAsgnNode, InstAsgnNode, LocalAsgnNode, MultipleAsgn19Node, MultipleAsgnNode
public abstract class AssignableNode
- extends Node
- implements IArityNode
Base class of any node which can be assigned to.
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 org.jruby.ast.Node |
accept, assign, childNodes, createList, getNodeName, getNodeType, getPosition, interpret, isInvisible, setPosition, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AssignableNode
public AssignableNode(ISourcePosition position)
AssignableNode
public AssignableNode(ISourcePosition position,
Node valueNode)
getValueNode
public Node getValueNode()
- Gets the valueNode.
- Returns:
- Returns a Node
setValueNode
public void setValueNode(Node valueNode)
- Sets the valueNode.
- Parameters:
valueNode
- The valueNode to set
getArity
public Arity getArity()
- Almost all assignables are only assigned a single value.
- Specified by:
getArity
in interface IArityNode
definition
public org.jruby.util.ByteList definition(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
- Overrides:
definition
in class Node
Copyright © 2002-2009 JRuby Team. All Rights Reserved.