public class NoBaseContextNamespace extends AbstractContextNamespace
| Modifier | Constructor and Description | 
|---|---|
| protected  | NoBaseContextNamespace(ModelProvider modelProvider,
                      Context context)Creates new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addNewVariable(String name,
              Type type,
              boolean isExpressionLocal,
              boolean isReadOnly)Adds a new variable. | 
| boolean | canBeInterpretedIn(InterpreterConfiguration configuration)in detached model instance interpretation can be done only in new evaluation levels | 
| boolean | containsVariable(String name)Returns  trueif this namespace contains variable of given name. | 
| BinaryHolder | createBinaryHolder(byte[] data)Creates binary data holder. | 
| BinaryHolder | createBinaryHolder(String datasourceJndi,
                  String recordType,
                  String objectIdentification,
                  String propertyName,
                  Blob data)Creates binary data holder. | 
| Namespace | createChildNamespace(String name,
                    List<? extends Field> fields,
                    List<?> initialValues,
                    Map<FreeType,Type> freeTypeMapping,
                    InterpreterConfiguration configuration) | 
| ClosureHolder | createClosure(ClosureType closureType,
             ClosureExpression closureExpression,
             ClosureOrigin origin)Creates new closure corresponding to given closure expression. | 
| ClosureHolder | createClosure(ClosureType closureType,
             FunctionExpression operationExpression,
             ClosureOrigin origin)Creates new closure corresponding to given operation expression. | 
| ClosureHolder | createClosure(ClosureType closureType,
             MethodExpression operationExpression,
             ClosureOrigin origin)Creates new closure corresponding to given operation expression. | 
| ClosureHolder | createClosureFromExpression(ClosureType closureType,
                           Expression expression,
                           ClosureOrigin origin)Creates new closure from a given expression. | 
| RecordHolder | createExternalRecordProxy(RecordType type,
                         RecordHolder proxySet)Creates a proxy without proxied record. | 
| ListHolder | createList(Collection<?> values)Creates new list with given values ( ListHolders are immutable). | 
| MapHolder | createMap(List<?> keys,
         List<?> values)Creates new map with given values ( MapHolders are immutable). | 
| RecordHolder | createNonSharedRecord(RecordType type,
                     Map<String,?> values)Creates new record of given type. | 
| RecordHolder | createRecord(RecordType type,
            Map<String,?> values)Creates new record with given type. | 
| RecordHolder | createRecord(String type,
            Map<String,?> values)Creates new record with given type. | 
| ReferenceHolder | createReference(ReferenceType referenceType,
               ReferenceExpression referenceExpression,
               List<Property> properties,
               ClosureOrigin origin)Returns new reference corresponding to given reference expression. | 
| SetHolder | createSet(Collection<?> values)Creates new set with given values ( SetHolders are immutable). | 
| Object | executeJavaOperation(String className,
                    String methodName,
                    Class<?>[] argClasses,
                    Object[] evaluatedArgs,
                    InterpreterStackTrace stackTrace)Executes the operation. | 
| InterpreterConfiguration | getConfiguration()Returns interpreter configurartion for this namespace. | 
| HolderFactory | getHolderFactory()Returns an instance of  HolderFactory. | 
| Object | getJavaObject()Returns underlying java object if there is some. | 
| AbstractContextNamespace | getLowerLevelNamespace()Returns namespace corresponding to this namespace on lower level. | 
| Namespace | getModuleNamespace(String name)Returns module namespace by its module name or  nullif it does not exist. | 
| Namespace | getParentNamespace()Returns parent namespace or  nullif this is top namespace. | 
| 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. | 
| void | initializeVariable(String name,
                  Object value)Sets the initial value of a variable. | 
| boolean | isVariableReadOnly(String name)Returns  trueif the variable with a given name is read-only. | 
| void | setVariableValue(String name,
                Object value)Sets value of variable for given name from this namespace. | 
createChildNamespaceInternal, createRange, getAllFreeTypeNames, getCompiled, getCompiled, getCompiledContext, getConstantValue, getContext, getContextId, getConverter, getEvaluationConverter, getEvaluationLevel, getExecutionContext, getFreeType, getFunctionContext, getModelElementId, getModelId, getModelInstanceId, getModelProvider, getModuleNames, getName, getNamespace, getNamespaceInLevel, getNamespaceModel, getPathQID, getProcessModel, getReferencedContext, getThis, getVariableValue, remove, resolveType, setCompiled, setVariableValueInternal, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddNewVariable, createChildNamespace, getFreeTypeMapping, getTopNamespace, resolveRecordTypecreateMap, createRecord, createRecordprotected NoBaseContextNamespace(ModelProvider modelProvider, Context context)
modelProvider - context - public AbstractContextNamespace getLowerLevelNamespace()
Namespacepublic InterpreterConfiguration getConfiguration()
Namespacepublic RecordHolder createExternalRecordProxy(RecordType type, RecordHolder proxySet)
HolderFactorypublic RecordHolder createRecord(RecordType type, Map<String,?> values)
HolderFactoryvalues - initial record field valuespublic RecordHolder createNonSharedRecord(RecordType type, Map<String,?> values)
HolderFactoryvalues - initial record field valuespublic RecordHolder createRecord(String type, Map<String,?> values)
HolderFactoryvalues - initial record field valuesRecordTypepublic ListHolder createList(Collection<?> values)
HolderFactoryListHolders are immutable).
 The type is inferred from the types of the values.public SetHolder createSet(Collection<?> values)
HolderFactorySetHolders are immutable). The
 type is inferred from the types of the values.public MapHolder createMap(List<?> keys, List<?> values)
HolderFactoryMapHolders are immutable). The
 type is inferred from the types of the values.keys - a list of keysvalues - a list of valuespublic ClosureHolder createClosure(ClosureType closureType, ClosureExpression closureExpression, ClosureOrigin origin)
HolderFactorypublic ClosureHolder createClosureFromExpression(ClosureType closureType, Expression expression, ClosureOrigin origin)
HolderFactorypublic ClosureHolder createClosure(ClosureType closureType, FunctionExpression operationExpression, ClosureOrigin origin)
HolderFactorypublic ClosureHolder createClosure(ClosureType closureType, MethodExpression operationExpression, ClosureOrigin origin)
HolderFactorypublic ReferenceHolder createReference(ReferenceType referenceType, ReferenceExpression referenceExpression, List<Property> properties, ClosureOrigin origin)
HolderFactorypublic BinaryHolder createBinaryHolder(byte[] data)
HolderFactorypublic BinaryHolder createBinaryHolder(String datasourceJndi, String recordType, String objectIdentification, String propertyName, Blob data)
HolderFactorypublic Object executeJavaOperation(String className, String methodName, Class<?>[] argClasses, Object[] evaluatedArgs, InterpreterStackTrace stackTrace) throws ErrorException
JavaOperationExecutorexecuteJavaOperation in interface JavaOperationExecutorexecuteJavaOperation in class AbstractContextNamespacestackTrace - a stack traceErrorException - the error exceptionpublic Namespace getParentNamespace()
Namespacenull if this is top namespace.public Namespace getModuleNamespace(String name)
Namespacenull if it does not exist.public boolean containsVariable(String name)
Namespacetrue if this namespace contains variable of given name.name - variable namepublic Set<String> getVariableNames()
Namespacepublic void setVariableValue(String name, Object value)
Namespacename - variable namevalue - new variable valuepublic void initializeVariable(String name, Object value)
Namespacepublic Type getVariableType(String name)
Namespacename - variable namepublic boolean isVariableReadOnly(String name)
Namespacetrue if the variable with a given name is read-only.true if the variable is read-onlypublic HolderFactory getHolderFactory()
NamespaceHolderFactory. This can be used to create different runtime
 objects.HolderFactorypublic Namespace createChildNamespace(String name, List<? extends Field> fields, List<?> initialValues, Map<FreeType,Type> freeTypeMapping, InterpreterConfiguration configuration)
public void addNewVariable(String name, Type type, boolean isExpressionLocal, boolean isReadOnly)
Namespacepublic boolean canBeInterpretedIn(InterpreterConfiguration configuration)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.