public final class Util extends Object
Modifier and Type | Method and Description |
---|---|
static void |
checkScope(ExpressionInternal expr)
Throw an exception if any ExpressionInternal reachable
from expr contains a Variable that is out of scope.
|
static void |
checkTree(Node node,
PrintStream pw)
Check that node is really a tree, that is, when we traverse it
with the visitor, we never encounter the same node twice.
|
static void |
close(Node node)
Make sure that all variables reachable from node
are marked not available, indicating that they are
no longer in scope.
|
static void |
display(Node node,
PrintStream pw)
Display a tree for the node.
|
static String |
getNodeIdString(Node obj) |
public static void close(Node node)
public static void checkScope(ExpressionInternal expr)
public static void checkTree(Node node, PrintStream pw)
public static void display(Node node, PrintStream pw)
Copyright © 2017 Oracle. All rights reserved.