public class MockNamespace extends AbstractMockNamespace
| Constructor and Description |
|---|
MockNamespace(Module module)
Creates new instance of
MockNamespace. |
MockNamespace(Module module,
java.util.Collection<Namespace> imports)
Creates new instance of
MockNamespace. |
MockNamespace(Module module,
java.util.Collection<Namespace> imports,
JavaOperationExecutorFactory executorFactory)
Creates new instance of
MockNamespace. |
MockNamespace(java.lang.String name)
Creates new instance of
MockNamespace. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getAllFreeTypeNames()
Returns all free type names.
|
java.lang.Object |
getConstantValue(java.lang.String moduleName,
java.lang.String constantName)
Returns the value of the constant with the given name from a (imported)
module with a given module name.
|
Type |
getFreeType(FreeType type)
Returns the value of given free type or null if it does not exist in this context.
|
java.util.Collection<java.lang.String> |
getModuleNames()
Returns collection of all module names.
|
Namespace |
getModuleNamespace(java.lang.String name)
Returns module namespace by its module name or
null if it does not exist. |
NamespaceModel |
getNamespaceModel()
Returns
NamespaceModel for this namespace. |
Namespace |
getParentNamespace()
Returns parent namespace or
null if this is top namespace. |
RecordHolder |
getThis()
Returns object that represents this.
|
Type |
resolveType(java.lang.String type)
Resolves type.
|
addNewVariable, canBeInterpretedIn, containsVariable, createBinaryHolder, createBinaryHolder, createChildNamespace, createClosure, createClosure, createClosure, createClosureFromExpression, createExternalRecordProxy, createList, createMap, createMap, createNonSharedRecord, createRange, createRecord, createRecord, createReference, createSet, executeJavaOperation, getCompiled, getCompiled, getConfiguration, getContextId, getEvaluationLevel, getExecutionContext, getHolderFactory, getJavaObject, getLowerLevelNamespace, getModelElementId, getModelId, getModelInstanceId, getName, getNamespaceInLevel, getPathQID, getVariableNames, getVariableType, getVariableValue, initializeVariable, isVariableReadOnly, remove, setCompiled, setVariableValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddNewVariable, createChildNamespace, getFreeTypeMapping, getTopNamespace, resolveRecordTypecreateRecord, createRecordpublic MockNamespace(java.lang.String name)
MockNamespace.name - public MockNamespace(Module module)
MockNamespace.module - public MockNamespace(Module module, java.util.Collection<Namespace> imports)
MockNamespace.module - imports - public MockNamespace(Module module, java.util.Collection<Namespace> imports, JavaOperationExecutorFactory executorFactory)
MockNamespace.module - imports - executorFactory - public java.util.Collection<java.lang.String> getModuleNames()
Namespacepublic Namespace getModuleNamespace(java.lang.String name)
Namespacenull if it does not exist.public Namespace getParentNamespace()
Namespacenull if this is top namespace.public Type resolveType(java.lang.String type)
Namespacepublic java.lang.Object getConstantValue(java.lang.String moduleName,
java.lang.String constantName)
Namespacenull if there is no such a constantpublic NamespaceModel getNamespaceModel()
NamespaceNamespaceModel for this namespace.NamespaceModel for this namespacepublic RecordHolder getThis()
Namespacepublic Type getFreeType(FreeType type)
Namespacepublic java.util.Set<java.lang.String> getAllFreeTypeNames()
NamespaceCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.