public abstract class Node extends Object implements ISourcePositionHolder
Constructor and Description |
---|
Node(ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
abstract Object |
accept(NodeVisitor visitor) |
IRubyObject |
assign(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject value,
Block block,
boolean checkArity) |
abstract List<Node> |
childNodes() |
protected static List<Node> |
createList(Node... nodes) |
protected static List<Node> |
createList(Node node) |
protected static List<Node> |
createList(Node node1,
Node node2) |
protected static List<Node> |
createList(Node node1,
Node node2,
Node node3) |
RubyString |
definition(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
protected String |
getNodeName() |
abstract NodeType |
getNodeType() |
ISourcePosition |
getPosition()
Location of this node within the source
|
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
boolean |
isNil()
Whether the node evaluates to nil and has no side effects.
|
void |
setPosition(ISourcePosition position) |
String |
toString() |
public Node(ISourcePosition position)
public ISourcePosition getPosition()
getPosition
in interface ISourcePositionHolder
public void setPosition(ISourcePosition position)
setPosition
in interface ISourcePositionHolder
public abstract Object accept(NodeVisitor visitor)
protected String getNodeName()
public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
public IRubyObject assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value, Block block, boolean checkArity)
public RubyString definition(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
public abstract NodeType getNodeType()
public boolean isNil()
Copyright © 2001-2015 JRuby. All Rights Reserved.