Package ortus.boxlang.runtime.context
Record Class IBoxContext.ScopeSearchResult
java.lang.Object
java.lang.Record
ortus.boxlang.runtime.context.IBoxContext.ScopeSearchResult
- Record Components:
scope- The scope which was foundvalue- The value of the key in the scope
- Enclosing interface:
IBoxContext
public static record IBoxContext.ScopeSearchResult(IReferenceable scope, Object value, Key key, boolean isScope)
extends Record
Represents the results of a successful scope hunting expedition.
-
Constructor Summary
ConstructorsConstructorDescriptionScopeSearchResult(IReferenceable scope, Object value, Key key) ScopeSearchResult(IReferenceable scope, Object value, Key key, boolean isScope) Creates an instance of aScopeSearchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Key[]getAssignmentKeys(Key... keys) This allow abstraction of the use cases where local.foo = 1 should really be variables.local.foo = 1final inthashCode()Returns a hash code value for this object.booleanisScope()Returns the value of theisScoperecord component.key()Returns the value of thekeyrecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
ScopeSearchResult
-
ScopeSearchResult
Creates an instance of aScopeSearchResultrecord class.
-
-
Method Details
-
getAssignmentKeys
This allow abstraction of the use cases where local.foo = 1 should really be variables.local.foo = 1 -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
isScope
public boolean isScope()Returns the value of theisScoperecord component.- Returns:
- the value of the
isScoperecord component
-