class VariableContext extends MagpieStringUtils
A context object that stores and provides access to variables.
Available via the variables field on the MagpieContext
Example usage:
scala> mc.variables.set("my_var", 5) scala> mc.variables.get("my_var") res1: Integer = 5 scala> mc.variables.exists("my_var") res2: Boolean = mtrue scala> mc.variables.clear()
- Alphabetic
- By Inheritance
- VariableContext
- MagpieStringUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new VariableContext(rc: RuntimeContext, contextHolder: ActionContextHolder)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): Unit
Clears all variables set in the context.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(name: String): Boolean
Determine whether a variable is defined in the context.
Determine whether a variable is defined in the context.
- name
variable name
- returns
whether the variable is defined
- def get(name: String): Any
Get the value of a variable.
Get the value of a variable.
- name
variable name
- returns
variable value
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def list(): Seq[String]
List all variables defined in the current context.
List all variables defined in the current context.
- returns
A list of variable names
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def remove(name: String): Unit
Unset a particular variable in the context.
Unset a particular variable in the context.
- name
variable name
- def set(name: String, value: Any): Unit
Set a variable to the given value in the context.
Set a variable to the given value in the context.
- name
variable name
- value
variable value
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toCamelCase(s: String): String
Converts CapitalCamelCase to camelCase
Converts CapitalCamelCase to camelCase
- s
to string to be converted
- returns
a camelCase string
- Attributes
- protected
- Definition Classes
- MagpieStringUtils
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)