Does this node or one of its children contain an assignment?
executes_once
boolean executes_once()
Java: executesOnce()
Returns: is it possible this node will execute only once. Note: This is not
comprehensive. It is used to look from root node down to class/module nodes
to make sure that narrow case can execute once. It is possible much deeper
down the tree some nodes can only execute once but it will be marked as false
because that case is not what this is for.
file
String file()
Java: getFile() · also: get_file
line
int line()
Java: getLine() · also: get_line
line=
line=(int line)
Java: setLine(int line) · also: set_line
needs_definition_check
boolean needs_definition_check()
Java: needsDefinitionCheck()
Check whether the given node is considered always "defined" or whether it
has some form of definition check.
Returns: Whether the type of node represents a possibly undefined construct
newline?
boolean newline?()
Java: isNewline() · also: is_newline
nil?
boolean nil?()
Java: isNil() · also: is_nil
Whether the node evaluates to nil and has no side effects.
Returns: true if nil, false otherwise
set_newline
set_newline()
Java: setNewline()
to_string
String to_string()
Java: toString()
to_string
String to_string(boolean indent, int indentation)
Java: toString(boolean indent, int indentation)
to_string_extra_info
String to_string_extra_info()
Java: toStringExtraInfo()
Not all interesting info in the AST is from Node data. This method will print
out anything else of note (e.g. FixnumNode's long value).
Returns: null for no extra info or something otherwise.
unset_newline
unset_newline()
Java: unsetNewline()
from Iterable
for_each
for_each(Consumer<? super T> arg0)
Java: forEach(java.util.function.Consumer<? super T> arg0)