|
||||||||||
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 field th field of
the ordinal th input. |
static String |
makeName(int ordinal)
Constructs the name for the ordinal th 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 Environment
public String getPackage()
Environment
getPackage
in class Environment
public OJClass lookupClass(String name)
Environment
lookupClass
in class Environment
name
- 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 Environment
name
- the fully-qualified name of the classpublic static String makeName(int ordinal)
ordinal
th input. For example,
makeName(0)
returns "$input0".
public static Variable makeReference(int ordinal)
public static FieldAccess makeFieldAccess(int ordinal, int field)
field
th field of
the ordinal
th input.
public void record(String name, OJClass clazz)
Environment
record
in class Environment
name
- the fully-qualified name of the classclazz
- the class object associated with that namepublic 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 |