public class MockNamespacePart extends AbstractMockNamespace
Constructor and Description |
---|
MockNamespacePart(String name,
Namespace parent)
Creates new instance of
MockNamespace . |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllFreeTypeNames()
Returns all free type names.
|
Object |
getConstantValue(String moduleName,
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.
|
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. |
Namespace |
getParentNamespace()
Returns parent namespace or
null if this is top namespace. |
RecordHolder |
getThis()
Returns object that represents this.
|
Type |
resolveType(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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addNewVariable, createChildNamespace, getFreeTypeMapping, getTopNamespace, resolveRecordType
createRecord, createRecord
public MockNamespacePart(String name, Namespace parent)
MockNamespace
.name
- parent
- public Collection<String> getModuleNames()
Namespace
public Namespace getModuleNamespace(String name)
Namespace
null
if it does not exist.public Namespace getParentNamespace()
Namespace
null
if this is top namespace.public Type resolveType(String type)
Namespace
public Object getConstantValue(String moduleName, String constantName)
Namespace
null
if there is no such a constantpublic NamespaceModel getNamespaceModel()
Namespace
NamespaceModel
for this namespace.NamespaceModel
for this namespacepublic RecordHolder getThis()
Namespace
public Type getFreeType(FreeType type)
Namespace
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.