razie.base.scripting

ScriptContextImpl

class ScriptContextImpl extends WrapAttrAccess with ScriptContext

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScriptContextImpl
  2. ScriptContext
  3. WrapAttrAccess
  4. AA
  5. AttrAccessImpl
  6. JavaAttrAccessImpl
  7. ScalaAttrAccessImpl
  8. AttrAccess
  9. ActionContext
  10. ScalaAttrAccess
  11. JavaAttrAccess
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScriptContextImpl(parent: AttrAccess, pairs: <repeated...>[AnyRef])

  2. new ScriptContextImpl(parent: AttrAccess, aa: AttrAccessImpl)

  3. new ScriptContextImpl(parent: AttrAccess)

  4. new ScriptContextImpl(pairs: <repeated...>[AnyRef])

  5. new ScriptContextImpl()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++(other: AA): WrapAttrAccess

    Definition Classes
    AA
  5. def ++=(other: AA): AA

    Definition Classes
    AA
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. lazy val _attrs: HashMap[String, Any]

    Definition Classes
    ScalaAttrAccessImpl
  9. lazy val _order: ListBuffer[String]

    Definition Classes
    ScalaAttrAccessImpl
  10. lazy val _types: HashMap[String, AttrType]

    Definition Classes
    ScalaAttrAccessImpl
  11. def a(name: String): AnyRef

    I'm really starting to hate typing.

    I'm really starting to hate typing... shortcut for getAttr

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  12. def addToUrl(url: String): String

    add these attributes to an url, respecting the url parm format, i.

    add these attributes to an url, respecting the url parm format, i.e. getMovie?name=300.divx&producer=whoknows

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def clear(): Unit

    Definition Classes
    ScalaAttrAccessImpl
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def define(macro: String, expr: String): Unit

    define a new function - these are evaluated every time they are invoked.

    define a new function - these are evaluated every time they are invoked. these also overwrite another symbol, so you can redefine a symbol to do something else.

    DO NOT forget to seal a context before passing it to untrusted plugins

    Definition Classes
    ScriptContextImplScriptContext
  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(other: Any): Boolean

    Definition Classes
    AA → AnyRef → Any
  19. def filter(f: (String, AnyRef) ⇒ Boolean): Iterable[String]

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def foreach(f: (String, AnyRef) ⇒ Unit): Unit

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  22. def get[T](name: String): Option[T]

    returns

    the value of the named attribute or null, coerced into an option of the given type

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  23. def getAttr(name: String): AnyRef

    returns

    the value of the named attribute or null

    Definition Classes
    ScriptContextImplWrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  24. def getAttrType(name: String): AttrType

    returns

    the type of the named attribute OR null if not known. Default is by convention String

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def getOrElse(name: String, dflt: AnyRef): AnyRef

    returns

    the value of the named attribute or null

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  27. def getPopulatedAttr(): Iterable[String]

    iterate through the populated attributes.

    iterate through the populated attributes. BE very careful: if you set attrs with NULL values, they are NOT populated!

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  28. def guard(name: String, condition: String, expr: String): Unit

    TODO 3 FUNC use guards, document

    TODO 3 FUNC use guards, document

    Definition Classes
    ScriptContextImplScriptContext
  29. def hasAttrType(name: String): Boolean

    check if an attribute is populated

    check if an attribute is populated

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. def isPopulated(name: String): Boolean

    check if an attribute is populated

    check if an attribute is populated

    Definition Classes
    ScriptContextImplWrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  33. def map[A, B](f: (String, A) ⇒ B): ScalaAttrAccess

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  34. def mapValues[A, B](f: (A) ⇒ B): Seq[B]

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. def options(script: String, pos: Int): List[String]

    content assist options

    content assist options

    script

    - the line that needs assist

    pos

    - the position it needs assist - normally script.length-1

    Definition Classes
    ScriptContextImplScriptContext
  39. val parent: AttrAccess

    Definition Classes
    WrapAttrAccess
  40. def rebuild(): Map[String, Null]

    Definition Classes
    WrapAttrAccess
  41. def reset(): Unit

    Reset this context.

    Reset this context. Normally a context would cache a parser/interpreter instance. Reset will make sure this is in pristine condition .

    NOTE that any state MAY be erased. Any variable/values defined in previous scripts may be erased. It is often that the individual interpreter instances cache local values, which would disapear.

    Definition Classes
    ScriptContextImplScriptContext
  42. def sa(name: String): String

    most of the time they're just strings - i'll typecast here.

    most of the time they're just strings - i'll typecast here... this is a() typcast to String

    returns

    "" or the actual toString of the respective value

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  43. def set(name: String, v: Any, t: AttrType): Unit

    set the value of the named attribute + the name can be of the form name:type

    set the value of the named attribute + the name can be of the form name:type

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  44. def set(name: String, v: Any): Unit

    set the value of the named attribute + the name can be of the form name:type

    set the value of the named attribute + the name can be of the form name:type

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  45. def setAttr(pairs: <repeated...>[AnyRef]): Unit

    Definition Classes
    JavaAttrAccessImplJavaAttrAccess
  46. def setAttrPair(name: String, value: Any): Unit

    set the value of the named attribute + the name can be of the form name:type

    set the value of the named attribute + the name can be of the form name:type

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  47. def setAttrType(name: String, ttype: AttrType): Unit

    set the type of the named attribute

    set the type of the named attribute

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  48. def setAttrType(name: String, ttype: String): Unit

    Definition Classes
    ScalaAttrAccessImpl
  49. def sgetOrElse(name: String, dflt: String): String

    Definition Classes
    ScalaAttrAccessImpl
  50. def sgetPopulatedAttr: Set[String]

    build from sequence of parm/value pairs or other stuff

    build from sequence of parm/value pairs or other stuff

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  51. def size(): Int

    the number of populated attributes

    the number of populated attributes

    Definition Classes
    WrapAttrAccessScalaAttrAccessImplScalaAttrAccess
  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  53. def tempcl(): Unit

    Definition Classes
    ScalaAttrAccessImpl
  54. def tempso(name: String): Unit

    Definition Classes
    ScalaAttrAccessImpl
  55. def toJson(iobj: JSONObject): JSONObject

    add my attributes to the JSONObject passed in.

    add my attributes to the JSONObject passed in. If null passed in, empty object is created first

    returns

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  56. def toMap: Map[String, String]

    Definition Classes
    AA
  57. def toPairs(): Array[AnyRef]

    same pairs format name,value,name,value.

    same pairs format name,value,name,value...

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  58. def toString(): String

    Definition Classes
    ScalaAttrAccessImpl → AnyRef → Any
  59. def toXml(): String

    some random xml format

    some random xml format

    Definition Classes
    ScalaAttrAccessImplScalaAttrAccess
  60. def toXmlWithChildren(me: Any, tag: String)(contents: (Any) ⇒ String): String

    Definition Classes
    AA
  61. def undefine(macro: String): Unit

    remove a function

    remove a function

    Definition Classes
    ScriptContextImplScriptContext
  62. def unguard(name: String, condition: String, expr: String): Unit

    TODO 3 FUNC use guards, document

    TODO 3 FUNC use guards, document

    Definition Classes
    ScriptContextImplScriptContext
  63. def unpopulate(name: String): Unit

    Definition Classes
    ScalaAttrAccessImpl
  64. def verbose(v: Boolean): Unit

    make execution verbose or not

    make execution verbose or not

    Definition Classes
    ScriptContextImplScriptContext
  65. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ScriptContext

Inherited from WrapAttrAccess

Inherited from AA

Inherited from AttrAccessImpl

Inherited from JavaAttrAccessImpl

Inherited from ScalaAttrAccessImpl

Inherited from AttrAccess

Inherited from ActionContext

Inherited from ScalaAttrAccess

Inherited from JavaAttrAccess

Inherited from AnyRef

Inherited from Any

Ungrouped