1 30 package org.jruby.ast; 31 32 import org.jruby.ast.types.IArityNode; 33 import org.jruby.lexer.yacc.ISourcePosition; 34 import org.jruby.runtime.Arity; 35 36 39 public abstract class AssignableNode extends Node implements IArityNode { 40 static final long serialVersionUID= 7997990944631594662L; 41 42 private Node valueNode; 43 44 public AssignableNode(ISourcePosition position, int id) { 45 super(position, id); 46 } 47 48 52 public Node getValueNode() { 53 return valueNode; 54 } 55 56 60 public void setValueNode(Node valueNode) { 61 this.valueNode = valueNode; 62 } 63 64 67 public Arity getArity() { 68 return Arity.singleArgument(); 69 } 70 } 71 | Popular Tags |