public class ConstNode extends Node implements INameNode
| Modifier and Type | Field and Description |
|---|---|
private ConstantCache |
cache |
private java.lang.String |
name |
EMPTY_LIST| Constructor and Description |
|---|
ConstNode(ISourcePosition position,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
RubyString |
definition(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
java.lang.String |
getName()
Gets the name.
|
NodeType |
getNodeType() |
IRubyObject |
getValue(ThreadContext context) |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
IRubyObject |
reCache(ThreadContext context,
java.lang.String name) |
void |
setName(java.lang.String name) |
assign, createList, createList, createList, createList, getNodeName, getPosition, isNil, setPosition, toStringprivate java.lang.String name
private ConstantCache cache
public ConstNode(ISourcePosition position, java.lang.String name)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
public java.lang.String getName()
public java.util.List<Node> childNodes()
childNodes in class Nodepublic void setName(java.lang.String name)
public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
public RubyString definition(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
definition in class Nodepublic IRubyObject getValue(ThreadContext context)
public IRubyObject reCache(ThreadContext context, java.lang.String name)