public class MockRecordNamespace extends MockNamespace
| Modifier and Type | Method and Description |
|---|---|
void |
addNewVariable(String name,
Type type,
boolean isDefinedInExpression)
Adds a new variable.
|
boolean |
containsVariable(String name)
Returns
true if this namespace contains variable of given name. |
ClosureHolder |
createClosure(ClosureType closureType,
MethodExpression operationExpression,
ClosureOrigin origin)
Creates new closure corresponding to given operation expression.
|
Collection<String> |
getModuleNames()
Returns collection of all module names.
|
Namespace |
getModuleNamespace(String name)
Returns module namespace by its module name or
null if it does not exist. |
NamespaceModel |
getNamespaceModel()
Returns
NamespaceModel for this namespace. |
RecordHolder |
getThis()
Returns object that represents this.
|
Set<String> |
getVariableNames()
Returns the names of all the variables.
|
Type |
getVariableType(String name)
Returns the type of variable or null if it does not exist.
|
Object |
getVariableValue(String name)
Returns value of variable for given name from this namespace.
|
void |
setVariableValue(String name,
Object value)
Sets value of variable for given name from this namespace.
|
canBeInterpretedIn, createBinaryHolder, createBinaryHolder, createChildNamespace, createClosure, createClosure, createClosureFromExpression, createExternalRecordProxy, createList, createMap, createNonSharedRecord, createRange, createRecord, createRecord, createRecord, createRecord, createReference, createSet, executeJavaOperation, getConfiguration, getConstantValue, getContextId, getEvaluationLevel, getExecutionContext, getExecutorFactory, getFreeType, getHolderFactory, getJavaObject, getLowerLevelNamespace, getModelElementId, getModelId, getModelInstanceId, getName, getNamespaceInLevel, getParentNamespace, getPathQID, remove, resolveRecordType, resolveType, setFreeType, setPerformReadOnlyCheck, toStringpublic ClosureHolder createClosure(ClosureType closureType, MethodExpression operationExpression, ClosureOrigin origin)
HolderFactorycreateClosure in interface HolderFactorycreateClosure in class MockNamespacepublic RecordHolder getThis()
NamespacegetThis in interface NamespacegetThis in class MockNamespacepublic Namespace getModuleNamespace(String name)
Namespacenull if it does not exist.getModuleNamespace in interface NamespacegetModuleNamespace in class MockNamespacepublic boolean containsVariable(String name)
Namespacetrue if this namespace contains variable of given name.containsVariable in interface NamespacecontainsVariable in class MockNamespacename - variable namepublic Set<String> getVariableNames()
NamespacegetVariableNames in interface NamespacegetVariableNames in class MockNamespacepublic Object getVariableValue(String name)
NamespaceNull is returned
if this namespace does not contain given variable.getVariableValue in interface NamespacegetVariableValue in class MockNamespacename - variable namepublic void setVariableValue(String name, Object value)
NamespacesetVariableValue in interface NamespacesetVariableValue in class MockNamespacename - variable namevalue - new variable valuepublic Type getVariableType(String name)
NamespacegetVariableType in interface NamespacegetVariableType in class MockNamespacename - variable namepublic NamespaceModel getNamespaceModel()
NamespaceNamespaceModel for this namespace.getNamespaceModel in interface NamespacegetNamespaceModel in class MockNamespaceNamespaceModel for this namespacepublic Collection<String> getModuleNames()
NamespacegetModuleNames in interface NamespacegetModuleNames in class MockNamespacepublic void addNewVariable(String name, Type type, boolean isDefinedInExpression)
NamespaceaddNewVariable in interface NamespaceaddNewVariable in class MockNamespaceCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.