public class OptArgNode extends Node implements INameNode
| Modifier and Type | Field and Description |
|---|---|
private Node |
value |
EMPTY_LIST| Constructor and Description |
|---|
OptArgNode(ISourcePosition position,
Node value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor visitor) |
IRubyObject |
assign(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject assignValue,
Block block,
boolean checkArity) |
java.util.List<Node> |
childNodes() |
java.lang.String |
getName() |
NodeType |
getNodeType() |
Node |
getValue() |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate Node value
public OptArgNode(ISourcePosition position, Node value)
public NodeType getNodeType()
getNodeType in class Nodepublic Node getValue()
public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
public IRubyObject assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject assignValue, Block block, boolean checkArity)
public java.lang.Object accept(NodeVisitor visitor)
public java.util.List<Node> childNodes()
childNodes in class Node