Package ortus.boxlang.runtime.scopes
Class BaseScope
java.lang.Object
ortus.boxlang.runtime.types.Struct
ortus.boxlang.runtime.scopes.BaseScope
- All Implemented Interfaces:
Serializable,Map<Key,,Object> IReferenceable,IScope,IStruct,IType,IListenable
- Direct Known Subclasses:
ApplicationScope,ArgumentsScope,LocalScope,RequestScope,ScopeWrapper,ServerScope,SessionScope,StaticScope,ThisScope,ThreadScope,VariablesScope
Base scope implementation. Extends HashMap for now. May want to switch to composition over inheritance, but this
is simpler for now and using the Key class provides our case insensitivity automatically.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ortus.boxlang.runtime.types.IStruct
IStruct.TYPES -
Field Summary
Fields inherited from class ortus.boxlang.runtime.types.Struct
$bx, EMPTY, INITIAL_CAPACITY, KEY_LENGTH_LONGEST_FIRST_COMPARATOR, wrappedFields inherited from interface ortus.boxlang.runtime.types.meta.IListenable
ALL_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the lock for use in the lock component.getName()Gets the name of the scopeMethods inherited from class ortus.boxlang.runtime.types.Struct
addAll, assign, asString, clear, containsKey, containsKey, containsKey, containsValue, dereference, dereferenceAndInvoke, dereferenceAndInvoke, entrySet, equals, fromMap, fromMap, get, get, getBoxMeta, getFunctionContextThisClassForInvoke, getFunctionContextThisInterfaceForInvoke, getKeys, getKeysAsStrings, getOrDefault, getOrDefault, getRaw, getType, getWrapped, hashCode, isCaseSensitive, isEmpty, isSoftReferenced, keySet, linkedOf, of, put, put, putAll, putIfAbsent, putIfAbsent, registerChangeListener, registerChangeListener, remove, remove, remove, removeChangeListener, size, sortedOf, sortedOf, toImmutable, toString, toStringWithCase, unWrapNull, values, wrapAssignment, wrapNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ortus.boxlang.runtime.dynamic.IReferenceable
assign, dereference, dereferenceAndInvoke, dereferenceAndInvokeMethods inherited from interface ortus.boxlang.runtime.scopes.IScope
initializeMethods inherited from interface ortus.boxlang.runtime.types.IStruct
addAll, containsKey, containsKey, entrySet, get, getAs, getAsArray, getAsAttempt, getAsBoolean, getAsBoxInterface, getAsClassRunnable, getAsDateTime, getAsDouble, getAsFunction, getAsInteger, getAsKey, getAsLong, getAsNumber, getAsOptional, getAsQuery, getAsStream, getAsString, getAsStruct, getAsXML, getKeys, getKeysAsStrings, getOrDefault, getOrDefault, getRaw, getType, getWrapped, isCaseSensitive, isSoftReferenced, put, put, putIfAbsent, putIfAbsent, remove, remove, toStringWithCaseMethods inherited from interface ortus.boxlang.runtime.types.IType
asString, getBoxMetaMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
BaseScope
Constructor- Parameters:
scopeName- The name of the scope
-
BaseScope
Constructor- Parameters:
scopeName- The name of the scopetype- The Struct type of the scope
-
-
Method Details
-
getName
Gets the name of the scope -
getLockName
Gets the name of the lock for use in the lock component. Must be unique per scope instance.- Specified by:
getLockNamein interfaceIScope- Returns:
- The unique lock name for the scope
-