public final class FreeVariables extends ASTVisitorBase
| Modifier and Type | Method and Description |
|---|---|
static void |
append(Expression exp,
java.util.Vector<ValueSymbol> result,
boolean constants)
Compute free variables of expression.
|
static java.util.Vector<ValueSymbol> |
compute(Expression exp,
boolean constants)
Compute free variables of expression.
|
static java.util.Vector<ValueSymbol> |
compute(Type type,
boolean constants)
Compute free variables of type.
|
isCloned, visitpublic static java.util.Vector<ValueSymbol> compute(Expression exp, boolean constants)
exp - an expression.constants - true if also constants are to be added.public static java.util.Vector<ValueSymbol> compute(Type type, boolean constants)
type - a type.constants - true if also constants are to be added.public static void append(Expression exp, java.util.Vector<ValueSymbol> result, boolean constants)
exp - an expression.constants - true if also constants are to be added.result - a vector to which the ValueSymbol objects representing the
free variables of the expression are appended (each symbol will
occur only once in result).