Top Constructors Methods
org.glassfish.pfl.dynamic.codegen.impl

public final Class Util

extends Object
Class Inheritance
Imports
java.io.PrintStream, java.lang.reflect.Modifier, java.util.IdentityHashMap, .Map, .Set, org.glassfish.pfl.dynamic.codegen.spi.Type, .Variable

Constructor Summary

AccessConstructor and Description
private
Util()

Method Summary

Modifier and TypeMethod and Description
public static void
checkScope(ExpressionInternal expr)

Throw an exception if any ExpressionInternal reachable from expr contains a Variable that is out of scope.

public static void
checkTree(final Node node, final 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.

public 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.

public static void
display(final Node node, final PrintStream pw)

Display a tree for the node.

private static void
displayAttributes(final Node node, final CodegenPrinter pr)

public static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Utilback to summary
private Util()

Method Detail

checkScopeback to summary
public static void checkScope(ExpressionInternal expr)

Throw an exception if any ExpressionInternal reachable from expr contains a Variable that is out of scope. Note that this is only useful for Expressions.

checkTreeback to summary
public static void checkTree(final Node node, final 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.

closeback to summary
public 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. Note that only defining occurrences of variables are to be considered here, as a scope that merely references a variable may be closed while the containing defining scope is still open.

displayback to summary
public static void display(final Node node, final PrintStream pw)

Display a tree for the node.

displayAttributesback to summary
private static void displayAttributes(final Node node, final CodegenPrinter pr)
getNodeIdStringback to summary
public static String getNodeIdString(Node obj)