Top Description Fields Constructors Methods
org.jruby.ast

public Class GlobalAsgnNode

extends AssignableNode
implements INameNode
Class Inheritance
All Implemented Interfaces
org.jruby.ast.types.INameNode
Imports
java.util.List, org.jruby.RubySymbol, org.jruby.ast.types.INameNode, org.jruby.ast.visitor.NodeVisitor

Represents an assignment to a global variable.

Field Summary

Modifier and TypeField and Description
private final RubySymbol

Constructor Summary

AccessConstructor and Description
public
GlobalAsgnNode(int line, RubySymbol name, Node valueNode)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T>
the visitor to accept
iVisitor
)

Implements abstract org.jruby.ast.Node.accept.

RubyMethod used by visitors.

public List<Node>
public RubySymbol

Returns:

Returns a String
getName
()

Implements org.jruby.ast.types.INameNode.getName.

Gets the name.

public NodeType
public boolean
needsDefinitionCheck()

Overrides org.jruby.ast.Node.needsDefinitionCheck.

Check whether the given node is considered always "defined" or whether it has some form of definition check.

Inherited from org.jruby.ast.AssignableNode:
getValueNodesetValueNode

Field Detail

nameback to summary
private final RubySymbol name

Constructor Detail

GlobalAsgnNodeback to summary
public GlobalAsgnNode(int line, RubySymbol name, Node valueNode)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> iVisitor)

Implements abstract org.jruby.ast.Node.accept.

RubyMethod used by visitors. accepts the visitor

Parameters
iVisitor:NodeVisitor<T>

the visitor to accept

childNodesback to summary
public List<Node> childNodes()

Implements abstract org.jruby.ast.Node.childNodes.

getNameback to summary
public RubySymbol getName()

Implements org.jruby.ast.types.INameNode.getName.

Gets the name.

Returns:RubySymbol

Returns a String

getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.jruby.ast.Node.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId

needsDefinitionCheckback to summary
public boolean needsDefinitionCheck()

Overrides org.jruby.ast.Node.needsDefinitionCheck.

Doc from org.jruby.ast.Node.needsDefinitionCheck.

Check whether the given node is considered always "defined" or whether it has some form of definition check.

Returns:boolean

Whether the type of node represents a possibly undefined construct

Annotations
@Override