|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--openjava.mop.Environment
|
+--saffron.util.RelEnvironment
RelEnvironment defines the set of variables available to a
relational expression.
| Nested Class Summary |
| Nested classes inherited from class openjava.mop.Environment |
Environment.BasicVariableInfo, Environment.VariableInfo |
| Field Summary | |
(package private) Rel |
rel
|
private static Variable |
var0
|
private static Variable |
var1
|
| Fields inherited from class openjava.mop.Environment |
parent |
| Constructor Summary | |
RelEnvironment(Environment parent,
Rel rel)
|
|
| Method Summary | |
void |
bindVariable(String name,
Environment.VariableInfo info)
Binds the name of a variable to information about the variable, including its class. |
static int |
getInputOrdinal(String name)
Returns the ordinal of the input represented by the variable name, or -1 if it does not represent an input. |
String |
getPackage()
Gets the package name. |
Environment.VariableInfo |
lookupBind(String name)
Looks up a binded type of the given variable or field name. |
OJClass |
lookupClass(String name)
Looks a class object up. |
static FieldAccess |
makeFieldAccess(int ordinal,
int field)
Constructs a reference to the fieldth field of
the ordinalth input. |
static String |
makeName(int ordinal)
Constructs the name for the ordinalth input. |
static Variable |
makeReference(int ordinal)
|
void |
record(String name,
OJClass clazz)
Records a class object. |
String |
toString()
|
| Methods inherited from class openjava.mop.Environment |
bindVariable, currentClassName, getClassEnvironmentParent, getGlobalEnvironment, getParent, isBind, isQualifiedName, isRegisteredModifier, lookupClass, recordMemberClass, toPackageName, toQualifiedName, toSimpleName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
Rel rel
private static final Variable var0
private static final Variable var1
| Constructor Detail |
public RelEnvironment(Environment parent,
Rel rel)
| Method Detail |
public String toString()
toString in class Environmentpublic String getPackage()
Environment
getPackage in class Environmentpublic OJClass lookupClass(String name)
Environment
lookupClass in class Environmentname - the name of the fully-qualified name of
the class looked forpublic static int getInputOrdinal(String name)
name, or -1 if it does not represent an input.
public Environment.VariableInfo lookupBind(String name)
Environment
lookupBind in class Environmentname - the fully-qualified name of the classpublic static String makeName(int ordinal)
ordinalth input. For example,
makeName(0) returns "$input0".
public static Variable makeReference(int ordinal)
public static FieldAccess makeFieldAccess(int ordinal,
int field)
fieldth field of
the ordinalth input.
public void record(String name,
OJClass clazz)
Environment
record in class Environmentname - the fully-qualified name of the classclazz - the class object associated with that name
public void bindVariable(String name,
Environment.VariableInfo info)
Environment
bindVariable in class Environment
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||