| Modifier and Type | Field and Description |
|---|---|
| private final INameNode | |
| private final RubySymbol |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | accept(NodeVisitor<T>
the visitor iVisitor)Implements abstract org. Accept for the visitor pattern. |
| public List | |
| public Node | Returns: pathNodeGet the full path, including the name of the new constant (in Foo::BAR it is Foo::BAR) or null. |
| public RubySymbol | Returns: nameImplements org. Gets the name (this is the rightmost element of lhs (in Foo::BAR it is BAR). |
| public NodeType | |
| public boolean | needsDefinitionCheck()
Overrides org. Check whether the given node is considered always "defined" or whether it has some form of definition check. |
| constNode | back to summary |
|---|---|
| private final INameNode constNode | |
| name | back to summary |
|---|---|
| private final RubySymbol name | |
| ConstDeclNode | back to summary |
|---|---|
| public ConstDeclNode(int line, RubySymbol name, INameNode constNode, Node valueNode) | |
| accept | back to summary |
|---|---|
| public <T> T accept(NodeVisitor<T> iVisitor) Implements abstract org. Accept for the visitor pattern.
| |
| childNodes | back to summary |
|---|---|
| public List Implements abstract org. | |
| getConstNode | back to summary |
|---|---|
| public Node getConstNode() Get the full path, including the name of the new constant (in Foo::BAR it is Foo::BAR) or null.
Your probably want to extract the left part with
| |
| getName | back to summary |
|---|---|
| public RubySymbol getName() Implements org. Gets the name (this is the rightmost element of lhs (in Foo::BAR it is BAR). name is the constant Name, it normally starts with a Capital
| |
| getNodeType | back to summary |
|---|---|
| public NodeType getNodeType() Implements abstract org.
| |
| needsDefinitionCheck | back to summary |
|---|---|
| public boolean needsDefinitionCheck() Overrides org. Doc from org. Check whether the given node is considered always "defined" or whether it has some form of definition check.
| |