|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wis.jtlv.env.module.ModuleParamHolder
public class ModuleParamHolder
An object representing a parameter to a module. Its implementation is as a pointer. The pointer is to a "kind of like" define in the module which instantiated this module. (Will be adjusted to the ModuleEntity in the future...)
Constructor Summary | |
---|---|
ModuleParamHolder(SMVModule a_for_instance,
java.lang.String a_local_name,
java.lang.String an_init_string)
The constructor takes as arguments the instance to which he is parameter to, its local name in that instance, and its instantiating (unparsed) string. |
Method Summary | |
---|---|
void |
___attachPointer()
Deprecated. INTERNAL PROCEDURE - will be encapsulated and removed from the external API in the following few releases. |
ModuleBDDDefine |
getDefine()
The define this pointer points to, if this is not a define, then null is returned. |
SMVModule |
getForInstance()
Getter for the module to which this parameter belongs to. |
java.lang.String |
getInitString()
Getter for instantiating string. |
SMVModule |
getInstance()
The module this pointer points to, if this is not a module, then null is returned. |
SMVModule[] |
getInstanceArray()
The module array this pointer points to, if this is not a module array, then null is returned. |
java.lang.String |
getLocalName()
Getter for the local name. |
ModuleBDDField |
getVar()
The variable this pointer points to, if this is not a variable, then null is returned. |
ModuleBDDField[] |
getVarArray()
The variable array this pointer points to, if this is not a variable array, then null is returned. |
boolean |
isDefine()
Check if this pointer points to define. |
boolean |
isInstance()
Check if this pointer points to module. |
boolean |
isInstanceArray()
Check if this pointer points to module array. |
boolean |
isVar()
Check if this pointer points to variable. |
boolean |
isVarArray()
Check if this pointer points to variable array. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleParamHolder(SMVModule a_for_instance, java.lang.String a_local_name, java.lang.String an_init_string)
The constructor takes as arguments the instance to which he is parameter to, its local name in that instance, and its instantiating (unparsed) string.
The actual instantiation is done just-in-time. i.e. only when it is needed, it will go to the "kind of like" define in the executer Module, and fetch the value.
a_for_instance
- The instance to which this parameter belongs to.a_local_name
- The local name of this parameter.an_init_string
- The instantiating string.Method Detail |
---|
public java.lang.String getLocalName()
Getter for the local name.
public java.lang.String getInitString()
Getter for instantiating string.
public SMVModule getForInstance()
Getter for the module to which this parameter belongs to.
public void ___attachPointer() throws ModuleException
Attach the pointer. Go to the instantiating module, and construct the value that had been passed.
ModuleException
- If this pointer is actually a local define, then it might be
that a new define needs to be declared in this module. For
such case, there could be an exception for wrong Module
manipulation.public boolean isVar()
Check if this pointer points to variable.
getVar()
public boolean isVarArray()
Check if this pointer points to variable array.
getVarArray()
public boolean isInstance()
Check if this pointer points to module.
getInstance()
public boolean isInstanceArray()
Check if this pointer points to module array.
getInstanceArray()
public boolean isDefine()
Check if this pointer points to define.
getDefine()
public ModuleBDDField getVar()
The variable this pointer points to, if this is not a variable, then null is returned.
isVar()
public ModuleBDDField[] getVarArray()
The variable array this pointer points to, if this is not a variable array, then null is returned.
isVarArray()
public SMVModule getInstance()
The module this pointer points to, if this is not a module, then null is returned.
isInstance()
public SMVModule[] getInstanceArray()
The module array this pointer points to, if this is not a module array, then null is returned.
isInstanceArray()
public ModuleBDDDefine getDefine()
The define this pointer points to, if this is not a define, then null is returned.
isDefine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |