net.sf.saffron.oj.util
Class RelEnvironment
java.lang.Object
|
+--openjava.mop.Environment
|
+--net.sf.saffron.oj.util.RelEnvironment
- public class RelEnvironment
- extends Environment
RelEnvironment
defines the set of variables available to a
relational expression
.
Methods inherited from class openjava.mop.Environment |
bindVariable, currentClassName, getClassEnvironmentParent, getGlobalEnvironment, getParent, isBind, isQualifiedName, isRegisteredModifier, lookupClass, recordMemberClass, toPackageName, toQualifiedName, toSimpleName |
rel
SaffronRel rel
RelEnvironment
public RelEnvironment(SaffronRel rel)
getPackage
public String getPackage()
- Description copied from class:
Environment
- Gets the package name.
- Overrides:
getPackage
in class Environment
bindVariable
public void bindVariable(String name,
Environment.VariableInfo info)
- Description copied from class:
Environment
- Binds the name of a variable to information about the variable, including
its class.
- Specified by:
bindVariable
in class Environment
lookupBind
public Environment.VariableInfo lookupBind(String name)
- Description copied from class:
Environment
- Looks up a binded type of the given variable or field name.
- Overrides:
lookupBind
in class Environment
- Parameters:
name
- the fully-qualified name of the class
lookupClass
public OJClass lookupClass(String name)
- Description copied from class:
Environment
- Looks a class object up.
- Overrides:
lookupClass
in class Environment
- Parameters:
name
- the name of the fully-qualified name of
the class looked for
record
public void record(String name,
OJClass clazz)
- Description copied from class:
Environment
- Records a class object.
- Specified by:
record
in class Environment
- Parameters:
name
- the fully-qualified name of the classclazz
- the class object associated with that name
toString
public String toString()
- Specified by:
toString
in class Environment