| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| pack-priv static final List | |
| private int | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract <T> T | |
| public abstract List | |
| public boolean | |
| protected static List | |
| protected static List | |
| protected static List | |
| protected static List | |
| public boolean | 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.
|
| public String | |
| public int | |
| protected String | |
| public abstract NodeType | |
| private static void | |
| public boolean | |
| public boolean | Returns: true if nil, false otherwiseWhether the node evaluates to nil and has no side effects. |
| public boolean | Returns: Whether the type of node represents a possibly undefined constructCheck whether the given node is considered always "defined" or whether it has some form of definition check. |
| public void | |
| public void | |
| public String | |
| public String | |
| public String | Returns: null for no extra info or something otherwise.Not all interesting info in the AST is from Node data. |
| protected String | Returns: A string representing internal node state, or null if none.Overridden by nodes that have additional internal state to be displated in toString. |
| public void |
| containsVariableAssignment | back to summary |
|---|---|
| protected boolean containsVariableAssignment | |
| EMPTY_LIST | back to summary |
|---|---|
| pack-priv static final List<Node> EMPTY_LIST | |
| line | back to summary |
|---|---|
| private int line | |
| newline | back to summary |
|---|---|
| protected boolean newline | |
| Node | back to summary |
|---|---|
| public Node(int line, boolean containsAssignment) | |
| accept | back to summary |
|---|---|
| public abstract <T> T accept(NodeVisitor<T> visitor) | |
| childNodes | back to summary |
|---|---|
| public abstract List | |
| containsVariableAssignment | back to summary |
|---|---|
| public boolean containsVariableAssignment() Does this node or one of its children contain an assignment? | |
| createList | back to summary |
|---|---|
| protected static List | |
| createList | back to summary |
|---|---|
| protected static List | |
| createList | back to summary |
|---|---|
| protected static List | |
| createList | back to summary |
|---|---|
| protected static List | |
| executesOnce | back to summary |
|---|---|
public boolean executesOnce()
| |
| getFile | back to summary |
|---|---|
| public String getFile() | |
| getLine | back to summary |
|---|---|
| public int getLine() | |
| getNodeName | back to summary |
|---|---|
| protected String getNodeName() | |
| getNodeType | back to summary |
|---|---|
public abstract NodeType getNodeType()
| |
| indent | back to summary |
|---|---|
| private static void indent(int indentation, StringBuilder builder) | |
| isNewline | back to summary |
|---|---|
| public boolean isNewline() | |
| isNil | back to summary |
|---|---|
| public boolean isNil() Whether the node evaluates to nil and has no side effects.
| |
| needsDefinitionCheck | back to summary |
|---|---|
| public boolean needsDefinitionCheck() Check whether the given node is considered always "defined" or whether it has some form of definition check.
| |
| setLine | back to summary |
|---|---|
| public void setLine(int line) | |
| setNewline | back to summary |
|---|---|
| public void setNewline() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toString | back to summary |
|---|---|
| public String toString(boolean indent, int indentation) | |
| toStringExtraInfo | back to summary |
|---|---|
| public String 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).
| |
| toStringInternal | back to summary |
|---|---|
| protected String toStringInternal() Overridden by nodes that have additional internal state to be displated in toString. For nodes that have it, name is handled separately, by implementing INameNode. Child nodes are handled via iterating #childNodes.
| |
| unsetNewline | back to summary |
|---|---|
| public void unsetNewline() | |